src/Platform/SecurityBundle/Resources/views/Login/select.html.twig line 18

Open in your IDE?
  1. {% extends '@PlatformSecurity/Login/base2.html.twig' %}
  2. {% set titles = { 0: { title: 'SchoolStatus Sites & Apps', rank: -100 }, 1: { title: 'Login', rank: 100 } } %}
  3. {% set body_attrs = { 0: { action: 'append', arg1: 'class', arg2: 'page-login page-login--main'} } %}
  4. {% block header %}
  5.     <p class="login-panel__logo">
  6.         <a href="https://www.schoolnow.com" target="_blank">
  7.             <img src="/ui2022/images/logo_app_stack_black.png" alt="SchoolStatus Sites & Apps" style="width: 165px;" />
  8.         </a>
  9.     </p>
  10.     <h2 class="login-panel__heading">{{ tenant.name }}</h2>
  11. {% endblock %}
  12. {% block body %}
  13.     {% if form is not empty %}
  14.         <div class="login-panel__form">
  15.             {{ form_start(form, {
  16.                 attr: {
  17.                     autocomplete: 'on'
  18.                 }
  19.             }) }}
  20.             {% if form.vars.errors|length > 0 %}
  21.                 <div class="alert alert-danger">
  22.                     {% for error in form.vars.errors %}
  23.                         <p>{{ error.message }}</p>
  24.                     {% endfor %}
  25.                 </div>
  26.             {% endif %}
  27.             <div class="form-group">
  28.                 {{ form_label(form.username) }}
  29.                 {{ form_widget(form.username, {
  30.                     attr: {
  31.                         class: 'form-control',
  32.                         placeholder: 'Email'
  33.                     }
  34.                 }) }}
  35.             </div>
  36.             <div class="form-group">
  37.                 {{ form_label(form.password) }}
  38.                 {{ form_widget(form.password, {
  39.                     attr: {
  40.                         class: 'form-control',
  41.                         placeholder: 'Password'
  42.                     }
  43.                 }) }}
  44.             </div>
  45.             <div class="form-group login-panel__form-actions">
  46.                 <input type="submit" class="btn btn-lg btn-success btn-block" value="Sign in with email" />
  47.             </div>
  48.             {{ form_end(form) }}
  49.             <p class="login-panel__forgot-password">
  50.                 <a href="{{ path(routes.reset_password) }}">Forget your password?</a>
  51.             </p>
  52.         </div>
  53.     {% endif %}
  54.     {% if form is not empty and providers is not empty %}
  55.         <div class="login-panel__separator">or</div>
  56.     {% endif %}
  57.     {% if providers is not empty %}
  58.         <div class="login-panel__sso">
  59.             {% if errors|length > 0 %}
  60.                 <div class="alert alert-danger">
  61.                     {% for error in errors %}
  62.                         <p>{{ error }}</p>
  63.                     {% endfor %}
  64.                 </div>
  65.             {% endif %}
  66.             {% for provider in providers %}
  67.                 <div class="login-panel__sso-grp">
  68.                     <a class="btn-sso btn-sso-{{ provider.id }}" href="{{- path('app.platform.security.sso.start', {
  69.                         id: provider.id,
  70.                         redirect: redirect
  71.                     }) -}}">Sign in with {{ 'app.platform.security.oauth.providers.%s.nickname'|format(provider.id)|trans }}</a>
  72.                 </div>
  73.             {% endfor %}
  74.         </div>
  75.     {% endif %}
  76. {% endblock %}