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

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