<?php

/* FishmanNotificationBundle:Notificationscheduling:onebyone.html.twig */
class __TwigTemplate_b9cfc77e7ec53421ffc002ec131ac321 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_23fa12ec86a071e468777b328b087caf101965e4' => array($this, 'block___internal_23fa12ec86a071e468777b328b087caf101965e4'),
            'javascripts' => array($this, 'block_javascripts'),
        );
    }

    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 16
    public function block_subtitle2($context, array $blocks = array())
    {
        // line 17
        echo "<span class=\"icos-cog4\"></span><h5>Ejecutar Notificación: ";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "name"), "html", null, true);
        echo "</h5>
";
    }

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

<form action=\"\" method=\"post\" class=\"manualSendOneByOne\">
    <div class=\"widget tableDefault clearfix\">
        <div class=\"whead clearfix\">
            <h6>";
        // line 26
        echo twig_escape_filter($this->env, twig_upper_filter($this->env, (string) $this->renderBlock("__internal_23fa12ec86a071e468777b328b087caf101965e4", $context, $blocks)), "html", null, true);
        echo "</h6>
        </div>
        
        <div class=\"formRow clearfix\">
            
            <div class=\"grid3\">
                <strong><label>Contador</label></strong>
            </div>
  
            <div class=\"grid7\">
              <div class=\"loader\">
                  <img src=\" ";
        // line 37
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("images/ajax-loader.gif"), "html", null, true);
        echo "\" alt=\"\" />
              </div>
              <div id=\"nmd-progress\" class=\"ui-progressbar ui-widget ui-widget-content ui-corner-all\" role=\"progressbar\" aria-valuemin=\"0\" aria-valuemax=\"100\" aria-valuenow=\"80\">
                  <div class=\"ui-progressbar-value ui-widget-header ui-corner-left\" style=\"width: 0%; \"></div>
              </div>
              <div class=\"containerCountText\"><label class=\"countText\">0 de 0 notificaciones enviadas</label></div>
            </div>
            
            <div class=\"grid2\">
                <button type=\"submit\" id=\"nmd-stop\" class=\"sideB bBlack\" disabled>Detener</button>
            </div>
  
        </div>
        
        <div class=\"formRow clearfix\">
  
            <div class=\"grid3\">
                <div class=\"grid6\">
                    <strong><label>Usuario :</label></strong>
                </div>
                <div class=\"grid6\">
                    <label>";
        // line 58
        echo twig_escape_filter($this->env, (isset($context["user_creator"]) ? $context["user_creator"] : null), "html", null, true);
        echo "</label>
                </div>
            </div>
            
            <div class=\"grid3\">
                <div class=\"grid6\">
                    <strong><label>Fecha :</label></strong>
                </div>
                <div class=\"grid6\">
                    <label>";
        // line 67
        echo twig_escape_filter($this->env, twig_date_format_filter($this->env, (isset($context["date_send"]) ? $context["date_send"] : null), "d/m/Y"), "html", null, true);
        echo "</label>
                </div>
            </div>
            
            <div class=\"grid4\">
                <div class=\"grid4\">
                    <strong><label>Mostrar pendientes</strong>
                </div>
                <div class=\"grid2 check\">
                    <input type=\"checkbox\" id=\"form_view_check_pending\" name=\"form_view[pending]\" value=\"pending\" checked>
                </div>
                <div class=\"grid4\">
                    <strong><label>Mostrar enviados</strong>
                </div>
                <div class=\"grid2 check\">
                    <input type=\"checkbox\" id=\"form_view_check_send\" name=\"form_view[send]\" value=\"send\" checked>
                </div>
            </div>
            
            <div class=\"grid2\">
                <div class=\"pending menuCrud clearfix\">
                    <ul class=\"record_actions\">
                      <li><button type=\"submit\" id=\"send-pending\" class=\"sideB bBlue\">Enviar pendientes</button></li>
                    </ul>
                </div>
            </div>
            
        </div>
        
        <div class=\"dataListTable\">
            <table class=\"records_list dataTable check_all\">
                <thead>
                    <tr>
                        <th class=\"check\"><input type=\"checkbox\" id=\"form_deletes_check_all\" name=\"form_deletes[check_all]\" value=\"1\"></th>
                        ";
        // line 101
        if (($this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "notificationtype") == "poll")) {
            // line 102
            echo "                        <th>Evaluación</th>
                        ";
        }
        // line 104
        echo "                        <th>Enviar a</th>
                        <th>Correo</th>
                        <th>Perfil</th>
                        <th>Información Adicional</th>
                        <th>Estado</th>
                        <th>Acción</th>
                    </tr>
                </thead>
                <tbody>
                ";
        // line 113
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["notification_manual_details"]) ? $context["notification_manual_details"] : null));
        foreach ($context['_seq'] as $context["_key"] => $context["nmd"]) {
            // line 114
            echo "                    <tr id=\"nmd-";
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context["nmd"]) ? $context["nmd"] : null), "id"), "html", null, true);
            echo "\">
                        <td class=\"check\"><input type=\"checkbox\" id=\"form_notification_sends_";
            // line 115
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context["nmd"]) ? $context["nmd"] : null), "id"), "html", null, true);
            echo "\" name=\"form[notifications][]\" value=\"";
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context["nmd"]) ? $context["nmd"] : null), "id"), "html", null, true);
            echo "\"></td>
                        ";
            // line 116
            if (($this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "notificationtype") == "poll")) {
                // line 117
                echo "                            ";
                if (($this->getAttribute((isset($context["ns_entity"]) ? $context["ns_entity"] : null), "type") != "not_evaluateds")) {
                    // line 118
                    echo "                                <td><strong>";
                    echo twig_escape_filter($this->env, (($this->getAttribute((isset($context["nmd"]) ? $context["nmd"] : null), "ur_names") . " ") . $this->getAttribute((isset($context["nmd"]) ? $context["nmd"] : null), "ur_surname")), "html", null, true);
                    echo "</strong> > <strong>";
                    echo twig_escape_filter($this->env, (($this->getAttribute((isset($context["nmd"]) ? $context["nmd"] : null), "ue_names") . " ") . $this->getAttribute((isset($context["nmd"]) ? $context["nmd"] : null), "ue_surname")), "html", null, true);
                    echo "</strong></td>
                            ";
                } else {
                    // line 120
                    echo "                                <td><strong>";
                    echo twig_escape_filter($this->env, (($this->getAttribute((isset($context["nmd"]) ? $context["nmd"] : null), "ur_names") . " ") . $this->getAttribute((isset($context["nmd"]) ? $context["nmd"] : null), "ur_surname")), "html", null, true);
                    echo "</strong></td>
                            ";
                }
                // line 122
                echo "                        ";
            }
            // line 123
            echo "                        <td><strong>";
            echo twig_escape_filter($this->env, (((($this->getAttribute((isset($context["nmd"]) ? $context["nmd"] : null), "names") . " ") . $this->getAttribute((isset($context["nmd"]) ? $context["nmd"] : null), "surname")) . " ") . $this->getAttribute((isset($context["nmd"]) ? $context["nmd"] : null), "lastname")), "html", null, true);
            echo "</strong></td>
                        <td>";
            // line 124
            if ($this->getAttribute((isset($context["nmd"]) ? $context["nmd"] : null), "wi_email")) {
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["nmd"]) ? $context["nmd"] : null), "wi_email"), "html", null, true);
            } else {
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["nmd"]) ? $context["nmd"] : null), "email"), "html", null, true);
            }
            echo "</td>
                        <td>";
            // line 125
            echo twig_escape_filter($this->env, $this->env->getExtension('fishman_extension')->profileNameFilter($this->getAttribute((isset($context["nmd"]) ? $context["nmd"] : null), "profile")), "html", null, true);
            echo "</td>
                        <td>";
            // line 126
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context["nmd"]) ? $context["nmd"] : null), "aditional_information"), "html", null, true);
            echo "</td>
                        <td class=\"nmd-status\">";
            // line 127
            echo twig_escape_filter($this->env, $this->env->getExtension('fishman_extension')->statusNotificationNameFilter($this->getAttribute((isset($context["nmd"]) ? $context["nmd"] : null), "status")), "html", null, true);
            echo "</td>
                        <td class=\"nmd-sendbutton\">
                        ";
            // line 129
            if (($this->getAttribute((isset($context["nmd"]) ? $context["nmd"] : null), "status") == "pending")) {
                // line 130
                echo "                            ";
                if (($this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "notificationtype") != "message")) {
                    // line 131
                    echo "                                ";
                    if (($this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "notificationTypeStatus") == 1)) {
                        // line 132
                        echo "                                    ";
                        if (($this->getAttribute((isset($context["nmd"]) ? $context["nmd"] : null), "finished") == 1)) {
                            // line 133
                            echo "                                        <a href=\"";
                            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("notificationexecution_send_message", array("nxid" => $this->getAttribute((isset($context["nmd"]) ? $context["nmd"] : null), "nxid"), "nmdid" => $this->getAttribute((isset($context["nmd"]) ? $context["nmd"] : null), "id"))), "html", null, true);
                            echo "\" class=\"sideOne sideB bDefault\">Enviar</a>
                                    ";
                        } else {
                            // line 135
                            echo "                                        Enviar encuesta
                                    ";
                        }
                        // line 137
                        echo "                                ";
                    } elseif (($this->getAttribute((isset($context["entity"]) ? $context["entity"] : null), "notificationTypeStatus") == 0)) {
                        // line 138
                        echo "                                    ";
                        if (($this->getAttribute((isset($context["nmd"]) ? $context["nmd"] : null), "finished") == 0)) {
                            // line 139
                            echo "                                        <a href=\"";
                            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("notificationexecution_send_message", array("nxid" => $this->getAttribute((isset($context["nmd"]) ? $context["nmd"] : null), "nxid"), "nmdid" => $this->getAttribute((isset($context["nmd"]) ? $context["nmd"] : null), "id"))), "html", null, true);
                            echo "\" class=\"sideOne sideB bDefault\">Enviar</a>
                                    ";
                        } else {
                            // line 141
                            echo "                                        Encuesta enviada
                                    ";
                        }
                        // line 143
                        echo "                                ";
                    }
                    // line 144
                    echo "                            ";
                } else {
                    // line 145
                    echo "                                <a href=\"";
                    echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("notificationexecution_send_message", array("nxid" => $this->getAttribute((isset($context["nmd"]) ? $context["nmd"] : null), "nxid"), "nmdid" => $this->getAttribute((isset($context["nmd"]) ? $context["nmd"] : null), "id"))), "html", null, true);
                    echo "\" class=\"sideOne sideB bDefault\">Enviar</a>
                            ";
                }
                // line 147
                echo "                        ";
            }
            // line 148
            echo "                        </td>
                    </tr>
                ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['nmd'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 151
        echo "                </tbody>
            </table>
        </div>
    </div>
    <div class=\"menuCrud clearfix\">
        <ul class=\"record_actions\">
            <li><a id=\"nmd-discard\" type=\"submit\" class=\"sideB bRed\" href=\"";
        // line 157
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("notificationscheduling_confirmation_discard", array("id" => $this->getAttribute((isset($context["notification_manual_send"]) ? $context["notification_manual_send"] : null), "id"))), "html", null, true);
        echo "\">Descartar notificaciones pendientes</a></li>
        </ul>
    </div>
</form>
";
    }

    // line 26
    public function block___internal_23fa12ec86a071e468777b328b087caf101965e4($context, array $blocks = array())
    {
        echo "Cambiar nombre";
    }

    // line 163
    public function block_javascripts($context, array $blocks = array())
    {
        // line 164
        $this->displayParentBlock("javascripts", $context, $blocks);
        echo "
";
        // line 165
        echo (isset($context["globaljavascript"]) ? $context["globaljavascript"] : null);
        echo "
<script type=\"text/javascript\">
/*<![CDATA[*/
    var notificationmanualdetails = ";
        // line 168
        echo (isset($context["notification_manual_details_json"]) ? $context["notification_manual_details_json"] : null);
        echo ";
    var nmdcount = ";
        // line 169
        echo twig_escape_filter($this->env, (isset($context["nmdcount"]) ? $context["nmdcount"] : null), "html", null, true);
        echo ";
    var nmdsent = ";
        // line 170
        echo twig_escape_filter($this->env, (isset($context["nmdsent"]) ? $context["nmdsent"] : null), "html", null, true);
        echo ";
/*]]>*/
</script>
<script type=\"text/javascript\" src=\"";
        // line 173
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("js/ns_sendonebyone_ajax.js"), "html", null, true);
        echo "\"></script>
";
    }

    public function getTemplateName()
    {
        return "FishmanNotificationBundle:Notificationscheduling:onebyone.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  356 => 173,  350 => 170,  346 => 169,  342 => 168,  336 => 165,  332 => 164,  329 => 163,  323 => 26,  314 => 157,  306 => 151,  298 => 148,  295 => 147,  289 => 145,  286 => 144,  283 => 143,  279 => 141,  273 => 139,  270 => 138,  267 => 137,  263 => 135,  257 => 133,  254 => 132,  251 => 131,  248 => 130,  246 => 129,  241 => 127,  237 => 126,  233 => 125,  225 => 124,  220 => 123,  217 => 122,  211 => 120,  203 => 118,  200 => 117,  198 => 116,  192 => 115,  187 => 114,  183 => 113,  172 => 104,  168 => 102,  166 => 101,  129 => 67,  117 => 58,  93 => 37,  79 => 26,  71 => 21,  68 => 20,  61 => 17,  58 => 16,  53 => 13,  49 => 10,  46 => 9,  42 => 6,  39 => 5,  33 => 3,);
    }
}
