{% 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-5 columns">
                            {#<div class="input-group">#}
                                {#<label class="input-group-label">Status</label>#}
                                {#<select class="input-group-field" id="convertInventoryFilter-status">#}
                                    {#<option value="all">All</option>#}
                                    {#<option value="New">New</option>#}
                                    {#<option {{ status == 'Pending Admin Approval' ? 'selected' : '' }} value="Pending Admin Approval">Pending Admin Approval</option>#}
                                    {#<option value="Approved">Approved</option>#}
                                    {#<option value="Rejected">Rejected</option>#}
                                    {#<option value="In Processing">In Processing</option>#}
                                    {#<option value="Pending Costing">Pending Costing</option>#}
                                    {#<option value="Completed">Completed</option>#}
                                {#</select>#}
                            {#</div>#}
                        </div>
                        <div class="large-7 columns text-right">
                            {% if userData.type == 'Super Admin' or 'Admin Convert Inventory New' in userData.accesses %}
                                <label class="middle"><a class="href-new-action" href="{{ path('convert_inventory_form') }}">Convert Supplies</a></label>
                            {% endif %}
                        </div>
                    </div>
                    <table class="display responsive" id="convertInventory-datalist" width="100%">
                        <thead>
                        <tr>
                            <th>Convert Supply No.</th>
                            <th>Date</th>
                            <th>Branch</th>
                            <th>Status</th>
                            <th>Notes</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(){
            convertInventory.settings.ajaxUrl = '{{ path('convert_inventory_ajax_list') }}';
            convertInventory.init();
        });
        //]]>
    </script>
{% endblock %}