<?php

/* VGMWOBundle:Reports:workOrderReports.html.twig */
class __TwigTemplate_ef55b923b445c335a4cd60cb65b78ddef3af62b7d6da95b8b938080e4a9b7456 extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        // line 1
        $this->parent = $this->loadTemplate("VGMWOBundle::layout.html.twig", "VGMWOBundle:Reports:workOrderReports.html.twig", 1);
        $this->blocks = array(
            'stylesheets' => array($this, 'block_stylesheets'),
            'jumbotron_content' => array($this, 'block_jumbotron_content'),
            'content' => array($this, 'block_content'),
            'workorders_list' => array($this, 'block_workorders_list'),
            'workorder_details' => array($this, 'block_workorder_details'),
            'javascripts' => array($this, 'block_javascripts'),
        );
    }

    protected function doGetParent(array $context)
    {
        return "VGMWOBundle::layout.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }

    // line 3
    public function block_stylesheets($context, array $blocks = array())
    {
        // line 4
        echo "    ";
        $this->displayParentBlock("stylesheets", $context, $blocks);
        echo "
    <link href=\"";
        // line 5
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/vgmwo/css/bootstrap-datetimepicker.css"), "html", null, true);
        echo "\" rel=\"stylesheet\" media=\"screen\">
    <link href=\"";
        // line 6
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/vgmwo/css/waitMe.css"), "html", null, true);
        echo "\" rel=\"stylesheet\" media=\"screen\">
";
    }

    // line 8
    public function block_jumbotron_content($context, array $blocks = array())
    {
        // line 9
        echo "    <div class=\"jumbotron\" style=\"padding-top: 10px; padding-bottom: 5px;\"  id=\"jumbotron\">
        <div class=\"container-fluid\">
            <div class=\"col-md-12 text-center\" style=\"padding-left: 0px;\">
                <H3 style=\"margin: 0px;\"
                    data-bind=\"visible: chosenwo() == null\">
                    <strong>Work Orders Reports</strong>
                </H3>
                <H3 style=\"margin: 0px;\"
                    data-bind=\"visible: chosenwo() != null, with: chosenwo\">
                    <strong>Work Order: </strong>
                    <strong class=\"text-muted\" data-bind=\"text: wo_number\"></strong>
                </H3>
            </div>
        </div>
    </div>
";
    }

    // line 25
    public function block_content($context, array $blocks = array())
    {
        // line 26
        echo "    ";
        $this->displayBlock('workorders_list', $context, $blocks);
        // line 29
        echo "    ";
        $this->displayBlock('workorder_details', $context, $blocks);
        // line 32
        echo "    <div class=\"modal fade bs-example-modal-lg\"
         id=\"show_stock\"
         tabindex=\"-1\"
         role=\"dialog\"
         aria-labelledby=\"myModalLabel\"
         aria-hidden=\"true\">
        <div class=\"modal-dialog modal-lg\"
             data-bind=\"with: stock2show\">
            <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 class=\"modal-title\">Stock data</h4>
                </div>
                <div class=\"modal-body\">
                    <div class=\"container-fluid\">
                        <div class=\"col-lg-7\">
                            <img class=\"img-responsive\"
                                 data-bind=\"attr:{src: picture}\"
                                 style=\"margin:0 auto;\">
                        </div>
                        <div class=\"col-lg-5 table-responsive\">
                            <table class=\"table table-striped table-hover\">
                                <tbody>
                                    <tr>
                                        <td class=\"col-lg-6\">
                                            <strong>Number</strong>
                                        </td>
                                        <td data-bind=\"text: stock\"></td>
                                    </tr>
                                    <tr>
                                        <td class=\"col-lg-6\">
                                            <strong>Serial No</strong>
                                        </td>
                                        <td data-bind=\"text: serial\"></td>
                                    </tr>
                                    <tr>
                                        <td class=\"col-lg-6\">
                                            <strong>Hours/Miles</strong>
                                        </td>
                                        <td data-bind=\"text: hours_miles\"></td>
                                    </tr>
                                    <tr>
                                        <td class=\"col-lg-6\">
                                            <strong>Make</strong>
                                        </td>
                                        <td data-bind=\"text: make\"></td>
                                    </tr>
                                    <tr>
                                        <td class=\"col-lg-6\">
                                            <strong>Model</strong>
                                        </td>
                                        <td data-bind=\"text: model\"></td>
                                    </tr>
                                    <tr>
                                        <td class=\"col-lg-6\">
                                            <strong>Cap</strong>
                                        </td>
                                        <td data-bind=\"text: capacity\"></td>
                                    </tr>
                                    <tr>
                                        <td class=\"col-lg-6\">
                                            <strong>Tran/Gen/Com</strong>
                                        </td>
                                        <td data-bind=\"text: tgc\"></td>
                                    </tr>
                                    <tr>
                                        <td class=\"col-lg-6\">
                                            <strong>Engine</strong>
                                        </td>
                                        <td data-bind=\"text: engine\"></td>
                                    </tr>
                                    <tr>
                                        <td class=\"col-lg-6\">
                                            <strong>Year</strong>
                                        </td>
                                        <td data-bind=\"text: year\"></td>
                                    </tr>
                                    <tr>
                                        <td class=\"col-lg-6\">
                                            <strong>Localization</strong>
                                        </td>
                                        <td data-bind=\"text: localization\"></td>
                                    </tr>
                                    <tr>
                                        <td class=\"col-lg-6\">
                                            <strong>Actual Condition</strong>
                                        </td>
                                        <td data-bind=\"text: a_condition\"></td>
                                    </tr>
                                    <tr>
                                        <td class=\"col-lg-6\" colspan=\"2\">
                                            <strong>Description:</strong>
                                            <p style=\"display: inline;\" data-bind=\"text: description\"></p>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
";
    }

    // line 26
    public function block_workorders_list($context, array $blocks = array())
    {
        // line 27
        echo "        ";
        $this->loadTemplate("VGMWOBundle:Reports/Parts:workorders_list.html.twig", "VGMWOBundle:Reports:workOrderReports.html.twig", 27)->display($context);
        // line 28
        echo "    ";
    }

    // line 29
    public function block_workorder_details($context, array $blocks = array())
    {
        // line 30
        echo "        ";
        $this->loadTemplate("VGMWOBundle:Reports/Parts:workorder_details.html.twig", "VGMWOBundle:Reports:workOrderReports.html.twig", 30)->display($context);
        // line 31
        echo "    ";
    }

    // line 140
    public function block_javascripts($context, array $blocks = array())
    {
        // line 141
        echo "    ";
        $this->displayParentBlock("javascripts", $context, $blocks);
        echo "
    <script type=\"text/javascript\" src=\"";
        // line 142
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/vgmwo/js/bootstrap-datetimepicker.js"), "html", null, true);
        echo "\"></script>
    <script type=\"text/javascript\" src=\"";
        // line 143
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/vgmwo/js/customized/utils/Utils.js"), "html", null, true);
        echo "\"></script>
    <script type=\"text/javascript\" src=\"";
        // line 144
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/vgmwo/js/knockout-3.2.0.js"), "html", null, true);
        echo "\"></script>
    <script type=\"text/javascript\" src=\"";
        // line 145
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/vgmwo/js/customized/reports/WorkOrdersReports.js"), "html", null, true);
        echo "\"></script>
    <script type=\"text/javascript\" src=\"";
        // line 146
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/vgmwo/js/waitMe.js"), "html", null, true);
        echo "\"></script>
    <script type=\"text/javascript\">
        \$(document).ready(function() {
            loadPageFeatures();
            viewModel.appyFilters();
            viewModel.getDepartments();
            \$('#show_stock').on('hidden.bs.modal', function (e) {
                viewModel.clear_stock2show();
            });
            \$('#large-picture').on('hidden.bs.modal', function (e) {
                viewModel.clear_large_image();
            });
        });
        function getURLFilteredWorkOrders(){
            return '";
        // line 160
        echo $this->env->getExtension('routing')->getPath("reports_get_filtered_workorders");
        echo "';
        }
        function getURLExport2ExcelFilteredWorkOrders(){
            return '";
        // line 163
        echo $this->env->getExtension('routing')->getPath("export_filtered_workorders_xls");
        echo "';
        }
        function getURLExport2ExcelConsolidatedFilteredWorkOrders(){
            return '";
        // line 166
        echo $this->env->getExtension('routing')->getPath("export_filtered_workorders_consolidated_xls");
        echo "';
        }
        function getURLExport2ExcelFilteredWorkOrdersLabors(){
            return '";
        // line 169
        echo $this->env->getExtension('routing')->getPath("export_filtered_workorders_labors_xls");
        echo "';
        }
        function getURLWorkOrderLoops(){
            return '";
        // line 172
        echo $this->env->getExtension('routing')->getPath("reports_get_filtered_workorder_loops");
        echo "';
        }
        function getURLDepartments(){
            return '";
        // line 175
        echo $this->env->getExtension('routing')->getPath("get_departments");
        echo "';
        }

        viewModel.LoadData = ko.dependentObservable(function() {
            //Filling the lists
            viewModel.sorter_wo().sort(\"ASC\");

            ";
        // line 182
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["supervisors"]) ? $context["supervisors"] : $this->getContext($context, "supervisors")));
        foreach ($context['_seq'] as $context["_key"] => $context["sup"]) {
            // line 183
            echo "                ";
            if ($this->getAttribute($context["sup"], "picture", array())) {
                // line 184
                echo "                    viewModel.supervisors.push(new supervisor(\"";
                echo twig_escape_filter($this->env, $this->getAttribute($context["sup"], "id", array()), "html", null, true);
                echo "\",
                        \"";
                // line 185
                echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["sup"], "picture", array()), "getFinalWebPath", array()), "html", null, true);
                echo "\", \"";
                echo twig_escape_filter($this->env, $this->getAttribute($context["sup"], "workercode", array()), "html", null, true);
                echo "\",
                        \"";
                // line 186
                echo twig_escape_filter($this->env, $this->getAttribute($context["sup"], "name", array()), "html", null, true);
                echo " ";
                echo twig_escape_filter($this->env, $this->getAttribute($context["sup"], "lastname", array()), "html", null, true);
                echo "\", \"";
                echo twig_escape_filter($this->env, $this->getAttribute($context["sup"], "department", array()), "html", null, true);
                echo "\"));
                ";
            } else {
                // line 188
                echo "                    viewModel.supervisors.push(new supervisor(\"";
                echo twig_escape_filter($this->env, $this->getAttribute($context["sup"], "id", array()), "html", null, true);
                echo "\",
                    null, \"";
                // line 189
                echo twig_escape_filter($this->env, $this->getAttribute($context["sup"], "workercode", array()), "html", null, true);
                echo "\",
                    \"";
                // line 190
                echo twig_escape_filter($this->env, $this->getAttribute($context["sup"], "name", array()), "html", null, true);
                echo " ";
                echo twig_escape_filter($this->env, $this->getAttribute($context["sup"], "lastname", array()), "html", null, true);
                echo "\", \"";
                echo twig_escape_filter($this->env, $this->getAttribute($context["sup"], "department", array()), "html", null, true);
                echo "\"));
                ";
            }
            // line 192
            echo "            ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['sup'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 193
        echo "        }, viewModel);

        // Activates knockout.js
        //ko.applyBindings(baseViewModel, document.getElementById(\"menu-bar\"));
        ko.applyBindings(viewModel, document.getElementById(\"content-body\"));
    </script>

";
    }

    public function getTemplateName()
    {
        return "VGMWOBundle:Reports:workOrderReports.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  344 => 193,  338 => 192,  329 => 190,  325 => 189,  320 => 188,  311 => 186,  305 => 185,  300 => 184,  297 => 183,  293 => 182,  283 => 175,  277 => 172,  271 => 169,  265 => 166,  259 => 163,  253 => 160,  236 => 146,  232 => 145,  228 => 144,  224 => 143,  220 => 142,  215 => 141,  212 => 140,  208 => 31,  205 => 30,  202 => 29,  198 => 28,  195 => 27,  192 => 26,  82 => 32,  79 => 29,  76 => 26,  73 => 25,  54 => 9,  51 => 8,  45 => 6,  41 => 5,  36 => 4,  33 => 3,  11 => 1,);
    }
}
