<?php

/* VGMWOBundle:WorkOrder/ModalPanels:modal_invoice_references.html.twig */
class __TwigTemplate_1e33cf5fd8b6d041b339aeb2003cf2e16b1625697b50fb46ef9d51976e1122e1 extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = array(
        );
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 1
        echo "<!-- ko if: selected_stock() != null -->
<div class=\"modal fade bs-example-modal-lg\"
     id=\"stock-invoices-manager\"
     tabindex=\"-1\"
     role=\"dialog\"
     aria-labelledby=\"myModalLabel\"
     aria-hidden=\"true\">
    <div class=\"modal-dialog modal-lg\">
        <div class=\"modal-content\">
            <div class=\"modal-header\">
                <button type=\"button\" class=\"close\" data-dismiss=\"modal\">
                    <span aria-hidden=\"true\">&times;</span>
                    <span class=\"sr-only\">Cancel</span>
                </button>
                <h4 id=\"stock-data-header\" class=\"modal-title\">Invoices</h4>
            </div>
            <div id=\"invoices\" class=\"modal-body\">
                <div class=\"container-fluid\"
                     style=\"padding: 0px;\"
                     data-bind=\"with: selected_stock\">
                    <div class=\"table-responsive col-lg-12\" style=\"padding-left: 0px; padding-right: 0px;\">
                        <!-- ko if: invoices().length > 0 -->
                        <table class=\"table table-striped table-hover table-int-grid\">
                            <thead><tr>
                                <th class=\"col-xs-1 col-sm-1\">Destination</th>
                                <th class=\"col-xs-1 col-sm-1\">Status</th>
                                <th class=\"col-xs-2 col-sm-2\">\$ T. Amount</th>
                                <th>Items</th>
                                <th class=\"col-xs-2 col-sm-2\" style=\"white-space: nowrap\"># Invoice</th>
                                <th class=\"col-xs-2 col-sm-2\">Date</th>
                                <th class=\"col-xs-4 col-sm-4\" style=\"white-space: nowrap\">Invoiced to</th>
                                <th>Del</th>
                            </tr>
                            </thead>
                            <tbody data-bind=\"foreach: invoices\"><tr style=\"cursor: pointer\" class=\"locked\">
                                <td>
                                    <select class=\"form-control\"
                                            data-bind=\"options: \$root.t_sales, optionsText: 'name',
                                                       optionsCaption: '', value: destination\"></select>
                                </td>
                                <td>
                                    <select class=\"form-control\"
                                            data-bind=\"options: \$root.invoice_status,
                                                       optionsCaption: '', value: status\"></select>
                                </td>
                                <td>
                                    <input class=\"form-control\" placeholder=\"\$ Amount\"
                                           onkeyup=\"validate_R3(this)\"
                                           data-bind=\"value: amount,
                                                      attr:{id: 'stock-invoice-amount-' + \$parent.stock() + '-' + \$index()}\"/>
                                </td>
                                <td>
                                    <input class=\"form-control\" placeholder=\"Items\"
                                           onkeyup=\"validate_N(this)\"
                                           data-bind=\"value: items,
                                                      attr:{id: 'stock-invoice-items-' + \$parent.stock() + '-' + \$index()}\"/>
                                </td>
                                <td>
                                    <input class=\"form-control\" placeholder=\"# Invoice\"
                                           onkeyup=\"validate_N(this)\"
                                           data-bind=\"value: invoice,
                                                      attr:{id: 'stock-invoice-number-' + \$parent.stock() + '-' + \$index()}\"/>
                                </td>
                                <td>
                                    <input data-date =\"\"
                                           data-bind=\"value: date, attr:{id: 'stock-invoice-datepicker-' + \$parent.stock() + '-' + \$index()}\"
                                           data-date-format=\"mm/dd/yy\"
                                           data-link-field=\"stock_due_date\"
                                           data-link-format=\"mm/dd/yy\"
                                           class=\"form-control stock-invoice-datepicker\">
                                </td>
                                <td><select class=\"form-control for-desktop\" data-bind=\"options: \$root.clients(),optionsCaption: 'Client',optionsText: 'name', value: client\"></select></td>
                                <td class=\"text-center\" style=\"vertical-align: middle;\">
                                        <span class=\"glyphicon glyphicon-trash\" style=\"color: #d43f3a; cursor: pointer; width: 100%; height: 100%;\" title=\"Delete stock from this Wrok Order\"
                                              data-bind=\"click: remove\"></span></td>
                            </tr></tbody>
                            <tfoot><tr>
                                <td colspan=\"8\" class=\"text-right\" style=\"vertical-align: middle;\">
                                        <span class=\"glyphicon glyphicon-plus\"
                                              style=\"cursor: pointer; color: #337ab7; width: 100%; height: 100%;\"
                                              title=\"Add new invoice\"
                                              data-bind=\"click: add_invoice\"></span></td>
                            </tr></tfoot>
                        </table>
                        <!-- /ko -->
                        <!-- ko if: invoices().length == 0 -->
                        <div class=\"col-xs-12 col-sm-12\" colspan=\"7\" style=\"white-space: nowrap\">
                            <strong>No Invoice References</strong>
                            <a class=\"pull-right\"
                               style=\"cursor: pointer\"
                               data-bind=\"click: add_invoice\"><strong>Add an invoice reference</strong>
                                <span class=\"glyphicon glyphicon-plus\"></span></a>
                        </div>
                        <!-- /ko -->
                    </div>
                </div>
            </div>
            <div class=\"modal-footer\">
                <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">
                    Close
                </button>
            </div>
        </div>
    </div>
</div>
<!-- /ko -->";
    }

    public function getTemplateName()
    {
        return "VGMWOBundle:WorkOrder/ModalPanels:modal_invoice_references.html.twig";
    }

    public function getDebugInfo()
    {
        return array (  19 => 1,);
    }
}
