var/cache/test/twig/96/969b23698dd54fae6c8ca77dc7763122.php line 91

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/System/Instances/prompt.html.twig */
  14. class __TwigTemplate_575f4bdf207d6b23e9b37c808021e66a 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/base.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/System/Instances/prompt.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/System/Instances/prompt.html.twig"));
  39.         // line 3
  40.         $context["titles"] = [=> ["title" => "SchoolNow""rank" =>  -100], => ["title" => "Select Tenant""rank" => 100]];
  41.         // line 4
  42.         $context["body_attrs"] = [=> ["action" => "append""arg1" => "class""arg2" => "page-login page-login--main"]];
  43.         // line 5
  44.         $context["position_classes"] = "col-sm-12";
  45.         // line 1
  46.         $this->parent $this->loadTemplate("@PlatformSecurity/Login/base.html.twig""@PlatformSecurity/System/Instances/prompt.html.twig"1);
  47.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  48.         
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  50.         
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  52.     }
  53.     // line 7
  54.     public function block_header($context, array $blocks = [])
  55.     {
  56.         $macros $this->macros;
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  61.         // line 8
  62.         echo "    ";
  63.         // line 13
  64.         echo "\t<h1 class=\"login-panel__heading\">
  65.         Welcome to SchoolNow
  66.     </h1>
  67. ";
  68.         
  69.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  70.         
  71.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  72.     }
  73.     // line 18
  74.     public function block_body($context, array $blocks = [])
  75.     {
  76.         $macros $this->macros;
  77.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  78.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  79.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  80.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  81.         // line 19
  82.         echo "\t<div class=\"login-panel__form\">
  83. \t\t";
  84.         // line 20
  85.         if (((array_key_exists("form"$context) &&  !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); })()))) && (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.'20$this->source); })()), "vars", [], "any"falsefalsefalse20), "submitted", [], "any"falsefalsefalse20) === false))) {
  86.             // line 21
  87.             echo "            ";
  88.             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.'21$this->source); })()), 'form_start', ["attr" => ["autocomplete" => "on"]]);
  89.             // line 25
  90.             echo "
  91.                 ";
  92.             // line 26
  93.             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.'26$this->source); })()), "vars", [], "any"falsefalsefalse26), "errors", [], "any"falsefalsefalse26)) > 0)) {
  94.                 // line 27
  95.                 echo "                    <div class=\"alert alert-danger\">
  96.                         ";
  97.                 // line 28
  98.                 $context['_parent'] = $context;
  99.                 $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.'28$this->source); })()), "vars", [], "any"falsefalsefalse28), "errors", [], "any"falsefalsefalse28));
  100.                 foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  101.                     // line 29
  102.                     echo "                            <p>";
  103.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["error"], "message", [], "any"falsefalsefalse29), "html"nulltrue);
  104.                     echo "</p>
  105.                         ";
  106.                 }
  107.                 $_parent $context['_parent'];
  108.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  109.                 $context array_intersect_key($context$_parent) + $_parent;
  110.                 // line 31
  111.                 echo "                    </div>
  112.                 ";
  113.             }
  114.             // line 33
  115.             echo "                <div class=\"form-group\">
  116.                     ";
  117.             // line 34
  118.             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.'34$this->source); })()), "email", [], "any"falsefalsefalse34), 'errors');
  119.             echo "
  120.                     ";
  121.             // line 35
  122.             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); })()), "email", [], "any"falsefalsefalse35), 'label');
  123.             echo "
  124.                     ";
  125.             // line 36
  126.             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); })()), "email", [], "any"falsefalsefalse36), 'widget', ["attr" => ["class" => "form-control"]]);
  127.             // line 40
  128.             echo "
  129.                 </div>
  130.                 <div class=\"form-group\">
  131.                     ";
  132.             // line 43
  133.             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.'43$this->source); })()), "recaptcha", [], "any"falsefalsefalse43), 'errors');
  134.             echo "
  135.                     ";
  136.             // line 44
  137.             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); })()), "recaptcha", [], "any"falsefalsefalse44), 'widget');
  138.             echo "
  139.                 </div>
  140.                 <div class=\"form-group\">
  141.                     <p>
  142.                         To use the free Social Media Manager, we need you to agree to our <a href=\"https://www.schoolnow.com/campus-suite-terms-conditions\" target=\"_blank\">Terms and Conditions</a> before your initial login.
  143.                     </p>
  144.                 </div>
  145.                 <div class=\"form-group login-panel__form-actions\">
  146.                     <button type=\"submit\" class=\"btn btn-lg btn-success btn-block\" id=\"sign-in-submit\" name=\"sign-in-submit\">I Agree</button>
  147.                 </div>
  148.             ";
  149.             // line 54
  150.             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.'54$this->source); })()), 'form_end');
  151.             echo "
  152.         ";
  153.         } else {
  154.             // line 56
  155.             echo "            ";
  156.             if ((twig_length_filter($this->env, (isset($context["instances"]) || array_key_exists("instances"$context) ? $context["instances"] : (function () { throw new RuntimeError('Variable "instances" does not exist.'56$this->source); })())) > 0)) {
  157.                 // line 57
  158.                 echo "                <p>
  159.                     The system found ";
  160.                 // line 58
  161.                 echo twig_escape_filter($this->envtwig_length_filter($this->env, (isset($context["instances"]) || array_key_exists("instances"$context) ? $context["instances"] : (function () { throw new RuntimeError('Variable "instances" does not exist.'58$this->source); })())), "html"nulltrue);
  162.                 echo " instance(s) associated with the given email.
  163.                     Please choose one of the following:
  164.                 </p>
  165.                 <ul class=\"list-simple\">
  166.                     ";
  167.                 // line 62
  168.                 $context['_parent'] = $context;
  169.                 $context['_seq'] = twig_ensure_traversable((isset($context["instances"]) || array_key_exists("instances"$context) ? $context["instances"] : (function () { throw new RuntimeError('Variable "instances" does not exist.'62$this->source); })()));
  170.                 foreach ($context['_seq'] as $context["_key"] => $context["instance"]) {
  171.                     // line 63
  172.                     echo "                        <li>
  173.                             <a href=\"";
  174.                     // line 64
  175.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["instance"], "url", [], "any"falsefalsefalse64), "html"nulltrue);
  176.                     echo "\">";
  177.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["instance"], "name", [], "any"falsefalsefalse64), "html"nulltrue);
  178.                     echo "</a>
  179.                         </li>
  180.                     ";
  181.                 }
  182.                 $_parent $context['_parent'];
  183.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['instance'], $context['_parent'], $context['loop']);
  184.                 $context array_intersect_key($context$_parent) + $_parent;
  185.                 // line 67
  186.                 echo "                </ul>
  187.             ";
  188.             } else {
  189.                 // line 69
  190.                 echo "                <p>
  191.                     The system found no instances associated with the given email.
  192.                 </p>
  193.             ";
  194.             }
  195.             // line 73
  196.             echo "            <p>
  197.                 ";
  198.             // line 74
  199.             $this->loadTemplate("@ui/common/buttons/default.html.twig""@PlatformSecurity/System/Instances/prompt.html.twig"74)->display(twig_array_merge(twig_array_merge($context, ["text" => "Try Again""link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_get_attribute($this->env$this->source,             // line 76
  200. (isset($context["routes"]) || array_key_exists("routes"$context) ? $context["routes"] : (function () { throw new RuntimeError('Variable "routes" does not exist.'76$this->source); })()), "prompt", [], "any"falsefalsefalse76))]), ['_args' => twig_to_array(["text" => "Try Again""link" => $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.'76$this->source); })()), "prompt", [], "any"falsefalsefalse76))])]));
  201.             // line 78
  202.             echo "            </p>
  203.         ";
  204.         }
  205.         // line 80
  206.         echo "    </div>
  207. ";
  208.         
  209.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  210.         
  211.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  212.     }
  213.     public function getTemplateName()
  214.     {
  215.         return "@PlatformSecurity/System/Instances/prompt.html.twig";
  216.     }
  217.     public function isTraitable()
  218.     {
  219.         return false;
  220.     }
  221.     public function getDebugInfo()
  222.     {
  223.         return array (  225 => 80,  221 => 78,  219 => 76,  218 => 74,  215 => 73,  209 => 69,  205 => 67,  194 => 64,  191 => 63,  187 => 62,  180 => 58,  177 => 57,  174 => 56,  169 => 54,  156 => 44,  152 => 43,  147 => 40,  145 => 36,  141 => 35,  137 => 34,  134 => 33,  130 => 31,  121 => 29,  117 => 28,  114 => 27,  112 => 26,  109 => 25,  106 => 21,  104 => 20,  101 => 19,  91 => 18,  78 => 13,  76 => 8,  66 => 7,  55 => 1,  53 => 5,  51 => 4,  49 => 3,  36 => 1,);
  224.     }
  225.     public function getSourceContext()
  226.     {
  227.         return new Source("{% extends '@PlatformSecurity/Login/base.html.twig' %}
  228. {% set titles = { 0: { title: 'SchoolNow', rank: -100 }, 1: { title: 'Select Tenant', rank: 100 } } %}
  229. {% set body_attrs = { 0: { action: 'append', arg1: 'class', arg2: 'page-login page-login--main'} } %}
  230. {% set position_classes = 'col-sm-12' %}
  231. {% block header %}
  232.     {#
  233.     <p class=\"login-panel__title\">
  234.         <a href=\"http://www.schoolnow.com\" target=\"_blank\"></a>
  235. \t</p>
  236. \t#}
  237. \t<h1 class=\"login-panel__heading\">
  238.         Welcome to SchoolNow
  239.     </h1>
  240. {% endblock %}
  241. {% block body %}
  242. \t<div class=\"login-panel__form\">
  243. \t\t{% if form is defined and form is not empty and form.vars.submitted is same as(false) %}
  244.             {{ form_start(form, {
  245.                 attr: {
  246.                     autocomplete: 'on'
  247.                 }
  248.             }) }}
  249.                 {% if form.vars.errors|length > 0 %}
  250.                     <div class=\"alert alert-danger\">
  251.                         {% for error in form.vars.errors %}
  252.                             <p>{{ error.message }}</p>
  253.                         {% endfor %}
  254.                     </div>
  255.                 {% endif %}
  256.                 <div class=\"form-group\">
  257.                     {{ form_errors(form.email) }}
  258.                     {{ form_label(form.email) }}
  259.                     {{ form_widget(form.email, {
  260.                         'attr': {
  261.                             'class': 'form-control'
  262.                         }
  263.                     }) }}
  264.                 </div>
  265.                 <div class=\"form-group\">
  266.                     {{ form_errors(form.recaptcha) }}
  267.                     {{ form_widget(form.recaptcha) }}
  268.                 </div>
  269.                 <div class=\"form-group\">
  270.                     <p>
  271.                         To use the free Social Media Manager, we need you to agree to our <a href=\"https://www.schoolnow.com/campus-suite-terms-conditions\" target=\"_blank\">Terms and Conditions</a> before your initial login.
  272.                     </p>
  273.                 </div>
  274.                 <div class=\"form-group login-panel__form-actions\">
  275.                     <button type=\"submit\" class=\"btn btn-lg btn-success btn-block\" id=\"sign-in-submit\" name=\"sign-in-submit\">I Agree</button>
  276.                 </div>
  277.             {{ form_end(form) }}
  278.         {% else %}
  279.             {% if instances|length > 0 %}
  280.                 <p>
  281.                     The system found {{ instances|length }} instance(s) associated with the given email.
  282.                     Please choose one of the following:
  283.                 </p>
  284.                 <ul class=\"list-simple\">
  285.                     {% for instance in instances %}
  286.                         <li>
  287.                             <a href=\"{{ instance.url }}\">{{ instance.name }}</a>
  288.                         </li>
  289.                     {% endfor %}
  290.                 </ul>
  291.             {% else %}
  292.                 <p>
  293.                     The system found no instances associated with the given email.
  294.                 </p>
  295.             {% endif %}
  296.             <p>
  297.                 {% include '@ui/common/buttons/default.html.twig' with {
  298.                     text: 'Try Again',
  299.                     link: path(routes.prompt)
  300.                 } %}
  301.             </p>
  302.         {% endif %}
  303.     </div>
  304. {% endblock %}
  305. ""@PlatformSecurity/System/Instances/prompt.html.twig""/var/www/campussuite/src/Platform/SecurityBundle/Resources/views/System/Instances/prompt.html.twig");
  306.     }
  307. }