<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* security/login.html.twig */
class __TwigTemplate_4369348d70576bb56a8c773793382f99b45cdd45c909df54dd15ae0152ab2fc4 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'contenido' => [$this, 'block_contenido'],
'js_document_ready' => [$this, 'block_js_document_ready'],
'dialogos_modales' => [$this, 'block_dialogos_modales'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "security/base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "security/login.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "security/login.html.twig"));
$this->parent = $this->loadTemplate("security/base.html.twig", "security/login.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_contenido($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "contenido"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "contenido"));
// line 4
echo " <div class=\"caja\" >
<form method=\"post\" action=\"";
// line 5
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("app_login");
echo "\">
";
// line 7
if (twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 7, $this->source); })()), "user", [], "any", false, false, false, 7)) {
// line 8
echo " <div class=\"mb-3\">
You are logged in as ";
// line 9
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 9, $this->source); })()), "user", [], "any", false, false, false, 9), "username", [], "any", false, false, false, 9), "html", null, true);
echo ", <a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
echo "\">Logout</a>
</div>
";
}
// line 12
echo "
<div class=\"card\">
<div class=\"card-content\">
<div class=\"row\">
<div class=\"input-field col s12 center\">
<img src=\"";
// line 17
echo twig_escape_filter($this->env, (isset($context["logo_web"]) || array_key_exists("logo_web", $context) ? $context["logo_web"] : (function () { throw new RuntimeError('Variable "logo_web" does not exist.', 17, $this->source); })()), "html", null, true);
echo "\" alt=\"\" width=\"250px\">
</div>
</div>
<div class=\"row\">
<div class=\"input-field col s12\">
<i class=\"material-icons prefix color-primario\">person</i>
<input type=\"text\" value=\"";
// line 23
echo twig_escape_filter($this->env, (isset($context["last_username"]) || array_key_exists("last_username", $context) ? $context["last_username"] : (function () { throw new RuntimeError('Variable "last_username" does not exist.', 23, $this->source); })()), "html", null, true);
echo "\" name=\"username\" id=\"usuario_ingresar\" >
<label for=\"usuario_ingresar\" class=\"center-align\">Usuario / DNI</label>
</div>
</div>
<div class=\"row \">
<div class=\"input-field col s12\">
<i class=\"material-icons prefix color-primario\">lock</i>
<input name=\"password\" id=\"password_ingresar\" type=\"password\">
<label for=\"password_ingresar\" class=\"\">Contraseña</label>
</div>
</div>
";
// line 34
if ((isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 34, $this->source); })())) {
// line 35
echo " <!-- caja de error -->
<div class=\"row\">
<div class=\"col s12\">
<div class=\"card-panel card-error red lighten-4 red-text text-darken-2\">
<p class=\"center-align\">";
// line 39
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, (isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 39, $this->source); })()), "messageKey", [], "any", false, false, false, 39), twig_get_attribute($this->env, $this->source, (isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 39, $this->source); })()), "messageData", [], "any", false, false, false, 39), "security"), "html", null, true);
echo "</p>
<p></p>
</div>
</div>
</div>
<!-- fin caja de error -->
";
}
// line 46
echo "
<input type=\"hidden\" name=\"_csrf_token\"
value=\"";
// line 48
echo twig_escape_filter($this->env, $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);
echo "\">
<div class=\"row margin\">
<div class=\"col s12\">
<button type=\"submit\" class=\"btn waves-effect waves-light col s12 back-primario\" id=\"boton_ingresar\">Ingresar</button>
</div>
</div>
<div class=\"row\">
<div class=\"input-field col s6 m6 left-align\">
<span class=\"margin right-align medium-small\">
<a class=\"activator\" href=\"#\" id=\"2\">¿Olvidó su contraseña?</a></span>
</div>
<div class=\"input-field col s6 m6 right-align\">
</div>
</div>
</div>
</form>
<div class=\"card-reveal\" >
";
// line 66
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["formForgot"]) || array_key_exists("formForgot", $context) ? $context["formForgot"] : (function () { throw new RuntimeError('Variable "formForgot" does not exist.', 66, $this->source); })()), 'form_start');
echo "
<div id=\"cambiar\" >
<span class=\"card-title grey-text text-darken-4\">SOLICITAR CONTRASEÑA <i class=\"material-icons right\">close</i></span>
<hr>
<p>Ingrese los siguientes datos.</p>
<div class=\"row \">
<div class=\"input-field col s12\">
<i class=\"material-icons prefix\">portrait</i>
";
// line 76
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["formForgot"]) || array_key_exists("formForgot", $context) ? $context["formForgot"] : (function () { throw new RuntimeError('Variable "formForgot" does not exist.', 76, $this->source); })()), "dni", [], "any", false, false, false, 76), 'widget');
echo "
";
// line 77
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["formForgot"]) || array_key_exists("formForgot", $context) ? $context["formForgot"] : (function () { throw new RuntimeError('Variable "formForgot" does not exist.', 77, $this->source); })()), "dni", [], "any", false, false, false, 77), 'label');
echo "
<span class=\"helper-text\" data-error=\"wrong\" data-success=\"right\">Ingrese su DNI sin puntos</span>
</div>
</div>
<div class=\"row\">
<div class=\"col s12 m12 left-align\">
<button type=\"submit\" class=\"btn-flat waves-effect waves-light grey lighten-2 \">
ENVIAR SOLICITUD </button>
</div>
</div>
</div>
";
// line 89
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["formForgot"]) || array_key_exists("formForgot", $context) ? $context["formForgot"] : (function () { throw new RuntimeError('Variable "formForgot" does not exist.', 89, $this->source); })()), 'form_end');
echo "
</div>
</div>
";
// line 92
if (array_key_exists("aspirante", $context)) {
// line 93
echo " <div class=\"col l12 m12 s12 center\">
<a class=\"white-text\" style=\"padding:0.2rem;\" href=\"";
// line 94
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("aspirante_registry");
echo "\"><i class=\"material-icons\">person_add</i> Quiero registrarme al PODA</a>
</div>
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 99
public function block_js_document_ready($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "js_document_ready"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "js_document_ready"));
// line 100
echo " ";
if ((array_key_exists("persona", $context) && !(null === (isset($context["persona"]) || array_key_exists("persona", $context) ? $context["persona"] : (function () { throw new RuntimeError('Variable "persona" does not exist.', 100, $this->source); })())))) {
// line 101
echo " \$('#modalForgot').modal('open');
";
}
// line 103
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 106
public function block_dialogos_modales($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "dialogos_modales"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "dialogos_modales"));
// line 107
echo " <!-- Modal Structure -->
";
// line 108
if ((array_key_exists("persona", $context) && !(null === (isset($context["persona"]) || array_key_exists("persona", $context) ? $context["persona"] : (function () { throw new RuntimeError('Variable "persona" does not exist.', 108, $this->source); })())))) {
// line 109
echo " <div id=\"modalForgot\" class=\"modal\">
<form action=\"";
// line 110
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("app_forgot_ini", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["persona"]) || array_key_exists("persona", $context) ? $context["persona"] : (function () { throw new RuntimeError('Variable "persona" does not exist.', 110, $this->source); })()), "id", [], "any", false, false, false, 110)]), "html", null, true);
echo "\" method=\"post\">
<div class=\"modal-content\">
<h4>Recupero de contraseña de acceso al Portal</h4>
<p>Estimado/a ";
// line 113
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["persona"]) || array_key_exists("persona", $context) ? $context["persona"] : (function () { throw new RuntimeError('Variable "persona" does not exist.', 113, $this->source); })()), "nombres", [], "any", false, false, false, 113), "html", null, true);
echo " se le enviará un correo a
<b>";
// line 114
echo twig_escape_filter($this->env, $this->extensions['App\Twig\AppExtension']->hideEmail(twig_get_attribute($this->env, $this->source, (isset($context["persona"]) || array_key_exists("persona", $context) ? $context["persona"] : (function () { throw new RuntimeError('Variable "persona" does not exist.', 114, $this->source); })()), "emailPersonal", [], "any", false, false, false, 114)), "html", null, true);
echo "</b> con un enlace para iniciar el proceso
de recuperación de contraseña.</p>
</div>
<div class=\"modal-footer\">
<a href=\"#!\" class=\"modal-close waves-effect waves-green btn-flat\">Cancelar</a>
";
// line 120
echo " <input type=\"hidden\" name=\"ini_forgot_token\" value=\"";
echo twig_escape_filter($this->env, $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("iniciar-forgot"), "html", null, true);
echo "\"/>
<button class=\"btn identidad-color darken-2 waves-effect waves-light\">
Iniciar
<i class=\"material-icons right\">done</i>
</button>
</div>
</form>
</div>
";
}
// line 129
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "security/login.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 298 => 129, 285 => 120, 277 => 114, 273 => 113, 267 => 110, 264 => 109, 262 => 108, 259 => 107, 249 => 106, 238 => 103, 234 => 101, 231 => 100, 221 => 99, 207 => 94, 204 => 93, 202 => 92, 196 => 89, 181 => 77, 177 => 76, 164 => 66, 143 => 48, 139 => 46, 129 => 39, 123 => 35, 121 => 34, 107 => 23, 98 => 17, 91 => 12, 83 => 9, 80 => 8, 78 => 7, 73 => 5, 70 => 4, 60 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'security/base.html.twig' %}
{% block contenido %}
<div class=\"caja\" >
<form method=\"post\" action=\"{{ url('app_login') }}\">
{% if app.user %}
<div class=\"mb-3\">
You are logged in as {{ app.user.username }}, <a href=\"{{ path('app_logout') }}\">Logout</a>
</div>
{% endif %}
<div class=\"card\">
<div class=\"card-content\">
<div class=\"row\">
<div class=\"input-field col s12 center\">
<img src=\"{{ logo_web }}\" alt=\"\" width=\"250px\">
</div>
</div>
<div class=\"row\">
<div class=\"input-field col s12\">
<i class=\"material-icons prefix color-primario\">person</i>
<input type=\"text\" value=\"{{ last_username }}\" name=\"username\" id=\"usuario_ingresar\" >
<label for=\"usuario_ingresar\" class=\"center-align\">Usuario / DNI</label>
</div>
</div>
<div class=\"row \">
<div class=\"input-field col s12\">
<i class=\"material-icons prefix color-primario\">lock</i>
<input name=\"password\" id=\"password_ingresar\" type=\"password\">
<label for=\"password_ingresar\" class=\"\">Contraseña</label>
</div>
</div>
{% if error %}
<!-- caja de error -->
<div class=\"row\">
<div class=\"col s12\">
<div class=\"card-panel card-error red lighten-4 red-text text-darken-2\">
<p class=\"center-align\">{{ error.messageKey|trans(error.messageData, 'security') }}</p>
<p></p>
</div>
</div>
</div>
<!-- fin caja de error -->
{% endif %}
<input type=\"hidden\" name=\"_csrf_token\"
value=\"{{ csrf_token('authenticate') }}\">
<div class=\"row margin\">
<div class=\"col s12\">
<button type=\"submit\" class=\"btn waves-effect waves-light col s12 back-primario\" id=\"boton_ingresar\">Ingresar</button>
</div>
</div>
<div class=\"row\">
<div class=\"input-field col s6 m6 left-align\">
<span class=\"margin right-align medium-small\">
<a class=\"activator\" href=\"#\" id=\"2\">¿Olvidó su contraseña?</a></span>
</div>
<div class=\"input-field col s6 m6 right-align\">
</div>
</div>
</div>
</form>
<div class=\"card-reveal\" >
{{ form_start(formForgot) }}
<div id=\"cambiar\" >
<span class=\"card-title grey-text text-darken-4\">SOLICITAR CONTRASEÑA <i class=\"material-icons right\">close</i></span>
<hr>
<p>Ingrese los siguientes datos.</p>
<div class=\"row \">
<div class=\"input-field col s12\">
<i class=\"material-icons prefix\">portrait</i>
{{ form_widget(formForgot.dni) }}
{{ form_label(formForgot.dni) }}
<span class=\"helper-text\" data-error=\"wrong\" data-success=\"right\">Ingrese su DNI sin puntos</span>
</div>
</div>
<div class=\"row\">
<div class=\"col s12 m12 left-align\">
<button type=\"submit\" class=\"btn-flat waves-effect waves-light grey lighten-2 \">
ENVIAR SOLICITUD </button>
</div>
</div>
</div>
{{ form_end(formForgot) }}
</div>
</div>
{% if aspirante is defined %}
<div class=\"col l12 m12 s12 center\">
<a class=\"white-text\" style=\"padding:0.2rem;\" href=\"{{ path('aspirante_registry') }}\"><i class=\"material-icons\">person_add</i> Quiero registrarme al PODA</a>
</div>
{% endif %}
{% endblock %}
{% block js_document_ready %}
{% if persona is defined and persona is not null %}
\$('#modalForgot').modal('open');
{% endif %}
{% endblock %}
{% block dialogos_modales %}
<!-- Modal Structure -->
{% if persona is defined and persona is not null %}
<div id=\"modalForgot\" class=\"modal\">
<form action=\"{{ url('app_forgot_ini', { id: persona.id }) }}\" method=\"post\">
<div class=\"modal-content\">
<h4>Recupero de contraseña de acceso al Portal</h4>
<p>Estimado/a {{ persona.nombres }} se le enviará un correo a
<b>{{ persona.emailPersonal |hide_email }}</b> con un enlace para iniciar el proceso
de recuperación de contraseña.</p>
</div>
<div class=\"modal-footer\">
<a href=\"#!\" class=\"modal-close waves-effect waves-green btn-flat\">Cancelar</a>
{# the argument of csrf_token() is an arbitrary string used to generate the token #}
<input type=\"hidden\" name=\"ini_forgot_token\" value=\"{{ csrf_token('iniciar-forgot') }}\"/>
<button class=\"btn identidad-color darken-2 waves-effect waves-light\">
Iniciar
<i class=\"material-icons right\">done</i>
</button>
</div>
</form>
</div>
{% endif %}
{% endblock %}", "security/login.html.twig", "/var/www/desarrollo.cmagistraturabsas.gob.ar/sso_consejo/templates/security/login.html.twig");
}
}