var/cache/test/twig/9c/9ce3c9c78948e2c5aa82ab3dc28acb21.php line 109

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @PlatformSecurity/Login/select.html.twig */
  14. class __TwigTemplate_46e1bf6edc74f9790f23ee56062e69de extends \Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'header' => [$this'block_header'],
  24.             'body' => [$this'block_body'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "@PlatformSecurity/Login/base2.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@PlatformSecurity/Login/select.html.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@PlatformSecurity/Login/select.html.twig"));
  39.         // line 3
  40.         $context["titles"] = [=> ["title" => "SchoolStatus Sites & Apps""rank" =>  -100], => ["title" => "Login""rank" => 100]];
  41.         // line 4
  42.         $context["body_attrs"] = [=> ["action" => "append""arg1" => "class""arg2" => "page-login page-login--main"]];
  43.         // line 1
  44.         $this->parent $this->loadTemplate("@PlatformSecurity/Login/base2.html.twig""@PlatformSecurity/Login/select.html.twig"1);
  45.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 6
  52.     public function block_header($context, array $blocks = [])
  53.     {
  54.         $macros $this->macros;
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  59.         // line 7
  60.         echo "    <p class=\"login-panel__logo\">
  61.         <a href=\"https://www.schoolnow.com\" target=\"_blank\">
  62.             <img src=\"/ui2022/images/logo_app_stack_black.png\" alt=\"SchoolStatus Sites & Apps\" style=\"width: 165px;\" />
  63.         </a>
  64.     </p>
  65.     <h2 class=\"login-panel__heading\">";
  66.         // line 12
  67.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse12), "html"nulltrue);
  68.         echo "</h2>
  69. ";
  70.         
  71.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  72.         
  73.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  74.     }
  75.     // line 15
  76.     public function block_body($context, array $blocks = [])
  77.     {
  78.         $macros $this->macros;
  79.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  80.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  81.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  82.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  83.         // line 16
  84.         echo "    ";
  85.         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); })()))) {
  86.             // line 17
  87.             echo "        <div class=\"login-panel__form\">
  88.             ";
  89.             // line 18
  90.             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"]]);
  91.             // line 22
  92.             echo "
  93.             ";
  94.             // line 23
  95.             if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse23), "errors", [], "any"falsefalsefalse23)) > 0)) {
  96.                 // line 24
  97.                 echo "                <div class=\"alert alert-danger\">
  98.                     ";
  99.                 // line 25
  100.                 $context['_parent'] = $context;
  101.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse25), "errors", [], "any"falsefalsefalse25));
  102.                 foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  103.                     // line 26
  104.                     echo "                        <p>";
  105.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["error"], "message", [], "any"falsefalsefalse26), "html"nulltrue);
  106.                     echo "</p>
  107.                     ";
  108.                 }
  109.                 $_parent $context['_parent'];
  110.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  111.                 $context array_intersect_key($context$_parent) + $_parent;
  112.                 // line 28
  113.                 echo "                </div>
  114.             ";
  115.             }
  116.             // line 30
  117.             echo "            <div class=\"form-group\">
  118.                 ";
  119.             // line 31
  120.             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"falsefalsefalse31), 'label');
  121.             echo "
  122.                 ";
  123.             // line 32
  124.             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"falsefalsefalse32), 'widget', ["attr" => ["class" => "form-control""placeholder" => "Email"]]);
  125.             // line 37
  126.             echo "
  127.             </div>
  128.             <div class=\"form-group\">
  129.                 ";
  130.             // line 40
  131.             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"falsefalsefalse40), 'label');
  132.             echo "
  133.                 ";
  134.             // line 41
  135.             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"falsefalsefalse41), 'widget', ["attr" => ["class" => "form-control""placeholder" => "Password"]]);
  136.             // line 46
  137.             echo "
  138.             </div>
  139.             <div class=\"form-group login-panel__form-actions\">
  140.                 <input type=\"submit\" class=\"btn btn-lg btn-success btn-block\" value=\"Sign in with email\" />
  141.             </div>
  142.             ";
  143.             // line 51
  144.             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');
  145.             echo "
  146.             <p class=\"login-panel__forgot-password\">
  147.                 <a href=\"";
  148.             // line 53
  149.             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"falsefalsefalse53));
  150.             echo "\">Forget your password?</a>
  151.             </p>
  152.         </div>
  153.     ";
  154.         }
  155.         // line 57
  156.         echo "
  157.     ";
  158.         // line 58
  159.         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); })())))) {
  160.             // line 59
  161.             echo "        <div class=\"login-panel__separator\">or</div>
  162.     ";
  163.         }
  164.         // line 61
  165.         echo "
  166.     ";
  167.         // line 62
  168.         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); })()))) {
  169.             // line 63
  170.             echo "        <div class=\"login-panel__sso\">
  171.             ";
  172.             // line 64
  173.             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)) {
  174.                 // line 65
  175.                 echo "                <div class=\"alert alert-danger\">
  176.                     ";
  177.                 // line 66
  178.                 $context['_parent'] = $context;
  179.                 $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); })()));
  180.                 foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  181.                     // line 67
  182.                     echo "                        <p>";
  183.                     echo twig_escape_filter($this->env$context["error"], "html"nulltrue);
  184.                     echo "</p>
  185.                     ";
  186.                 }
  187.                 $_parent $context['_parent'];
  188.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  189.                 $context array_intersect_key($context$_parent) + $_parent;
  190.                 // line 69
  191.                 echo "                </div>
  192.             ";
  193.             }
  194.             // line 71
  195.             echo "            ";
  196.             $context['_parent'] = $context;
  197.             $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); })()));
  198.             foreach ($context['_seq'] as $context["_key"] => $context["provider"]) {
  199.                 // line 72
  200.                 echo "                <div class=\"login-panel__sso-grp\">
  201.                     <a class=\"btn-sso btn-sso-";
  202.                 // line 73
  203.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["provider"], "id", [], "any"falsefalsefalse73), "html"nulltrue);
  204.                 echo "\" href=\"";
  205.                 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
  206. $context["provider"], "id", [], "any"falsefalsefalse74), "redirect" =>                 // line 75
  207. (isset($context["redirect"]) || array_key_exists("redirect"$context) ? $context["redirect"] : (function () { throw new RuntimeError('Variable "redirect" does not exist.'75$this->source); })())]), "html"nulltrue);
  208.                 // line 76
  209.                 echo "\">Sign in with ";
  210.                 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"falsefalsefalse76))), "html"nulltrue);
  211.                 echo "</a>
  212.                 </div>
  213.             ";
  214.             }
  215.             $_parent $context['_parent'];
  216.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['provider'], $context['_parent'], $context['loop']);
  217.             $context array_intersect_key($context$_parent) + $_parent;
  218.             // line 79
  219.             echo "        </div>
  220.     ";
  221.         }
  222.         // line 81
  223.         echo "
  224. ";
  225.         
  226.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  227.         
  228.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  229.     }
  230.     public function getTemplateName()
  231.     {
  232.         return "@PlatformSecurity/Login/select.html.twig";
  233.     }
  234.     public function isTraitable()
  235.     {
  236.         return false;
  237.     }
  238.     public function getDebugInfo()
  239.     {
  240.         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,);
  241.     }
  242.     public function getSourceContext()
  243.     {
  244.         return new Source("{% extends '@PlatformSecurity/Login/base2.html.twig' %}
  245. {% set titles = { 0: { title: 'SchoolStatus Sites & Apps', rank: -100 }, 1: { title: 'Login', rank: 100 } } %}
  246. {% set body_attrs = { 0: { action: 'append', arg1: 'class', arg2: 'page-login page-login--main'} } %}
  247. {% block header %}
  248.     <p class=\"login-panel__logo\">
  249.         <a href=\"https://www.schoolnow.com\" target=\"_blank\">
  250.             <img src=\"/ui2022/images/logo_app_stack_black.png\" alt=\"SchoolStatus Sites & Apps\" style=\"width: 165px;\" />
  251.         </a>
  252.     </p>
  253.     <h2 class=\"login-panel__heading\">{{ tenant.name }}</h2>
  254. {% endblock %}
  255. {% block body %}
  256.     {% if form is not empty %}
  257.         <div class=\"login-panel__form\">
  258.             {{ form_start(form, {
  259.                 attr: {
  260.                     autocomplete: 'on'
  261.                 }
  262.             }) }}
  263.             {% if form.vars.errors|length > 0 %}
  264.                 <div class=\"alert alert-danger\">
  265.                     {% for error in form.vars.errors %}
  266.                         <p>{{ error.message }}</p>
  267.                     {% endfor %}
  268.                 </div>
  269.             {% endif %}
  270.             <div class=\"form-group\">
  271.                 {{ form_label(form.username) }}
  272.                 {{ form_widget(form.username, {
  273.                     attr: {
  274.                         class: 'form-control',
  275.                         placeholder: 'Email'
  276.                     }
  277.                 }) }}
  278.             </div>
  279.             <div class=\"form-group\">
  280.                 {{ form_label(form.password) }}
  281.                 {{ form_widget(form.password, {
  282.                     attr: {
  283.                         class: 'form-control',
  284.                         placeholder: 'Password'
  285.                     }
  286.                 }) }}
  287.             </div>
  288.             <div class=\"form-group login-panel__form-actions\">
  289.                 <input type=\"submit\" class=\"btn btn-lg btn-success btn-block\" value=\"Sign in with email\" />
  290.             </div>
  291.             {{ form_end(form) }}
  292.             <p class=\"login-panel__forgot-password\">
  293.                 <a href=\"{{ path(routes.reset_password) }}\">Forget your password?</a>
  294.             </p>
  295.         </div>
  296.     {% endif %}
  297.     {% if form is not empty and providers is not empty %}
  298.         <div class=\"login-panel__separator\">or</div>
  299.     {% endif %}
  300.     {% if providers is not empty %}
  301.         <div class=\"login-panel__sso\">
  302.             {% if errors|length > 0 %}
  303.                 <div class=\"alert alert-danger\">
  304.                     {% for error in errors %}
  305.                         <p>{{ error }}</p>
  306.                     {% endfor %}
  307.                 </div>
  308.             {% endif %}
  309.             {% for provider in providers %}
  310.                 <div class=\"login-panel__sso-grp\">
  311.                     <a class=\"btn-sso btn-sso-{{ provider.id }}\" href=\"{{- path('app.platform.security.sso.start', {
  312.                         id: provider.id,
  313.                         redirect: redirect
  314.                     }) -}}\">Sign in with {{ 'app.platform.security.oauth.providers.%s.nickname'|format(provider.id)|trans }}</a>
  315.                 </div>
  316.             {% endfor %}
  317.         </div>
  318.     {% endif %}
  319. {% endblock %}
  320. ""@PlatformSecurity/Login/select.html.twig""/var/www/campussuite/src/Platform/SecurityBundle/Resources/views/Login/select.html.twig");
  321.     }
  322. }