{% extends "employee-base.html" %}

{% block content %}
    {% csrf_token %}
    {{ form.as_p }}
   
    
    <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>
    
{% endblock %}