{% extends '@RxConnexion/Admin/content.html.twig' %}
{% block content %}
    <div class="row max-width-initial">
        <div class="small-12 columns">
            <div class="content-container has-loading">
                <div class="content-container-content hide">
                    <div class="row max-width-initial">
                        <div class="large-3 medium-4 columns">
                            <div class="input-group">
                                <label class="input-group-label">Status</label>
                                <select class="input-group-field" id="transmittalFilter-status">
                                    <option value="all">All</option>
                                    <option value="Loading">Loading</option>
                                    <option value="Delivered">Delivered</option>
                                    <option value="Received">Received</option>
                                </select>
                            </div>
                        </div>
                        <div class="large-9 medium-8 columns">
                            {% if userData.type == 'Super Admin' or 'Admin Transmittal New' in userData.accesses %}
                                <label class="middle text-right"><a class="href-new-action" href="{{ path('material_requisition_transmittal_form') }}" >New Transmittal</a></label>
                            {% endif %}
                        </div>
                    </div>
                    <table class="display responsive" id="transmittal-datalist" width="100%">
                        <thead>
                        <tr>
                            <th>Transmittal No.</th>
                            <th>Delivery No.</th>
                            <th>Delivery Date</th>
                            <th>Delivery Type</th>
                            <th>Destination</th>
                            <th>Status</th>
                            <th>Action</th>
                        </tr>
                        </thead>
                        <tbody></tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
    {% include '@RxConnexion/Admin/js.html.twig' %}
    <script language="javascript">
        //<![CDATA[
        jQ(document).ready(function(){
            transmittal.settings.ajaxUrl = '{{ path('material_requisition_transmittal_ajax_list') }}';
            transmittal.init();
        });
        //]]>
    </script>
{% endblock %}