<?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/System/Instances/prompt.html.twig */
class __TwigTemplate_575f4bdf207d6b23e9b37c808021e66a 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/base.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/System/Instances/prompt.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/System/Instances/prompt.html.twig"));
// line 3
$context["titles"] = [0 => ["title" => "SchoolStatus Sites & Apps", "rank" => -100], 1 => ["title" => "Select Tenant", "rank" => 100]];
// line 4
$context["body_attrs"] = [0 => ["action" => "append", "arg1" => "class", "arg2" => "page-login page-login--main"]];
// line 5
$context["position_classes"] = "col-sm-12";
// line 1
$this->parent = $this->loadTemplate("@PlatformSecurity/Login/base.html.twig", "@PlatformSecurity/System/Instances/prompt.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 7
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 8
echo " ";
// line 13
echo "\t<h1 class=\"login-panel__heading\">
Welcome to SchoolStatus Sites & Apps
</h1>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 18
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 19
echo "\t<div class=\"login-panel__form\">
\t\t";
// line 20
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->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.', 20, $this->source); })()), "vars", [], "any", false, false, false, 20), "submitted", [], "any", false, false, false, 20) === false))) {
// line 21
echo " ";
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"]]);
// line 25
echo "
";
// line 26
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.', 26, $this->source); })()), "vars", [], "any", false, false, false, 26), "errors", [], "any", false, false, false, 26)) > 0)) {
// line 27
echo " <div class=\"alert alert-danger\">
";
// line 28
$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.', 28, $this->source); })()), "vars", [], "any", false, false, false, 28), "errors", [], "any", false, false, false, 28));
foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
// line 29
echo " <p>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["error"], "message", [], "any", false, false, false, 29), "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 31
echo " </div>
";
}
// line 33
echo " <div class=\"form-group\">
";
// line 34
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", false, false, false, 34), 'errors');
echo "
";
// line 35
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", false, false, false, 35), 'label');
echo "
";
// line 36
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", false, false, false, 36), 'widget', ["attr" => ["class" => "form-control"]]);
// line 40
echo "
</div>
<div class=\"form-group\">
";
// line 43
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", false, false, false, 43), 'errors');
echo "
";
// line 44
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", false, false, false, 44), 'widget');
echo "
</div>
<div class=\"form-group\">
<p>
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.
</p>
</div>
<div class=\"form-group login-panel__form-actions\">
<button type=\"submit\" class=\"btn btn-lg btn-success btn-block\" id=\"sign-in-submit\" name=\"sign-in-submit\">I Agree</button>
</div>
";
// line 54
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');
echo "
";
} else {
// line 56
echo " ";
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)) {
// line 57
echo " <p>
The system found ";
// line 58
echo twig_escape_filter($this->env, twig_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", null, true);
echo " instance(s) associated with the given email.
Please choose one of the following:
</p>
<ul class=\"list-simple\">
";
// line 62
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["instance"]) {
// line 63
echo " <li>
<a href=\"";
// line 64
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["instance"], "url", [], "any", false, false, false, 64), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["instance"], "name", [], "any", false, false, false, 64), "html", null, true);
echo "</a>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['instance'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 67
echo " </ul>
";
} else {
// line 69
echo " <p>
The system found no instances associated with the given email.
</p>
";
}
// line 73
echo " <p>
";
// line 74
$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
(isset($context["routes"]) || array_key_exists("routes", $context) ? $context["routes"] : (function () { throw new RuntimeError('Variable "routes" does not exist.', 76, $this->source); })()), "prompt", [], "any", false, false, false, 76))]), ['_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", false, false, false, 76))])]));
// line 78
echo " </p>
";
}
// line 80
echo " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@PlatformSecurity/System/Instances/prompt.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends '@PlatformSecurity/Login/base.html.twig' %}
{% set titles = { 0: { title: 'SchoolStatus Sites & Apps', rank: -100 }, 1: { title: 'Select Tenant', rank: 100 } } %}
{% set body_attrs = { 0: { action: 'append', arg1: 'class', arg2: 'page-login page-login--main'} } %}
{% set position_classes = 'col-sm-12' %}
{% block header %}
{#
<p class=\"login-panel__title\">
<a href=\"http://www.schoolnow.com\" target=\"_blank\"></a>
\t</p>
\t#}
\t<h1 class=\"login-panel__heading\">
Welcome to SchoolStatus Sites & Apps
</h1>
{% endblock %}
{% block body %}
\t<div class=\"login-panel__form\">
\t\t{% if form is defined and form is not empty and form.vars.submitted is same as(false) %}
{{ 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_errors(form.email) }}
{{ form_label(form.email) }}
{{ form_widget(form.email, {
'attr': {
'class': 'form-control'
}
}) }}
</div>
<div class=\"form-group\">
{{ form_errors(form.recaptcha) }}
{{ form_widget(form.recaptcha) }}
</div>
<div class=\"form-group\">
<p>
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.
</p>
</div>
<div class=\"form-group login-panel__form-actions\">
<button type=\"submit\" class=\"btn btn-lg btn-success btn-block\" id=\"sign-in-submit\" name=\"sign-in-submit\">I Agree</button>
</div>
{{ form_end(form) }}
{% else %}
{% if instances|length > 0 %}
<p>
The system found {{ instances|length }} instance(s) associated with the given email.
Please choose one of the following:
</p>
<ul class=\"list-simple\">
{% for instance in instances %}
<li>
<a href=\"{{ instance.url }}\">{{ instance.name }}</a>
</li>
{% endfor %}
</ul>
{% else %}
<p>
The system found no instances associated with the given email.
</p>
{% endif %}
<p>
{% include '@ui/common/buttons/default.html.twig' with {
text: 'Try Again',
link: path(routes.prompt)
} %}
</p>
{% endif %}
</div>
{% endblock %}
", "@PlatformSecurity/System/Instances/prompt.html.twig", "/var/www/campussuite/src/Platform/SecurityBundle/Resources/views/System/Instances/prompt.html.twig");
}
}