<?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;
/* @PlatformSecurity/Login/select.html.twig */
class __TwigTemplate_46e1bf6edc74f9790f23ee56062e69de extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'header' => [$this, 'block_header'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@PlatformSecurity/Login/base2.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@PlatformSecurity/Login/select.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@PlatformSecurity/Login/select.html.twig"));
// line 3
$context["titles"] = [0 => ["title" => "SchoolStatus Sites & Apps", "rank" => -100], 1 => ["title" => "Login", "rank" => 100]];
// line 4
$context["body_attrs"] = [0 => ["action" => "append", "arg1" => "class", "arg2" => "page-login page-login--main"]];
// line 1
$this->parent = $this->loadTemplate("@PlatformSecurity/Login/base2.html.twig", "@PlatformSecurity/Login/select.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 6
public function block_header($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
// line 7
echo " <p class=\"login-panel__logo\">
<a href=\"https://www.schoolnow.com\" target=\"_blank\">
<img src=\"/ui2022/images/logo_app_stack_black.png\" alt=\"SchoolStatus Sites & Apps\" style=\"width: 165px;\" />
</a>
</p>
<h2 class=\"login-panel__heading\">";
// line 12
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["tenant"]) || array_key_exists("tenant", $context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.', 12, $this->source); })()), "name", [], "any", false, false, false, 12), "html", null, true);
echo "</h2>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 15
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 16
echo " ";
if ( !twig_test_empty((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 16, $this->source); })()))) {
// line 17
echo " <div class=\"login-panel__form\">
";
// line 18
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 18, $this->source); })()), 'form_start', ["attr" => ["autocomplete" => "on"]]);
// line 22
echo "
";
// line 23
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 23, $this->source); })()), "vars", [], "any", false, false, false, 23), "errors", [], "any", false, false, false, 23)) > 0)) {
// line 24
echo " <div class=\"alert alert-danger\">
";
// line 25
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 25, $this->source); })()), "vars", [], "any", false, false, false, 25), "errors", [], "any", false, false, false, 25));
foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
// line 26
echo " <p>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["error"], "message", [], "any", false, false, false, 26), "html", null, true);
echo "</p>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 28
echo " </div>
";
}
// line 30
echo " <div class=\"form-group\">
";
// line 31
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 31, $this->source); })()), "username", [], "any", false, false, false, 31), 'label');
echo "
";
// line 32
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 32, $this->source); })()), "username", [], "any", false, false, false, 32), 'widget', ["attr" => ["class" => "form-control", "placeholder" => "Email"]]);
// line 37
echo "
</div>
<div class=\"form-group\">
";
// line 40
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 40, $this->source); })()), "password", [], "any", false, false, false, 40), 'label');
echo "
";
// line 41
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 41, $this->source); })()), "password", [], "any", false, false, false, 41), 'widget', ["attr" => ["class" => "form-control", "placeholder" => "Password"]]);
// line 46
echo "
</div>
<div class=\"form-group login-panel__form-actions\">
<input type=\"submit\" class=\"btn btn-lg btn-success btn-block\" value=\"Sign in with email\" />
</div>
";
// line 51
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 51, $this->source); })()), 'form_end');
echo "
<p class=\"login-panel__forgot-password\">
<a href=\"";
// line 53
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_get_attribute($this->env, $this->source, (isset($context["routes"]) || array_key_exists("routes", $context) ? $context["routes"] : (function () { throw new RuntimeError('Variable "routes" does not exist.', 53, $this->source); })()), "reset_password", [], "any", false, false, false, 53));
echo "\">Forget your password?</a>
</p>
</div>
";
}
// line 57
echo "
";
// line 58
if (( !twig_test_empty((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 58, $this->source); })())) && !twig_test_empty((isset($context["providers"]) || array_key_exists("providers", $context) ? $context["providers"] : (function () { throw new RuntimeError('Variable "providers" does not exist.', 58, $this->source); })())))) {
// line 59
echo " <div class=\"login-panel__separator\">or</div>
";
}
// line 61
echo "
";
// line 62
if ( !twig_test_empty((isset($context["providers"]) || array_key_exists("providers", $context) ? $context["providers"] : (function () { throw new RuntimeError('Variable "providers" does not exist.', 62, $this->source); })()))) {
// line 63
echo " <div class=\"login-panel__sso\">
";
// line 64
if ((twig_length_filter($this->env, (isset($context["errors"]) || array_key_exists("errors", $context) ? $context["errors"] : (function () { throw new RuntimeError('Variable "errors" does not exist.', 64, $this->source); })())) > 0)) {
// line 65
echo " <div class=\"alert alert-danger\">
";
// line 66
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["errors"]) || array_key_exists("errors", $context) ? $context["errors"] : (function () { throw new RuntimeError('Variable "errors" does not exist.', 66, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
// line 67
echo " <p>";
echo twig_escape_filter($this->env, $context["error"], "html", null, true);
echo "</p>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 69
echo " </div>
";
}
// line 71
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["providers"]) || array_key_exists("providers", $context) ? $context["providers"] : (function () { throw new RuntimeError('Variable "providers" does not exist.', 71, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["provider"]) {
// line 72
echo " <div class=\"login-panel__sso-grp\">
<a class=\"btn-sso btn-sso-";
// line 73
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["provider"], "id", [], "any", false, false, false, 73), "html", null, true);
echo "\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app.platform.security.sso.start", ["id" => twig_get_attribute($this->env, $this->source, // line 74
$context["provider"], "id", [], "any", false, false, false, 74), "redirect" => // line 75
(isset($context["redirect"]) || array_key_exists("redirect", $context) ? $context["redirect"] : (function () { throw new RuntimeError('Variable "redirect" does not exist.', 75, $this->source); })())]), "html", null, true);
// line 76
echo "\">Sign in with ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_sprintf("app.platform.security.oauth.providers.%s.nickname", twig_get_attribute($this->env, $this->source, $context["provider"], "id", [], "any", false, false, false, 76))), "html", null, true);
echo "</a>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['provider'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 79
echo " </div>
";
}
// line 81
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@PlatformSecurity/Login/select.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 242 => 81, 238 => 79, 228 => 76, 226 => 75, 225 => 74, 222 => 73, 219 => 72, 214 => 71, 210 => 69, 201 => 67, 197 => 66, 194 => 65, 192 => 64, 189 => 63, 187 => 62, 184 => 61, 180 => 59, 178 => 58, 175 => 57, 168 => 53, 163 => 51, 156 => 46, 154 => 41, 150 => 40, 145 => 37, 143 => 32, 139 => 31, 136 => 30, 132 => 28, 123 => 26, 119 => 25, 116 => 24, 114 => 23, 111 => 22, 109 => 18, 106 => 17, 103 => 16, 93 => 15, 81 => 12, 74 => 7, 64 => 6, 53 => 1, 51 => 4, 49 => 3, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends '@PlatformSecurity/Login/base2.html.twig' %}
{% set titles = { 0: { title: 'SchoolStatus Sites & Apps', rank: -100 }, 1: { title: 'Login', rank: 100 } } %}
{% set body_attrs = { 0: { action: 'append', arg1: 'class', arg2: 'page-login page-login--main'} } %}
{% block header %}
<p class=\"login-panel__logo\">
<a href=\"https://www.schoolnow.com\" target=\"_blank\">
<img src=\"/ui2022/images/logo_app_stack_black.png\" alt=\"SchoolStatus Sites & Apps\" style=\"width: 165px;\" />
</a>
</p>
<h2 class=\"login-panel__heading\">{{ tenant.name }}</h2>
{% endblock %}
{% block body %}
{% if form is not empty %}
<div class=\"login-panel__form\">
{{ form_start(form, {
attr: {
autocomplete: 'on'
}
}) }}
{% if form.vars.errors|length > 0 %}
<div class=\"alert alert-danger\">
{% for error in form.vars.errors %}
<p>{{ error.message }}</p>
{% endfor %}
</div>
{% endif %}
<div class=\"form-group\">
{{ form_label(form.username) }}
{{ form_widget(form.username, {
attr: {
class: 'form-control',
placeholder: 'Email'
}
}) }}
</div>
<div class=\"form-group\">
{{ form_label(form.password) }}
{{ form_widget(form.password, {
attr: {
class: 'form-control',
placeholder: 'Password'
}
}) }}
</div>
<div class=\"form-group login-panel__form-actions\">
<input type=\"submit\" class=\"btn btn-lg btn-success btn-block\" value=\"Sign in with email\" />
</div>
{{ form_end(form) }}
<p class=\"login-panel__forgot-password\">
<a href=\"{{ path(routes.reset_password) }}\">Forget your password?</a>
</p>
</div>
{% endif %}
{% if form is not empty and providers is not empty %}
<div class=\"login-panel__separator\">or</div>
{% endif %}
{% if providers is not empty %}
<div class=\"login-panel__sso\">
{% if errors|length > 0 %}
<div class=\"alert alert-danger\">
{% for error in errors %}
<p>{{ error }}</p>
{% endfor %}
</div>
{% endif %}
{% for provider in providers %}
<div class=\"login-panel__sso-grp\">
<a class=\"btn-sso btn-sso-{{ provider.id }}\" href=\"{{- path('app.platform.security.sso.start', {
id: provider.id,
redirect: redirect
}) -}}\">Sign in with {{ 'app.platform.security.oauth.providers.%s.nickname'|format(provider.id)|trans }}</a>
</div>
{% endfor %}
</div>
{% endif %}
{% endblock %}
", "@PlatformSecurity/Login/select.html.twig", "/var/www/campussuite/src/Platform/SecurityBundle/Resources/views/Login/select.html.twig");
}
}