<?php

/* VGMWOBundle:Reports/Parts:worker_list.html.twig */
class __TwigTemplate_5b5c7a6a532068e0f5f90f22c24ca1b9bd111d8f76f0322ada9edc7a477bb0d8 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 "<div id=\"workers_list\"
     class=\"container\" style=\"min-height: 500px;\"
     data-bind=\"visible: chosenworker() == null\">
    <div class=\"col-lg-12\"
         style=\"padding: 0; margin-top: -20px;\">
        <div class=\"dropdown pull-right\">
            <a data-toggle=\"dropdown\" href=\"#\">
                <span class=\"glyphicon glyphicon-share\"></span>
                Export
                <span class=\"caret\"></span>
            </a>
            <ul class=\"dropdown-menu\" role=\"menu\" aria-labelledby=\"dLabel\">
                <li>
                    <a style=\"cursor: pointer;\" data-bind=\"click: export_workers_xls\">
                        Employees to xls
                    </a>
                </li>
                <li>
                    <a style=\"cursor: pointer;\" data-bind=\"click: export_workers_labors_xls\">
                        All labors to xls
                    </a>
                </li>
            </ul>
        </div>
    </div>
    <div class=\"col-lg-12\">
        <div data-bind=\"with: filter_code(),
                                    visible: filter_code().code()\"
             style=\"display: inline\">
            Code:
            <strong class=\"text-muted\"
                    data-bind=\"text: code\"></strong>
                        <span class=\"glyphicon glyphicon-remove-circle\"
                              style=\"cursor: pointer\"
                              data-bind=\"click: setBLANK\"></span>
        </div>
        <div data-bind=\"with: filter_name(),
                                    visible: filter_name().name()\"
             style=\"display: inline\">
            Name:
            <strong class=\"text-muted\"
                    data-bind=\"text: name\"></strong>
                        <span class=\"glyphicon glyphicon-remove-circle\"
                              style=\"cursor: pointer\"
                              data-bind=\"click: setBLANK\"></span>
        </div>
        <div data-bind=\"with: filter_dep(),
                                visible: filter_dep().department()\"
             style=\"display: inline\">
            Department:
            <strong class=\"text-muted\"
                    data-bind=\"text: name()\"></strong>
                        <span class=\"glyphicon glyphicon-remove-circle\"
                              style=\"cursor: pointer\"
                              data-bind=\"click: setBLANK\"></span>
        </div>
    </div>
    ";
        // line 62
        echo "    <div class=\"table-responsive col-lg-12\"
         style=\"padding-left: 0px; padding-right: 0px;\">
        <table class=\"table table-striped table-hover\">
            <thead>
                <tr>
                    <!-- Code column -->
                    <th class=\"col-md-1\">
                        <div data-bind=\"visible: filter_code().editable() == 0\">
                            Code
                            <div style=\"display: inline\"
                                 data-bind=\"with: filter_code\">
                                <a id=\"filtermenu_code\"
                                   style=\"padding: 0px; cursor: pointer\"
                                   title=\"Apply sort\"
                                   data-bind=\"click: activate_code\">
                                    <span class=\"glyphicon glyphicon-filter\"></span>
                                </a>
                            </div>
                            <div class=\"dropdown\"
                                 style=\"display: inline\"
                                 data-bind=\"with: sorter_code\">
                                <a id=\"sortermenu_code\"
                                   style=\"padding: 0px; cursor: pointer\"
                                   title=\"Sort\"
                                   data-toggle=\"dropdown\"
                                   aria-expanded=\"true\">
                                                <span data-bind=\"attr:{class: sort() == '' ? 'glyphicon glyphicon-sort' :
                                                                              sort() == 'ASC' ?
                                                                              'glyphicon glyphicon-sort-by-attributes' :
                                                                              'glyphicon glyphicon-sort-by-attributes-alt'}\"></span>
                                </a>
                                <ul class=\"dropdown-menu\" role=\"menu\" aria-labelledby=\"sortermenu_code\"
                                    style=\"min-width: 10px;\">
                                    <li role=\"presentation\">
                                        <a role=\"menuitem\"
                                           tabindex=\"-1\"
                                           style=\"padding: 0 5px; cursor: pointer\"
                                           data-bind=\"click: setASC\">
                                            <span class=\"glyphicon glyphicon-sort-by-attributes\"></span> ASC
                                        </a>
                                    </li>
                                    <li role=\"presentation\">
                                        <a role=\"menuitem\"
                                           tabindex=\"-1\"
                                           style=\"padding: 0 5px; cursor: pointer\"
                                           data-bind=\"click: setDESC\">
                                            <span class=\"glyphicon glyphicon-sort-by-attributes-alt\"></span> DESC
                                        </a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                        <div data-bind=\"visible: filter_code().editable() == 1\">
                            <input id=\"filter_code_input\"
                                   style=\"font-weight: normal\"
                                   data-bind=\"value: filter_code().code\"
                                   class=\"form-control for-desktop text-center\"/>
                        </div>
                    </th>
                    <!-- Department column -->
                    <th class=\"col-md-5\">
                        <div data-bind=\"visible: filter_dep().editable() == 0\">
                            Department
                            <div style=\"display: inline\"
                                 data-bind=\"with: filter_dep\">
                                <a id=\"filtermenu_department\"
                                   style=\"padding: 0px; cursor: pointer\"
                                   title=\"Apply sort\"
                                   data-bind=\"click: activate_department\">
                                    <span class=\"glyphicon glyphicon-filter\"></span>
                                </a>
                            </div>
                            <div class=\"dropdown\"
                                 style=\"display: inline\"
                                 data-bind=\"with: sorter_dep\">
                                <a id=\"sortermenu_department\"
                                   style=\"padding: 0px; cursor: pointer\"
                                   title=\"Sort\"
                                   data-toggle=\"dropdown\"
                                   aria-expanded=\"true\">
                                                <span data-bind=\"attr:{class: sort() == '' ? 'glyphicon glyphicon-sort' :
                                                                              sort() == 'ASC' ?
                                                                              'glyphicon glyphicon-sort-by-attributes' :
                                                                              'glyphicon glyphicon-sort-by-attributes-alt'}\"></span>
                                </a>
                                <ul class=\"dropdown-menu\" role=\"menu\" aria-labelledby=\"sortermenu_department\"
                                    style=\"min-width: 10px;\">
                                    <li role=\"presentation\">
                                        <a role=\"menuitem\"
                                           tabindex=\"-1\"
                                           style=\"padding: 0 5px; cursor: pointer\"
                                           data-bind=\"click: setASC\">
                                            <span class=\"glyphicon glyphicon-sort-by-attributes\"></span> ASC
                                        </a>
                                    </li>
                                    <li role=\"presentation\">
                                        <a role=\"menuitem\"
                                           tabindex=\"-1\"
                                           style=\"padding: 0 5px; cursor: pointer\"
                                           data-bind=\"click: setDESC\">
                                            <span class=\"glyphicon glyphicon-sort-by-attributes-alt\"></span> DESC
                                        </a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                        <div data-bind=\"visible: filter_dep().editable() == 1\">
                            <select class=\"form-control for-desktop\"
                                    style=\"font-weight: normal\"
                                    tabindex=\"1\"
                                    id=\"filter_department_select\"
                                    data-bind=\"options: departments,
                                                   optionsCaption: 'Department',
                                                   optionsText: 'name',
                                                   value: filter_dep().department\">
                            </select>
                        </div>
                    </th>
                    <!-- Name column -->
                    <th class=\"col-md-5\">
                        <div data-bind=\"visible: filter_name().editable() == 0\">
                            Name
                            <div style=\"display: inline\"
                                 data-bind=\"with: filter_name\">
                                <a id=\"filtermenu_name\"
                                   style=\"padding: 0px; cursor: pointer\"
                                   title=\"Apply sort\"
                                   data-bind=\"click: activate_name\">
                                    <span class=\"glyphicon glyphicon-filter\"></span>
                                </a>
                            </div>
                            <div class=\"dropdown\"
                                 style=\"display: inline\"
                                 data-bind=\"with: sorter_name\">
                                <a id=\"sortermenu_name\"
                                   style=\"padding: 0px; cursor: pointer\"
                                   title=\"Sort\"
                                   data-toggle=\"dropdown\"
                                   aria-expanded=\"true\">
                                                <span data-bind=\"attr:{class: sort() == '' ? 'glyphicon glyphicon-sort' :
                                                                              sort() == 'ASC' ?
                                                                              'glyphicon glyphicon-sort-by-attributes' :
                                                                              'glyphicon glyphicon-sort-by-attributes-alt'}\"></span>
                                </a>
                                <ul class=\"dropdown-menu\" role=\"menu\" aria-labelledby=\"sortermenu_name\"
                                    style=\"min-width: 10px;\">
                                    <li role=\"presentation\">
                                        <a role=\"menuitem\"
                                           tabindex=\"-1\"
                                           style=\"padding: 0 5px; cursor: pointer\"
                                           data-bind=\"click: setASC\">
                                            <span class=\"glyphicon glyphicon-sort-by-attributes\"></span> ASC
                                        </a>
                                    </li>
                                    <li role=\"presentation\">
                                        <a role=\"menuitem\"
                                           tabindex=\"-1\"
                                           style=\"padding: 0 5px; cursor: pointer\"
                                           data-bind=\"click: setDESC\">
                                            <span class=\"glyphicon glyphicon-sort-by-attributes-alt\"></span> DESC
                                        </a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                        <div data-bind=\"visible: filter_name().editable() == 1\">
                            <input id=\"filter_name_input\"
                                   style=\"font-weight: normal\"
                                   data-bind=\"value: filter_name().name\"
                                   class=\"form-control for-desktop\"/>
                        </div>
                    </th>
                    <!-- Picture column -->
                    <th class=\"col-md-1\">Picture</th>
                </tr>
            </thead>
            <tbody data-bind=\"foreach: workers\">
                <tr data-bind=\"click: choseme\"
                    style=\"cursor: pointer\">
                    <td hidden=\"hidden\" data-bind=\"text: id\"></td>
                    <td>
                        <p data-bind=\"text: code\"></p>
                    </td>
                    <td>
                        <p data-bind=\"text: department\"></p>
                    </td>
                    <td>
                        <p data-bind=\"text: name\"></p>
                    </td>
                    <td class=\"text-center\">
                        <img src=\"";
        // line 252
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/vgmwo/images/unknown-user.png"), "html", null, true);
        echo "\"
                             data-bind=\"attr:{src: picture() != null ? picture() : '' },
                        click: enlarge_picture\" width=\"32px\" height=\"32px\"
                             style=\"cursor: zoom-in\" class=\"picture\">
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    <div class=\"text-muted\">
        Finded Employees: <strong data-bind=\"text: cant_wos\"></strong>
    </div>
<!--<div class=\"text-center\" data-bind=\"visivle: last_page > 1\">
    <a href=\"#\" data-bind=\"visible: wo_page() > 1,
                                   click: go_first_page\">
                <span class=\"glyphicon glyphicon-step-backward \"
                      alt=\"First page\" title=\"First page\"/>
    </a>
    <a href=\"#\" data-bind=\"visible: wo_page() > 1,
                                   click: go_prev_page\">
        <span class=\"glyphicon glyphicon-backward\" alt=\"Previous page\" title=\"Previous page\"/>
    </a>

    <div data-bind=\"foreach: visible_pages\"
         style=\"display: inline\">
        <strong data-bind=\"visible: page() == \$root.wo_page(), text:page\" style=\"text-decoration: underline\"></strong>
        <a href=\"#\" data-bind=\"visible: page() != \$root.wo_page(), click: see_me\"><small data-bind=\"text: page\"></small></a>
    </div>
    <a href=\"#\" data-bind=\"visible: last_page() > wo_page(),
                                   click: go_next_page\">
        <span class=\"glyphicon glyphicon-forward\" alt=\"Next page\" title=\"Next page\"/>
    </a>

    <a href=\"#\" data-bind=\"visible: last_page() > wo_page(),
                                   click: go_last_page\">
        <span class=\"glyphicon glyphicon-step-forward\" alt=\"Last page\" title=\"Last page\"/>
    </a>
</div>-->
</div>";
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  270 => 252,  78 => 62,  19 => 1,);
    }
}
