<?php

/* VGMWOBundle:WorkOrder/Show_parts:workorder_planning.html.twig */
class __TwigTemplate_d54e5b3674d14756ad309f8d7bce9dc963c29f899ccb484100a9fecd82397d65 extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = array(
            'workorder_tasks' => array($this, 'block_workorder_tasks'),
        );
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 1
        echo "<div class=\"row\"><div class=\"col-lg-12\" data-bind=\"with: chosenwo\">
        <div id=\"wo-tasks-toggle\"
             class=\"collapsable-area-header link-color\"
             style=\"margin-top: 10px;\"
             data-toggle=\"collapse\" data-target=\"#wo-tasks\"
             aria-expanded=\"true\" aria-controls=\"wo-tasks\"
             onclick=\"\$('#wo-tasks-toggle span').toggleClass('glyphicon-menu-down glyphicon-menu-right')\">
            <span class=\"glyphicon glyphicon-menu-down\"></span>
            Tasks
            <small class=\"pull-right\"
                   data-bind=\"text: tasks().length + ' tasks'\"></small>
        </div>
        <div class=\"table-responsive col-lg-12 collapse in\" id=\"wo-tasks\"
             style=\"padding-left: 0px; padding-right: 0px;\">
            <!-- ko if: tasks().length > 0 -->
                <table class=\"table table-striped table-hover table-int-grid\">
                    <thead><tr>
                        <th class=\"col-xs-1\">Area</th>
                        <th class=\"col-xs-1\">Supervisor</th>
                        <th class=\"col-xs-4\">Descripcion</th>
                        <th class=\"col-md-4\">Observations</th>
                        <th class=\"col-md-1\">Due Date</th>
                        <th class=\"col-xs-05\">Status</th>
                        <!-- ko if: tasks().length > 1 -->
                        <th colspan=\"2\">Order</th>
                        <!-- /ko -->
                    </tr></thead>
                    <tbody data-bind=\"foreach: tasks\"><tr class=\"locked\" style=\"cursor: pointer\" data-bind=\"click: edit_task\">
                        <td><div data-bind=\"text: area\"></div></td>
                        <td><div data-bind=\"text: supervisor() ? supervisor().name : ''\"></div></td>
                        <td><div data-bind=\"text: description\"></div></td>
                        <td><div data-bind=\"text: obs\"></div></td>
                        <td><div data-bind=\"text: death_line\"></div></td>
                        <td><div data-bind=\"text: status\"></div></td>
                        <!-- ko if: \$parent.tasks().length > 1 -->
                        <td class=\"text-center\" style=\"vertical-align: middle;\">
                            <!-- ko if: \$index() > 0 -->
                                <span class=\"glyphicon glyphicon-arrow-up link-color\"
                                      data-bind=\"click: step_up\"></span>
                            <!-- /ko -->
                            <!-- ko if: \$index() == 0 -->
                                <span class=\"glyphicon glyphicon-arrow-up\"
                                      style=\"cursor: not-allowed; color: #9E9395;\"></span>
                            <!-- /ko -->
                        </td>
                        <td class=\"text-center\" style=\"vertical-align: middle;\">
                            <!-- ko if: \$index() + 1 < \$parent.tasks().length -->
                                <span class=\"glyphicon glyphicon-arrow-down link-color\"
                                      data-bind=\"click: step_down\"></span>
                            <!-- /ko -->
                            <!-- ko if: \$index() + 1 == \$parent.tasks().length -->
                                <span class=\"glyphicon glyphicon-arrow-down\"
                                      style=\"cursor: not-allowed; color: #9E9395;\"></span>
                            <!-- /ko -->
                        </td>
                        <!-- /ko -->
                    </tr></tbody>
                </table>
                <div>
                    <div class=\"col-lg-12\" style=\"padding-right: 0px;\">
                        <div class=\"text-muted pull-left\"><span class=\"glyphicon glyphicon-star\"></span>Click to view</div>
                        <a class=\"pull-right btn btn-sm btn-primary\" data-toggle=\"modal\" data-bind=\"click: add_task\">Add task <span class=\"glyphicon glyphicon-plus-sign\"></span></a>
                    </div>
                </div>
            <!-- /ko -->
            <!-- ko if: tasks().length == 0 -->
                <div class=\"col-xs-12 col-sm-12\">
                    <strong>No Tasks</strong>
                    <a class=\"pull-right\"
                       style=\"cursor: pointer\"
                       data-bind=\"click: add_task\"><strong>Add task</strong>
                        <span class=\"glyphicon glyphicon-plus\"></span></a>
                </div>
            <!-- /ko -->
        </div>
        ";
        // line 76
        $this->displayBlock('workorder_tasks', $context, $blocks);
        // line 77
        echo "    </div>
</div>";
    }

    // line 76
    public function block_workorder_tasks($context, array $blocks = array())
    {
        $this->loadTemplate("VGMWOBundle:Planning:modal_task.html.twig", "VGMWOBundle:WorkOrder/Show_parts:workorder_planning.html.twig", 76)->display($context);
    }

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

    public function getDebugInfo()
    {
        return array (  104 => 76,  99 => 77,  97 => 76,  20 => 1,);
    }
}
