<?php

/* VGMWOBundle:WorkOrder/ModalPanels:modal_edit_stock.html.twig */
class __TwigTemplate_d5e61e5d056066077136b885daea9eb465ac65478993677a75aed2d271ec7f24 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: chosenwo() -->
    <div class=\"modal fade bs-example-modal-lg\"
         id=\"editing-stock\"
         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\">Edit stock</h4>
                </div>
                <div id=\"stockModalPreView\" class=\"modal-body\">
                    <div class=\"container-fluid\"
                         style=\"padding: 0px;\">
                        <div data-bind=\"attr:{class: chosenwo().editing_stock() == null ?
                                                        'col-xs-12 text-center' : 'col-xs-7 text-center'}\">
                            <img class=\"img\"
                                 data-bind=\"attr:{src: chosenwo().editing_stock() != null ?
                                            chosenwo().editing_stock().picture() != null ?
                                             chosenwo().editing_stock().picture() :
                                            '";
        // line 26
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/vgmwo/images/unknown-wo.png"), "html", null, true);
        echo "' :
                                            '";
        // line 27
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/vgmwo/images/unknown-wo.png"), "html", null, true);
        echo "'}\"/>
                        </div>

                        <div class=\"col-xs-5\" data-bind=\"visible: chosenwo().editing_stock() != null\">
                            <div id=\"stock_data\" class=\"table-responsive\" style=\"padding-left: 0px;\"
                                 data-bind=\"with: chosenwo().editing_stock\">
                                <table class=\"table table-striped table-hover\">
                                    <tbody class=\"stocks_list\">
                                    <tr>
                                        <td class=\"col-md-5\" style=\"text-align: right; padding: 0 2px;\">
                                            <strong>Stock No:</strong>
                                        </td>
                                        <td id=\"data-stock\" class=\"col-md-7\"
                                            style=\"padding: 0 2px;\">
                                            <input class=\"form-control for-desktop\" data-bind=\"value: stock\"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class=\"col-md-5\" style=\"text-align: right; padding: 0 2px;\">
                                            <strong>Serial No:</strong>
                                        </td>
                                        <td id=\"data-serial\" class=\"col-md-7\"
                                            style=\"padding: 0 2px;\">
                                            <input class=\"form-control for-desktop\" data-bind=\"value: serial\"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class=\"col-md-5\" style=\"text-align: right; padding: 0 2px;\">
                                            <strong>Equipment:</strong>
                                        </td>
                                        <td id=\"data-serial\" class=\"col-md-7\"
                                            style=\"padding: 0 2px;\">
                                            <select class=\"form-control for-desktop\"
                                                    tabindex=\"1\"
                                                    data-bind=\"options: \$root.equipments(),
                                                                                   optionsCaption: 'Equipment',
                                                                                   optionsText: 'name',
                                                                                   value: equipment\">
                                            </select>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class=\"col-md-5\" style=\"text-align: right; padding: 0 2px;\">
                                            <strong>Hours/Miles:</strong>
                                        </td>
                                        <td id=\"data-hour-time\" class=\"col-md-7\"
                                            style=\"padding: 0 2px;\">
                                            <input class=\"form-control for-desktop\" data-bind=\"value: hours_miles\"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class=\"col-md-5\" style=\"text-align: right; padding: 0 2px;\">
                                            <strong>Make:</strong>
                                        </td>
                                        <td id=\"data-make\" class=\"col-md-7\"
                                            style=\"padding: 0 2px;\">
                                            <input class=\"form-control for-desktop\" data-bind=\"value: brand\"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class=\"col-md-5\" style=\"text-align: right; padding: 0 2px;\">
                                            <strong>Model:</strong>
                                        </td>
                                        <td id=\"data-model\" class=\"col-md-7\"
                                            style=\"padding: 0 2px;\">
                                            <input class=\"form-control for-desktop\" data-bind=\"value: model\"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class=\"col-md-5\" style=\"text-align: right; padding: 0 2px;\">
                                            <strong>Cap:</strong>
                                        </td>
                                        <td id=\"data-cap\" class=\"col-md-7\"
                                            style=\"padding: 0 2px;\">
                                            <input class=\"form-control for-desktop\" data-bind=\"value: cap\"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class=\"col-md-5\" style=\"text-align: right; padding: 0 2px;\">
                                            <strong>Tran/Gen/Com:</strong>
                                        </td>
                                        <td id=\"data-tgc\" class=\"col-md-7\"
                                            style=\"padding: 0 2px;\">
                                            <input class=\"form-control for-desktop\" data-bind=\"value: tgc\"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class=\"col-md-5\" style=\"text-align: right; padding: 0 2px;\">
                                            <strong>Engine:</strong>
                                        </td>
                                        <td id=\"data-engine\" class=\"col-md-7\"
                                            style=\"padding: 0 2px;\">
                                            <input class=\"form-control for-desktop\" data-bind=\"value: engine\"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class=\"col-md-5\" style=\"text-align: right; padding: 0 2px;\">
                                            <strong>Year:</strong>
                                        </td>
                                        <td id=\"data-year\" class=\"col-md-7\"
                                            style=\"padding: 0 2px;\">
                                            <input class=\"form-control for-desktop\" data-bind=\"value: year\"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class=\"col-md-5\" style=\"text-align: right; padding: 0 2px;\">
                                            <strong>Localization:</strong>
                                        </td>
                                        <td id=\"data-loc\" class=\"col-md-7\"
                                            style=\"padding: 0 2px;\">
                                            <input class=\"form-control for-desktop\" data-bind=\"value: loc\"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class=\"col-md-5\" style=\"text-align: right; padding: 0 2px;\">
                                            <strong>Actual Condition:</strong>
                                        </td>
                                        <td id=\"data-acond\" class=\"col-md-7\"
                                            style=\"padding: 0 2px;\">
                                            <input class=\"form-control for-desktop\" data-bind=\"value: acond\"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class=\"col-md-5\" style=\"text-align: right; padding: 0 2px;\">
                                            <strong>Work Order:</strong>
                                        </td>
                                        <td id=\"data-wo\" class=\"col-md-7\"
                                            style=\"padding: 0 2px;\">
                                            <input class=\"form-control for-desktop\" data-bind=\"value: actual_workorder\"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan=\"2\">
                                            <strong>Condition: </strong>
                                            <textarea class=\"form-control\" data-bind=\"value: cond\"></textarea>
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
                <div class=\"modal-footer\" data-bind=\"with: chosenwo().editing_stock\">
                    <button id=\"stock-modal-cancel-button\" type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">
                        Cancel
                    </button>
                    <button id=\"stock-modal-cancel-button\" type=\"button\"
                            class=\"btn btn-primary\" data-dismiss=\"modal\"
                            data-bind=\"click: save_me\">
                        Save
                    </button>
                </div>
            </div>
        </div>
    </div>
<!-- /ko -->";
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  50 => 27,  46 => 26,  19 => 1,);
    }
}
