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.
depot_django/templates/employee/payment-create.html

44 lines
1.5 KiB
HTML

{% extends "employee-base.html" %}
{% block content %}
<form method="POST">
{% csrf_token %}
{{ form.as_p }}
{% for container in containers %}
<input type="hidden" name="containers" value="{{ container.id }}">
{% endfor %}
<div>
<button id="createPaymentBtn" class="btn btn-primary" type="submit">Create Payment</button>
</div>
<div class="selected-containers">
<h3>Selected Containers</h3>
<table class="table">
<thead>
<tr>
<th>Container Number</th>
<th>Type</th>
<th>Company</th>
<th>Received Date</th>
<th>Expedited Date</th>
</tr>
</thead>
<tbody>
{% for container in containers %}
<tr>
<td>{{ container.number }}</td>
<td>{{ container.container_type }}</td>
<td>{{ container.line.company.short_name }}</td>
<td>{{ container.received_on|date:"Y-m-d" }}</td>
<td>{{ container.expedited_on|date:"Y-m-d" }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</form>
{% endblock %}