{% 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>
</p>
#}
<h1 class="login-panel__heading">
Welcome to SchoolStatus Sites & Apps
</h1>
{% endblock %}
{% block body %}
<div class="login-panel__form">
{% 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 %}