fixed client dashboard

fixed employee sidebar nomenclatures buttons
This commit is contained in:
2025-08-03 17:25:23 +03:00
parent 9167092f27
commit f501be9794
13 changed files with 154 additions and 236 deletions
+13 -9
View File
@@ -139,11 +139,11 @@
</div>
<div class="detail-row">
<div class="detail-label">Preinfo:</div>
<div class="detail-value">{{ container.preinfo }}</div>
<div class="detail-value">{{ container.preinfo.id }}</div>
</div>
<div class="detail-row">
<div class="detail-label">Received On:</div>
<div class="detail-value">{{ container.received_on|date:"Y-m-d H:i" }}</div>
<div class="detail-value">{{ container.received_on|bg_date }}</div>
</div>
<div class="detail-row">
<div class="detail-label">Receive Vehicle:</div>
@@ -163,7 +163,7 @@
<div class="detail-label">Booking:</div>
<div class="detail-value">
{% if container.booking %}
{{ container.booking.name }}
{{ container.booking.id }}
{% else %}
-
{% endif %}
@@ -204,15 +204,19 @@
{% block table_header %}
<th style="display: none;">Select</th>
<th>Company name</th>
<th>Company short name</th>
<th>Description</th>
<th>Company</th>
<th>Receive date</th>
<th>Swept</th>
<th>Washed</th>
<th>Expedited date</th>
{% endblock table_header %}
{% block table_data %}
<td>{{ object.number }}</td>
<td>{{ object.number }}</td>
<td>{{ object.number }}</td>
<td>{{ object.line.company.short_name }}</td>
<td>{{ object.received_on|bg_date }}</td>
<td>{{ object.swept|yesno:"Yes,-" }}</td>
<td>{{ object.washed|yesno:"Yes,-" }}</td>
<td>{{ object.expedited_on|bg_date }}</td>
{% endblock %}
{% block buttons %}
-7
View File
@@ -30,12 +30,5 @@
{% endblock %}
{% block buttons %}
{# <a href="{% url 'client_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>#}
{# #}
{# <button class="btn btn-primary" type="button" onclick="window.location.href='{% url 'client_booking_create' %}'">Create booking</button>#}
{# <button class="btn btn-primary" type="button" id="editBtn" data-url="{% url 'client_booking_update' pk=0 %}" data-requires-selection disabled>Edit booking</button>#}
{# <button class="btn btn-primary" type="button" id="deleteBtn" data-url="{% url 'client_booking_active' pk=0 %}" data-requires-selection disabled>Delete booking</button> #}
{% endblock buttons %}