src/Platform/SecurityBundle/Resources/views/System/Instances/prompt.html.twig line 1

Open in your IDE?
  1. {% extends '@PlatformSecurity/Login/base.html.twig' %}
  2. {% set titles = { 0: { title: 'SchoolNow', rank: -100 }, 1: { title: 'Select Tenant', rank: 100 } } %}
  3. {% set body_attrs = { 0: { action: 'append', arg1: 'class', arg2: 'page-login page-login--main'} } %}
  4. {% set position_classes = 'col-sm-12' %}
  5. {% block header %}
  6.     {#
  7.     <p class="login-panel__title">
  8.         <a href="http://www.schoolnow.com" target="_blank"></a>
  9.     </p>
  10.     #}
  11.     <h1 class="login-panel__heading">
  12.         Welcome to SchoolNow
  13.     </h1>
  14. {% endblock %}
  15. {% block body %}
  16.     <div class="login-panel__form">
  17.         {% if form is defined and form is not empty and form.vars.submitted is same as(false) %}
  18.             {{ form_start(form, {
  19.                 attr: {
  20.                     autocomplete: 'on'
  21.                 }
  22.             }) }}
  23.                 {% if form.vars.errors|length > 0 %}
  24.                     <div class="alert alert-danger">
  25.                         {% for error in form.vars.errors %}
  26.                             <p>{{ error.message }}</p>
  27.                         {% endfor %}
  28.                     </div>
  29.                 {% endif %}
  30.                 <div class="form-group">
  31.                     {{ form_errors(form.email) }}
  32.                     {{ form_label(form.email) }}
  33.                     {{ form_widget(form.email, {
  34.                         'attr': {
  35.                             'class': 'form-control'
  36.                         }
  37.                     }) }}
  38.                 </div>
  39.                 <div class="form-group">
  40.                     {{ form_errors(form.recaptcha) }}
  41.                     {{ form_widget(form.recaptcha) }}
  42.                 </div>
  43.                 <div class="form-group">
  44.                     <p>
  45.                         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.
  46.                     </p>
  47.                 </div>
  48.                 <div class="form-group login-panel__form-actions">
  49.                     <button type="submit" class="btn btn-lg btn-success btn-block" id="sign-in-submit" name="sign-in-submit">I Agree</button>
  50.                 </div>
  51.             {{ form_end(form) }}
  52.         {% else %}
  53.             {% if instances|length > 0 %}
  54.                 <p>
  55.                     The system found {{ instances|length }} instance(s) associated with the given email.
  56.                     Please choose one of the following:
  57.                 </p>
  58.                 <ul class="list-simple">
  59.                     {% for instance in instances %}
  60.                         <li>
  61.                             <a href="{{ instance.url }}">{{ instance.name }}</a>
  62.                         </li>
  63.                     {% endfor %}
  64.                 </ul>
  65.             {% else %}
  66.                 <p>
  67.                     The system found no instances associated with the given email.
  68.                 </p>
  69.             {% endif %}
  70.             <p>
  71.                 {% include '@ui/common/buttons/default.html.twig' with {
  72.                     text: 'Try Again',
  73.                     link: path(routes.prompt)
  74.                 } %}
  75.             </p>
  76.         {% endif %}
  77.     </div>
  78. {% endblock %}