templates/default/index.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block recaptcha %}<script src='https://www.google.com/recaptcha/api.js'></script>{% endblock %}
  3. {% block title %}Accedi{% endblock %}
  4. {% block header %}{% endblock %}
  5. {% block content %}
  6.     <section class="m_tb_110p">
  7.         <div class="container">
  8.             <div class="row">
  9.                 <div class="col-12 txt_a_c m_b_40p">
  10.                     <img src="{{ asset (asset_graphics ~ '/logo-dark.png') }}" width="200" alt="Filoscafo"/>
  11.                 </div>
  12.                 <div class="col-12 col-md-6 offset-md-3">
  13.                     <form action="{{ path('login_check') }}" method="post">
  14.                         <div class="row">
  15.                             <div class="col-12">
  16.                                 <div class="form-group">
  17.                                     <label>{% trans from "website" %}login_02{% endtrans %}</label>
  18.                                     <input class="form-control" type="text" id="username" name="email" value="{{ last_username }}"/>
  19.                                 </div>
  20.                                 <div class="form-group">
  21.                                     <label>{% trans from "website" %}login_03{% endtrans %}</label>
  22.                                     <input class="form-control" type="password" id="password" name="password" />
  23.                                     <a href="javascript:recoverPassword()"><label class="underline color_pr m_t_10p">{% trans from "website" %}login_04{% endtrans %}</label></a>
  24.                                 </div>
  25.                             </div>
  26.                             <div class="col-12 m_t_20p txt_a_c">
  27.                                 <button type="submit" class="button button-border button-rounded button-pr width_120p">{% trans from "website" %}login_05{% endtrans %}</button><br>
  28.                             </div>
  29.                             <div class="col-12 m_t_20p txt_a_c">
  30.                                 <a href="{{ path ('registration') }}"><u>{% trans from "website" %}login_14{% endtrans %}</u></a>
  31.                             </div>
  32.                         </div>
  33.                         <input type="hidden" name="form_login_csrf_token" value="{{ csrf_token('authenticate') }}">
  34.                     </form>
  35.                 </div>
  36.             </div>
  37.         </div>
  38.     </section>
  39.     {% if error %}
  40.         <div class="alert alert-dismissible alert-warning notice">
  41.             <i class="icon-warning-sign"></i><strong>{% trans from "website" %}login_06{% endtrans %}</strong> {% trans from "website" %}login_07{% endtrans %}
  42.             <button type="button" class="btn-close btn-sm" data-bs-dismiss="alert" aria-hidden="true"></button>
  43.         </div>
  44.     {% endif %}
  45.     {# MODALE RECUPERA PASSWORD #}
  46.     <div id="modalRecover" class="modal fade" tabindex="-1" role="dialog">
  47.         <div class="modal-dialog" role="document">
  48.             <div class="modal-content">
  49.                 {{ form_start(form, {'attr': {'novalidate': 'novalidate'}}) }}
  50.                     <div class="modal-header"><h4 class="modal-title text-uppercase txt_a_c">{% trans from "website" %}login_08{% endtrans %}</h4></div>
  51.                     <div class="modal_stripe"></div>
  52.                     <div class="modal-body">
  53.                         <div class="row">
  54.                             <div class="col-12">
  55.                                 <p class="m_b_10p txt_a_j">{% trans from "website" %}login_09{% endtrans %}</p>
  56.                                 <div class="form-group">
  57.                                     <label>{% trans from "website" %}login_10{% endtrans %}*</label>
  58.                                     <div {{ form_errors(form.email.first) }}>
  59.                                         {{ form_widget(form.email.first, {'attr': {'class': 'form-control max_w_280p m_auto'}}) }}
  60.                                     </div>
  61.                                 </div>
  62.                                 <div class="form-group">
  63.                                     <label>{% trans from "website" %}login_11{% endtrans %}*</label>
  64.                                     <div {{ form_errors(form.email.second) }}>
  65.                                         {{ form_widget(form.email.second, {'attr': {'class': 'form-control max_w_280p m_auto'}}) }}
  66.                                     </div>
  67.                                 </div>
  68.                                 <div {{ form_errors(form.recaptcha) }}>
  69.                                     {{ form_widget(form.recaptcha) }}
  70.                                     <div id="divRecaptcha" class="g-recaptcha" data-sitekey="6LcEdHAnAAAAAOVdwvS5a74pHAAEvPfLTk8gHrhe"></div>
  71.                                 </div>
  72.                             </div>
  73.                         </div>
  74.                     </div>
  75.                     <div class="modal-footer" style="display: flow-root">
  76.                         <a href="javascript:void(0)" class="button button-border button-rounded button-small button-red f_left" data-bs-dismiss="modal">{% trans from "website" %}login_12{% endtrans %}</a>
  77.                         <button type="submit" class="button button-border button-rounded button-small button-green f_right">{% trans from "website" %}login_13{% endtrans %}</a>
  78.                     </div>
  79.                 {{ form_end(form) }}
  80.             </div>
  81.         </div>
  82.     </div>
  83. {% endblock %}
  84. {% block footer %}{% endblock %}
  85. {% block javascripts %}
  86.     {{ parent() }}
  87.     <script>
  88.         function recoverPassword(){
  89.             $('#modalRecover').modal({backdrop: 'static', keyboard: false}).modal("show");
  90.         }
  91.     </script>
  92. {% endblock %}