You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
114 lines
6.7 KiB
HTML
114 lines
6.7 KiB
HTML
{% extends 'common/base.html' %}
|
|
{% block content %}
|
|
|
|
<div id="preinfoContent" class="tab-content active">
|
|
<div class="bg-white rounded-lg shadow">
|
|
<div class="px-6 py-4 border-b border-gray-200">
|
|
<h3 class="text-lg font-semibold text-gray-800">Submit Booking</h3>
|
|
<p class="text-sm text-gray-600 mt-1">Create a booking for containers expedition by container type or by specific container numer</p>
|
|
</div>
|
|
<div class="p-6">
|
|
<form id="preinfoForm" class="space-y-6" method="POST" >
|
|
|
|
{{ form }}
|
|
{% csrf_token %}
|
|
|
|
<div class="form-section flex justify-end space-x-3">
|
|
<button type="submit" class="px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500">
|
|
Submit Preinfo
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
{# <div class="mt-6 bg-white rounded-lg shadow">#}
|
|
{# <div class="px-6 py-4 border-b border-gray-200">#}
|
|
{# <h3 class="text-lg font-semibold text-gray-800">Recent Preinfo Submissions</h3>#}
|
|
{# </div>#}
|
|
{# <div class="p-6">#}
|
|
{# <div class="overflow-x-auto">#}
|
|
{# <table class="min-w-full divide-y divide-gray-200">#}
|
|
{# <thead>#}
|
|
{# <tr>#}
|
|
{# <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Booking №</th>#}
|
|
{# <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Container №</th>#}
|
|
{# <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Type</th>#}
|
|
{# <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Container count</th>#}
|
|
{# <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Containers left</th>#}
|
|
{# <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Vehicles</th>#}
|
|
{# <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Vehicles</th>#}
|
|
{# <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>#}
|
|
{# <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>#}
|
|
{# </tr>#}
|
|
{# </thead>#}
|
|
{# <tbody class="divide-y divide-gray-200">#}
|
|
{# {% for booking in recent %}#}
|
|
{# <tr>#}
|
|
{# <td class="px-4 py-3 whitespace-nowrap text-sm font-medium text-gray-900">{{ booking.number }}</td>#}
|
|
{# <td class="px-4 py-3 whitespace-nowrap text-sm font-medium text-gray-900">{{ booking.container_number }}</td>#}
|
|
{# <td class="px-4 py-3 whitespace-nowrap text-sm text-gray-700">{{ booking.container_type }}</td>#}
|
|
{# <td class="px-4 py-3 whitespace-nowrap text-sm text-gray-700">{{ booking.container_count }}</td>#}
|
|
{# <td class="px-4 py-3 whitespace-nowrap text-sm text-gray-700">{{ booking.containers_left }}</td>#}
|
|
{# <td class="px-4 py-3 whitespace-nowrap text-sm text-gray-700">{{ booking.vehicles_left }}</td>#}
|
|
{# #}
|
|
{# <td class="px-4 py-3 whitespace-nowrap">#}
|
|
{# <span class="px-2 py-1 text-xs font-semibold rounded-full bg-blue-100 text-blue-800">{{ booking.status }}</span>#}
|
|
{# </td>#}
|
|
{# <td class="px-4 py-3 whitespace-nowrap text-sm text-gray-700">#}
|
|
{# <button class="text-blue-600 hover:text-blue-800 mr-3">Edit</button>#}
|
|
{# <button class="text-red-600 hover:text-red-800">Cancel</button>#}
|
|
{# </td>#}
|
|
{# </tr>#}
|
|
{# {% endfor %}#}
|
|
{# </tbody>#}
|
|
{# </table>#}
|
|
{# </div>#}
|
|
{# </div>#}
|
|
{# </div>#}
|
|
|
|
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<h3>Recent Preinfo Submissions</h3>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="table-container">
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Booking №</th>
|
|
<th>Container №</th>
|
|
<th>Type</th>
|
|
<th>Container count</th>
|
|
<th>Containers left</th>
|
|
<th>Vehicles</th>
|
|
<th>Status</th>
|
|
<th>Actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for booking in recent %}
|
|
<tr>
|
|
<td>{{ booking.number }}</td>
|
|
<td>{{ booking.container_number }}</td>
|
|
<td>{{ booking.container_type }}</td>
|
|
<td>{{ booking.container_count }}</td>
|
|
<td>{{ booking.containers_left }}</td>
|
|
<td>{{ booking.vehicles_left }}</td>
|
|
<td><span class="status">{{ booking.status }}</span></td>
|
|
<td class="actions">
|
|
<button>Edit</button>
|
|
<button>Cancel</button>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
{% endblock content %} |