<?php

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

        // line 1
        $this->parent = $this->loadTemplate("VGMWOBundle::layout.html.twig", "VGMWOBundle:Reports:jobsByWorker.html.twig", 1);
        $this->blocks = array(
            'stylesheets' => array($this, 'block_stylesheets'),
            'jumbotron_content' => array($this, 'block_jumbotron_content'),
            'content' => array($this, 'block_content'),
            'worker_list' => array($this, 'block_worker_list'),
            'shifts_list' => array($this, 'block_shifts_list'),
            '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: chosenworker() == null\">
                    <strong>Employees' Jobs</strong>
                </H3>
                <div class=\"container-fluid row\">
                    <div class=\"col-lg-12\"
                         data-bind=\"visible: chosenworker() != null,
                        with: chosenworker\">
                        <div class=\"col-md-1 text-center\" style=\"padding: 0px\">
                            <img data-bind=\"attr:{src: picture()}\" width=\"60px\" height=\"60px\">
                        </div>
                        <div class=\"col-md-5 text-left\" style=\"padding-left: 0px\">
                            <div><strong>Code: </strong><strong data-bind=\"text: code()\" class=\"text-muted\"></strong></div>
                            <div><strong>Name: </strong><strong data-bind=\"text: name()\" class=\"text-muted\"></strong></div>
                            <div><strong>Department: </strong><strong data-bind=\"text: department()\" class=\"text-muted\"></strong></div>
                        </div>
                        <div class=\"col-md-4\"
                             style=\"padding-left: 0px; padding-right: 0px;\">
                            <div class=\"text-left\">
                                <div><strong>Total hours: </strong><strong data-bind=\"text: total_hours ? total_hours : 0\" class=\"text-muted\"></strong></div>
                                <div><strong>Total cost: </strong><strong data-bind=\"text: total_cost ? total_cost : 0\" class=\"text-muted\"></strong></div>
                            </div>
                        </div>
                        <div class=\"text-right col-md-2\">
                            <div>
                                <input id=\"code_search\"
                                       data-bind=\"value: \$root.filter_code().code\"
                                       placeholder=\"Code\"
                                       class=\"form-control for-desktop\"/>
                            </div>
                            <div>
                                <input id=\"name_search\"
                                       data-bind=\"value: \$root.filter_name().name\"
                                       placeholder=\"Name\"
                                       class=\"form-control for-desktop\"/>
                            </div>
                            <div>
                                <select class=\"form-control for-desktop\"
                                        tabindex=\"1\"
                                        id=\"department_search\"
                                        data-bind=\"options: \$root.departments(),
                                       optionsCaption: 'Department',
                                       optionsText: 'name',
                                       value: \$root.filter_dep().department\">
                                </select>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
";
    }

    // line 65
    public function block_content($context, array $blocks = array())
    {
        // line 66
        echo "    ";
        $this->displayBlock('worker_list', $context, $blocks);
        // line 69
        echo "    ";
        $this->displayBlock('shifts_list', $context, $blocks);
    }

    // line 66
    public function block_worker_list($context, array $blocks = array())
    {
        // line 67
        echo "        ";
        $this->loadTemplate("VGMWOBundle:Reports/Parts:worker_list.html.twig", "VGMWOBundle:Reports:jobsByWorker.html.twig", 67)->display($context);
        // line 68
        echo "    ";
    }

    // line 69
    public function block_shifts_list($context, array $blocks = array())
    {
        // line 70
        echo "        ";
        $this->loadTemplate("VGMWOBundle:Reports/Parts:shifts_list.html.twig", "VGMWOBundle:Reports:jobsByWorker.html.twig", 70)->display($context);
        // line 71
        echo "    ";
    }

    // line 74
    public function block_javascripts($context, array $blocks = array())
    {
        // line 75
        echo "    ";
        $this->displayParentBlock("javascripts", $context, $blocks);
        echo "
    <script type=\"text/javascript\" src=\"";
        // line 76
        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 77
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/vgmwo/js/jquery/jquery.inputmask.js"), "html", null, true);
        echo "\"></script>
    <script type=\"text/javascript\" src=\"";
        // line 78
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/vgmwo/js/customized/reports/JobsByWorker.js"), "html", null, true);
        echo "\"></script>
    <script type=\"text/javascript\" src=\"";
        // line 79
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/vgmwo/js/customized/validations/OnChangeValidations.js"), "html", null, true);
        echo "\"></script>
    <script type=\"text/javascript\" src=\"";
        // line 80
        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 81
        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() {
            viewModel.appyFilters();
            \$(\"input\").keyup(function(event){
                refreshValue(event.keyCode, event.which, this)
            });
        });
        function getURLFilteredWorkers(){
            return '";
        // line 90
        echo $this->env->getExtension('routing')->getPath("reports_get_filtered_workers");
        echo "';
        }
        function getURLWorkerShifts(){
            return '";
        // line 93
        echo $this->env->getExtension('routing')->getPath("reports_get_filtered_worker_loops");
        echo "';
        }
        function getURLSaveSingleLoop(){
            return '";
        // line 96
        echo $this->env->getExtension('routing')->getPath("loops_save_me");
        echo "';
        }
        function getURLDeleteSingleLoop(){
            return '";
        // line 99
        echo $this->env->getExtension('routing')->getPath("loops_delete_me");
        echo "';
        }
        function getURLValidateLoopDateTime(){
            return '";
        // line 102
        echo $this->env->getExtension('routing')->getPath("validate_my_date_time");
        echo "';
        }
        function getURLExportWorkersXLS(){
            return '";
        // line 105
        echo $this->env->getExtension('routing')->getPath("export_filtered_workers_xls");
        echo "';
        }
        function getURLExportWorkersLaborsXLS(){
            return '";
        // line 108
        echo $this->env->getExtension('routing')->getPath("export_filtered_workers_labors_xls");
        echo "';
        }
        viewModel.LoadData = ko.dependentObservable(function() {
            viewModel.sorter_code().sort('ASC');

            ";
        // line 113
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["departments"]) ? $context["departments"] : $this->getContext($context, "departments")));
        foreach ($context['_seq'] as $context["_key"] => $context["dep"]) {
            // line 114
            echo "                viewModel.departments.push(new department(\"";
            echo twig_escape_filter($this->env, $this->getAttribute($context["dep"], "id", array()), "html", null, true);
            echo "\", \"";
            echo twig_escape_filter($this->env, $this->getAttribute($context["dep"], "name", array()), "html", null, true);
            echo "\"));
            ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['dep'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 116
        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:jobsByWorker.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  243 => 116,  232 => 114,  228 => 113,  220 => 108,  214 => 105,  208 => 102,  202 => 99,  196 => 96,  190 => 93,  184 => 90,  172 => 81,  168 => 80,  164 => 79,  160 => 78,  156 => 77,  152 => 76,  147 => 75,  144 => 74,  140 => 71,  137 => 70,  134 => 69,  130 => 68,  127 => 67,  124 => 66,  119 => 69,  116 => 66,  113 => 65,  54 => 9,  51 => 8,  45 => 6,  41 => 5,  36 => 4,  33 => 3,  11 => 1,);
    }
}
