buttons in table footer
This commit is contained in:
@@ -1,32 +1,25 @@
|
||||
{% extends 'employee-base.html' %}
|
||||
{% extends 'list-crud.html' %}
|
||||
{% load static %}
|
||||
|
||||
{% block content %}
|
||||
<table>
|
||||
<tr>
|
||||
<th>Preinfo ID</th>
|
||||
<th>Container №</th>
|
||||
<th>Container type</th>
|
||||
<th>Line</th>
|
||||
<th>Created on</th>
|
||||
<th>Created by</th>
|
||||
</tr>
|
||||
{% block table_header %}
|
||||
<th style="display: none;">Select</th>
|
||||
<th>Preinfo №</th>
|
||||
<th>Container №</th>
|
||||
<th>Container type</th>
|
||||
<th>Line</th>
|
||||
<th>Created on</th>
|
||||
<th>Created by</th>
|
||||
{% endblock table_header %}
|
||||
|
||||
{% for preinfo in preinfos %}
|
||||
<tr>
|
||||
<td>{{ preinfo.id }}</td>
|
||||
<td>{{ preinfo.container_number }}</td>
|
||||
<td>{{ preinfo.container_type }}</td>
|
||||
<td>{{ preinfo.line.short_name }}</td>
|
||||
<td>{{ preinfo.created_on }}</td>
|
||||
<td>{{ preinfo.created_by.username }}</td>
|
||||
<td>
|
||||
{# <a href="{% url 'preinfo_edit' preinfo.id %}">Edit</a> |#}
|
||||
{# <a href="{% url 'preinfo_delete' preinfo.id %}">Delete</a>#}
|
||||
</td>
|
||||
</tr>
|
||||
{% block table_data %}
|
||||
<td>{{ object.id }}</td>
|
||||
<td>{{ object.container_number }}</td>
|
||||
<td>{{ object.container_type }}</td>
|
||||
<td>{{ object.line.short_name }}</td>
|
||||
<td>{{ object.created_on }}</td>
|
||||
<td>{{ object.created_by.username }}</td>
|
||||
{% endblock %}
|
||||
|
||||
{% endfor %}
|
||||
|
||||
</table>
|
||||
{% endblock content %}
|
||||
{% block modal_header %}
|
||||
<h2>Edit Preinfo</h2>
|
||||
{% endblock modal_header %}
|
||||
|
||||
Reference in New Issue
Block a user