<?php

/* FishmanPollBundle:Pollscheduling/Notification:show.html.twig */
class __TwigTemplate_7558d33026d829edef0aed42732daaab extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = $this->env->loadTemplate("::base_fishman.html.twig");

        $this->blocks = array(
            'subtitle' => array($this, 'block_subtitle'),
            'top_navigation' => array($this, 'block_top_navigation'),
            'navigation' => array($this, 'block_navigation'),
            'breadcrumb' => array($this, 'block_breadcrumb'),
            'subtitle2' => array($this, 'block_subtitle2'),
            'content' => array($this, 'block_content'),
            '__internal_92e801094fab94b72141a0bd935d2e03e5e35463' => array($this, 'block___internal_92e801094fab94b72141a0bd935d2e03e5e35463'),
        );
    }

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

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

    // line 3
    public function block_subtitle($context, array $blocks = array())
    {
        echo "<span class=\"icon-screen\"></span>Programaciones";
    }

    // line 5
    public function block_top_navigation($context, array $blocks = array())
    {
        // line 6
        $this->env->loadTemplate("FishmanFrontEndBundle:Dashboard:navigation.html.twig")->display(array_merge($context, array("navigation" => "scheduling")));
    }

    // line 9
    public function block_navigation($context, array $blocks = array())
    {
        // line 10
        $this->env->loadTemplate("FishmanFrontEndBundle:Dashboard:navigation.html.twig")->display(array_merge($context, array("navigation" => "scheduling")));
    }

    // line 13
    public function block_breadcrumb($context, array $blocks = array())
    {
        // line 14
        echo "<ul id=\"breadcrumbs\" class=\"breadcrumbs\">
    <li><a href=\"";
        // line 15
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("fishman_front_end_homepage"), "html", null, true);
        echo "\">Dashboard</a></li>
    <li><a href=\"";
        // line 16
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("pollscheduling"), "html", null, true);
        echo "\">Programación de Encuestas</a></li>
    <li><a href=\"";
        // line 17
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("pollscheduling_show", array("id" => $this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "id"))), "html", null, true);
        echo "\">";
        echo twig_escape_filter($this->env, (($this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "title") . " ") . $this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "version")), "html", null, true);
        echo "</a></li>
    <li><a href=\"";
        // line 18
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("pollschedulingnotification", array("pollschedulingid" => $this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "id"))), "html", null, true);
        echo "\">Notificaciones</a></li>
    <li class=\"current\"><a href=\"";
        // line 19
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("pollschedulingnotification_show", array("id" => $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "id"))), "html", null, true);
        echo "\">";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "name"), "html", null, true);
        echo "</a></li>
</ul>
";
    }

    // line 23
    public function block_subtitle2($context, array $blocks = array())
    {
        // line 24
        echo "<span class=\"icos-create2\"></span><h5>Programación de Encuestas: ";
        echo twig_escape_filter($this->env, (((($this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "title") . " ") . $this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "version")) . ": ") . $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "name")), "html", null, true);
        echo "</h5>
";
    }

    // line 27
    public function block_content($context, array $blocks = array())
    {
        // line 28
        $this->displayParentBlock("content", $context, $blocks);
        echo "

<div class=\"dataView\">

    <div class=\"menuCrud clearfix\">
        <ul>
            <li>
                <a href=\"";
        // line 35
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("pollschedulingnotification_new", array("pollschedulingid" => $this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "id"))), "html", null, true);
        echo "\" class=\"sideB bGreyish mt10\">
                   Crear Notificación
                </a>
            </li>
        </ul>
    </div>
    <!-- /.menuCrud -->

    <div class=\"widget tableDefault clearfix\">

        <div class=\"whead clearfix\">
            <h6>";
        // line 46
        echo twig_escape_filter($this->env, twig_upper_filter($this->env, (string) $this->renderBlock("__internal_92e801094fab94b72141a0bd935d2e03e5e35463", $context, $blocks)), "html", null, true);
        echo "</h6>
            <div class=\"navTabs\">
                <ul class=\"\">
                    <li><a href=\"";
        // line 49
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("pollscheduling_show", array("id" => $this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "id"))), "html", null, true);
        echo "\">General</a></li>
                    ";
        // line 50
        if (($this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "entitytype") == "pollscheduling")) {
            // line 51
            echo "                    <li><a href=\"";
            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("pollschedulingpeople", array("pollschedulingid" => $this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "id"))), "html", null, true);
            echo "\">Personas</a></li>
                    ";
        }
        // line 53
        echo "                    <li><a href=\"";
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("pollschedulingevaluator", array("pollschedulingid" => $this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "id"))), "html", null, true);
        echo "\">Evaluaciones</a></li>
                    ";
        // line 54
        if (($this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "level") != 0)) {
            // line 55
            echo "                        <li><a href=\"";
            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("pollschedulingsection", array("pollschedulingid" => $this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "id"))), "html", null, true);
            echo "\">Secciones</a></li>
                    ";
        }
        // line 57
        echo "                    <li><a href=\"";
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("pollschedulingquestion", array("pollschedulingid" => $this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "id"))), "html", null, true);
        echo "\">Preguntas</a></li>
                    <li class=\"activeTab\"><a href=\"";
        // line 58
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("pollschedulingnotification", array("pollschedulingid" => $this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "id"))), "html", null, true);
        echo "\">Notificaciones</a></li>
                </ul>
            </div>
        </div>
        
        <div class=\"grid7 showData\">
            <div class=\"widget\">
                <table class=\"record_properties dataTable\">
                    <thead>
                        <tr>
                            <th>Campo</th>
                            <th>Dato</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <th class=\"textL\">Cabecera</th>
                            <td>";
        // line 75
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "head"), "html", null, true);
        echo "</td>
                        </tr>
                        <tr>
                            <th class=\"textL\">Nombre</th>
                            <td>";
        // line 79
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "name"), "html", null, true);
        echo "</td>
                        </tr>
                        <tr>
                            <th class=\"textL\">Tipo</th>
                            <td>";
        // line 83
        echo twig_escape_filter($this->env, $this->env->getExtension('fishman_extension')->notificationtypeNameFilter($this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "type")), "html", null, true);
        echo "</td>
                        </tr>
                        ";
        // line 85
        if (($this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "type") != "message")) {
            // line 86
            echo "                        <tr>
                            <th class=\"textL\">Estado de Encuesta</th>
                            <td>";
            // line 88
            echo twig_escape_filter($this->env, $this->env->getExtension('fishman_extension')->finishedNameFilter($this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "type_status")), "html", null, true);
            echo "</td>
                        </tr>
                        ";
        }
        // line 91
        echo "                        ";
        if (($this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "one_per_evaluator") == 1)) {
            // line 92
            echo "                        <tr>
                            <th class=\"textL\">Enviar</th>
                            <td>";
            // line 94
            echo twig_escape_filter($this->env, $this->env->getExtension('fishman_extension')->onePerEvaluatorFilter($this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "one_per_evaluator")), "html", null, true);
            echo "</td>
                        </tr>
                        ";
        }
        // line 97
        echo "                        <tr>
                            <th class=\"textL\">Asunto</th>
                            <td>";
        // line 99
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "subject"), "html", null, true);
        echo "</td>
                        </tr>
                        <tr>
                            <th class=\"textL\">Mensaje</th>
                            <td>";
        // line 103
        echo $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "message");
        echo "</td>
                        </tr>
                        <tr>
                            <th class=\"textL\">Ejecución</th>
                            <td>";
        // line 107
        echo twig_escape_filter($this->env, $this->env->getExtension('fishman_extension')->ejecutiontypeNameFilter($this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "execution_type")), "html", null, true);
        echo "</td>
                        </tr>
                        ";
        // line 109
        if (($this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "execution_type") == "automatic")) {
            // line 110
            echo "                            <tr>
                                <th class=\"textL\">Notificación Predecesora</th>
                                <td>";
            // line 112
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "predecessor"), "html", null, true);
            echo "</td>
                            </tr>
                            <tr>
                                <th class=\"textL\">Cuando</th>
                                <td>";
            // line 116
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "since"), "html", null, true);
            echo " Días después</td>
                            </tr>
                            <tr>
                                <th class=\"textL\">Repetir</th>
                                <td>";
            // line 120
            echo twig_escape_filter($this->env, $this->env->getExtension('fishman_extension')->replayNameFilter($this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "replay")), "html", null, true);
            echo "</td>
                            </tr>
                            ";
            // line 122
            if (($this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "replay") == 1)) {
                // line 123
                echo "                                <tr>
                                    <th class=\"textL\">Se repite</th>
                                    <td>";
                // line 125
                echo twig_escape_filter($this->env, ((($this->env->getExtension('fishman_extension')->repeatperiodNameFilter($this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "repeat_period")) . " (") . $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "repeat_range")) . ")"), "html", null, true);
                echo "</td>
                                </tr>
                                <tr>
                                    <th class=\"textL\">Finaliza</th>
                                    <td>
                                        ";
                // line 130
                echo twig_escape_filter($this->env, $this->env->getExtension('fishman_extension')->finishNameFilter($this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "finish")), "html", null, true);
                echo "
                                        ";
                // line 131
                if (($this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "finish") == "after")) {
                    // line 132
                    echo "                                            ";
                    echo twig_escape_filter($this->env, $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "repetition_number"), "html", null, true);
                    echo " repeticiones
                                        ";
                }
                // line 134
                echo "                                    </td>
                                </tr>
                            ";
            }
            // line 137
            echo "                        ";
        } elseif (($this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "execution_type") == "trigger")) {
            // line 138
            echo "                            <tr>
                                <th class=\"textL\">Disparadores</th>
                                <td>
                                    ";
            // line 141
            echo twig_escape_filter($this->env, $this->env->getExtension('fishman_extension')->triggerNameFilter($this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "selected_trigger")), "html", null, true);
            echo "
                                </td>
                            </tr>
                        ";
        }
        // line 145
        echo "                        <tr>
                            <th class=\"textL\">Perfil</th>
                            <td>
                            ";
        // line 148
        $context["i"] = 1;
        // line 149
        echo "                            ";
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "asigned"));
        foreach ($context['_seq'] as $context["_key"] => $context["asigned"]) {
            echo " 
                                ";
            // line 150
            echo twig_escape_filter($this->env, $this->env->getExtension('fishman_extension')->profileNameFilter((isset($context["asigned"]) ? $context["asigned"] : null)), "html", null, true);
            echo "
                                ";
            // line 151
            if ((twig_length_filter($this->env, $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "asigned")) > (isset($context["i"]) ? $context["i"] : null))) {
                // line 152
                echo "                                    ";
                $context["i"] = ((isset($context["i"]) ? $context["i"] : null) + 1);
                // line 153
                echo "                                    ";
                echo ", ";
                echo "
                                ";
            }
            // line 155
            echo "                            ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['asigned'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 156
        echo "                            </td>
                        </tr>
                        <tr>
                            <th class=\"textL\">Orden</th>
                            <td>";
        // line 160
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "sequence"), "html", null, true);
        echo "</td>
                        </tr>
                        <tr>
                            <th class=\"textL\">Estado</th>
                            <td>";
        // line 164
        echo twig_escape_filter($this->env, $this->env->getExtension('fishman_extension')->statusNameFilter($this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "status")), "html", null, true);
        echo "</td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
                
        <div class=\"grid4 audit\">
            <div class=\"widget\">
                <div class=\"whead clearfix\">
                    <h6>Auditoría</h6>
                </div>
                <table class=\"audit_list dataTable\">
                    <tbody>
                        <tr>
                            <th class=\"textL\">Id</th>
                            <td>";
        // line 180
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "id"), "html", null, true);
        echo "</td>
                        </tr>
                        <tr>
                            <th class=\"textL\">Creado por</th>
                            <td>";
        // line 184
        echo twig_escape_filter($this->env, (isset($context["createdByName"]) ? $context["createdByName"] : null), "html", null, true);
        echo "</td>
                        </tr>
                        <tr>
                            <th class=\"textL\">Creado el</th>
                            <td>";
        // line 188
        echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "created"), "d/m/Y - H:i"), "html", null, true);
        echo "</td>
                        </tr>
                        <tr>
                            <th class=\"textL\">Modificado por</th>
                            <td>";
        // line 192
        echo twig_escape_filter($this->env, (isset($context["modifiedByName"]) ? $context["modifiedByName"] : null), "html", null, true);
        echo "</td>
                        </tr>
                        <tr>
                            <th class=\"textL\">Última modificación</th>
                            <td>";
        // line 196
        echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "changed"), "d/m/Y - H:i"), "html", null, true);
        echo "</td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
        
    </div>
    <!-- /.tableDefault -->
    
    <div class=\"menuCrud clearfix\">
        <ul class=\"record_actions\">
            <li>
                <a href=\"";
        // line 209
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("pollschedulingnotification", array("pollschedulingid" => $this->getAttribute((isset($context["pollscheduling"]) ? $context["pollscheduling"] : null), "id"))), "html", null, true);
        echo "\" class=\"sideB bGreyish mt10\">Regresar a la lista</a>
            </li>
            ";
        // line 211
        if (($this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "execution_type") == "manual")) {
            // line 212
            echo "            <li>
                <a href=\"";
            // line 213
            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("notificationscheduling_manual_send_one_by_one", array("id" => $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "id"))), "html", null, true);
            echo "\" class=\"sideB bGreyish mt10\" target=\"_blank\">Ejecutar</a>
            </li>
            ";
        }
        // line 216
        echo "            ";
        if (($this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "own") == 1)) {
            // line 217
            echo "            <li>
                <a href=\"";
            // line 218
            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("pollschedulingnotification_drop", array("id" => $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "id"))), "html", null, true);
            echo "\" class=\"sideB bRed mt10\">Eliminar</a>
            </li>
            ";
        }
        // line 221
        echo "            <li>
                <a href=\"";
        // line 222
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("pollschedulingnotification_edit", array("id" => $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "id"))), "html", null, true);
        echo "\" class=\"sideB bRed mt10\">Editar</a>
            </li>
        </ul>
    </div>
    <!-- .menuCrud -->
    
</div>
<!-- /.dataView -->

";
    }

    // line 46
    public function block___internal_92e801094fab94b72141a0bd935d2e03e5e35463($context, array $blocks = array())
    {
        echo "Detalle de Notificación";
    }

    public function getTemplateName()
    {
        return "FishmanPollBundle:Pollscheduling/Notification:show.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  472 => 46,  458 => 222,  455 => 221,  449 => 218,  446 => 217,  443 => 216,  437 => 213,  434 => 212,  432 => 211,  427 => 209,  411 => 196,  404 => 192,  397 => 188,  390 => 184,  383 => 180,  364 => 164,  357 => 160,  351 => 156,  345 => 155,  339 => 153,  336 => 152,  334 => 151,  330 => 150,  323 => 149,  321 => 148,  316 => 145,  309 => 141,  304 => 138,  301 => 137,  296 => 134,  290 => 132,  288 => 131,  284 => 130,  276 => 125,  272 => 123,  270 => 122,  265 => 120,  258 => 116,  251 => 112,  247 => 110,  245 => 109,  240 => 107,  233 => 103,  226 => 99,  222 => 97,  216 => 94,  212 => 92,  209 => 91,  203 => 88,  199 => 86,  197 => 85,  192 => 83,  185 => 79,  178 => 75,  158 => 58,  153 => 57,  147 => 55,  145 => 54,  140 => 53,  134 => 51,  132 => 50,  128 => 49,  122 => 46,  108 => 35,  98 => 28,  95 => 27,  88 => 24,  85 => 23,  76 => 19,  72 => 18,  66 => 17,  62 => 16,  58 => 15,  55 => 14,  52 => 13,  48 => 10,  45 => 9,  41 => 6,  38 => 5,  32 => 3,);
    }
}
