templates/Home/registration.html.twig line 1

Open in your IDE?
  1. {%  extends "Home/base.html.twig" %}
  2. {% block content %}
  3.     <div class='container '>
  4.         <div class='row justify-content-center'>
  5.             <div class='col-lg-7 '>
  6.                 <div class='page-content'>
  7.                     <span class="iq-tw-8" style="font-size: 20px; color: #1044e6;">Registration</span>
  8.                     <form role="form" action="{{ path('home_registration')}}" class="mt-4" method="POST" id='form'>
  9.                         {% if app.session.flashbag.has('success_messages') %}
  10.                             <div>
  11.                                 {% for successMessage in app.session.flashbag.get('success_messages') %}
  12.                                     <div>
  13.                                         <small class="text-success">{{ successMessage }}</small>
  14.                                     </div>
  15.                                 {% endfor %}
  16.                             </div>
  17.                         {% endif %}
  18.                         {% if app.session.flashbag.has('error_messages') %}
  19.                             <div>
  20.                                 {% for errorMsg in app.session.flashbag.get('error_messages') %}
  21.                                     <div>
  22.                                         <small class="text-danger">{{ errorMsg }}</small>
  23.                                     </div>
  24.                                 {% endfor %}
  25.                             </div>
  26.                         {% endif %}
  27.                         <div class="row">
  28.                             <div class="col-md-6">
  29.                                 <div class="form-floating">
  30.                                     {{ form_widget(form.first_name) }}
  31.                                     <label for="lastName">First Name</label>
  32.                                 </div>
  33.                             </div>
  34.                             <div class="col-md-6 mb-4">
  35.                                 <div class="form-floating mb-3">
  36.                                     {{ form_widget(form.last_name) }}
  37.                                     <label for="lastName">Last Name</label>
  38.                                 </div>
  39.                             </div>
  40.                         </div>
  41.                         <div class="row">
  42.                             <div class="col-md mb-4">
  43.                                 <div class="form-floating mb-3">
  44.                                     {{ form_widget(form.email , { 'value': refEmail }) }}
  45.                                     <label for="floatingInput">Email</label>
  46.                                 </div>
  47.                             </div>
  48.                         </div>
  49.                         <div class="row">
  50.                             <div class="col-md-6 mb-4">
  51.                                 <div class="form-floating mb-2">
  52.                                     {{ form_widget(form.password.first) }}
  53.                                     <label for="Password">Password</label>
  54.                                 </div>
  55.                             </div>
  56.                             <div class="col-md-6 mb-4">
  57.                                 <div class="form-floating mb-2">
  58.                                     {{ form_widget(form.password.second) }}
  59.                                     <label for="confirmpassword">Confirm-password</label>
  60.                                 </div>
  61.                             </div>
  62.                         </div>
  63.                         <div class="form-check d-flex  mb-2 text-white">
  64.                             <input type="checkbox" class="form-check-input" required id="agree">
  65.                             <label class="ms-2 form-check-label" for="agree" style="font-size: 12px; line-height: 18px;">I agree with the terms of
  66.                                                                                 use</label>
  67.                         </div>
  68.                         <div class="form-check d-flex mb-2 mb-2 text-white">
  69.                             <input type="checkbox" class="form-check-input" required id="agree2">
  70.                             <label class="ms-2 form-check-label" for="agree2" style="max-width: 95%; font-size: 12px; line-height: 18px;">
  71.                                 I agree to receive the newsletter and transactional emails and i know i can easily unsubscribe at anytime.
  72.                             </label>
  73.                         </div>
  74.                         {{ form_widget(form._token) }}
  75.                         {{ form_widget(form.id) }}
  76.                         <input type="hidden" name="recaptcha_token" id="recaptcha-token" value="">
  77.                         <div class="text-center">
  78.                             <button type="submit" class="btn btn-primary" id="submitButton">Register</button>
  79.                         </div>
  80.                         <div class='text-center text-white mt-3'>
  81.                             Already have an account? <a href='{{path("home_login")}}' class='text-primary'>Login here</a> 
  82.                         </div>
  83.                     </form>
  84.                 </div>
  85.             </div>
  86.         </div>
  87.         <section id="contact-us" class="contact-us">
  88.             {% include 'Home/footer.html.twig' %}
  89.         </section>
  90.         {% include 'Home/login_modal.html.twig' %}
  91.     {% endblock %}