This commit is contained in:
2025-07-15 20:57:15 +03:00
parent f6c78a20a3
commit 0ffd79cee9
51 changed files with 1227 additions and 653 deletions
+38 -35
View File
@@ -1,40 +1,43 @@
{% extends 'employee-base.html' %}
{% extends 'list-crud.html' %}
{% load static %}
{% block content %}
<table>
<tr>
<th>Status</th>
<th>Booking №</th>
<th>Vehicles</th>
<th>Container number</th>
<th>Container type</th>
<th>Container count</th>
<th>Line</th>
<th>Carrier</th>
<th>Containers expedited</th>
<th>Vehicles left</th>
</tr>
{% block table_header %}
<th style="display: none;">Select</th>
<th>Line</th>
<th>Booking №</th>
<th>Container type</th>
<th>Container №</th>
<th>Containers count</th>
<th>Containers left</th>
<th>Vehicles</th>
<th>Vehicles left</th>
<th>Created on</th>
<th>Created by</th>
{% endblock table_header %}
{% for booking in bookings %}
<tr>
<td>{{ booking.status }}</td>
<td>{{ booking.number }}</td>
<td>{{ booking.vehicles }}</td>
<td>{{ booking.container_number }}</td>
<td>{{ booking.container_type }}</td>
<td>{{ booking.container_count }}</td>
<td>{{ booking.line.short_name }}</td>
<td>{{ booking.carrier }}</td>
<td>{{ booking.container_expedited_count }}</td>
<td>{{ booking.vehicles_left }}</td>
<td>
{# <a href="{% url 'employee:preinfo_edit' preinfo.id %}">Edit</a> |#}
{# <a href="{% url 'employee:preinfo_delete' preinfo.id %}">Delete</a>#}
</td>
</tr>
{% block table_data %}
<td>{{ object.line.short_name }}</td>
<td>{{ object.number }}</td>
<td>{{ object.container_type }}</td>
<td>{{ object.container_number }}</td>
<td>{{ object.container_count }}</td>
<td>{{ object.containers_left }}</td>
<td>{{ object.vehicles }}</td>
<td>{{ object.vehicles_left }}</td>
<td>{{ object.created_on }}</td>
<td>{{ object.created_by.username }}</td>
{% endblock %}
{% endfor %}
{% block buttons %}
{# <a href="{% url 'employee_booking_create' %}" class="btn btn-primary">Create booking</a>#}
{# <a href="#" id="editBtn" data-url="{% url 'client_booking_update' pk=0 %}" class="btn btn-primary" disabled>Edit Preinfo</a>#}
{# <button id="deleteButton" class="btn btn-danger">Delete Preinfo</button>#}
{% endblock buttons %}
</table>
{% endblock content %}
{% block create_modal_header %}
<h2>Create Booking</h2>
{% endblock %}
{% block modal_header %}
<h2>Edit Booking</h2>
{% endblock modal_header %}