templates/pages/auth/signup.html.twig line 1

  1. {% extends "#{theme.getParameter('KT_THEME_LAYOUT_DIR')}/_auth.html.twig" %}
  2. {% block page_title %}Signup{% endblock %}
  3. {% block content %}
  4.     <!--begin::Form-->
  5.         <!--begin::Heading-->
  6.         <div class="text-center mb-11">
  7.             <!--begin::Title-->
  8.             <h1 class="text-dark fw-bolder mb-3">
  9.                 Sign Up
  10.             </h1>
  11.             <!--end::Title-->
  12.         </div>
  13.         <!--begin::Heading-->
  14.         {{ form_start(registrationForm, {'attr': {'id': 'kt_sign_up_form'}}) }}
  15.         {% if not registrationForm.vars.valid %}
  16.             <div class="alert bg-light-danger d-flex align-items-center p-5 mb-10">
  17.                 {{ theme.getIcon('information-5', 'fs-2hx text-danger me-4') | raw }}
  18.                 <div class="d-flex flex-column">
  19.                     <h4 class="fw-semibold">The following errors were noticed</h4>
  20.                     {{ form_errors(registrationForm) }}
  21.                     {{ form_errors(registrationForm.email) }}
  22.                     {{ form_errors(registrationForm.plainPassword) }}
  23.                     {{ form_errors(registrationForm.agreeTerms) }}
  24.                 </div>
  25.             </div>
  26.         {% endif %}
  27.         <!--begin::Input group--->
  28.         <div class="fv-row mb-8">
  29.             <!--begin::Email-->
  30.             {{ form_widget(registrationForm.email, {'attr': {'class': 'form-control bg-transparent', 'autocomplete': 'off', 'placeholder': 'Email'}, }) }}
  31.             <!--end::Email-->
  32.         </div>
  33.         <!--begin::Input group-->
  34.         <div class="fv-row mb-8" data-kt-password-meter="true">
  35.             <!--begin::Wrapper-->
  36.             <div class="mb-1">
  37.                 <!--begin::Input wrapper-->
  38.                 <div class="position-relative mb-3">
  39.                     {{ form_widget(registrationForm.plainPassword, {'attr': {'class': 'form-control bg-transparent', 'autocomplete': 'off', 'placeholder': 'Password'}, }) }}
  40.                     <span class="btn btn-sm btn-icon position-absolute translate-middle top-50 end-0 me-n2" data-kt-password-meter-control="visibility">
  41.                         <i class="bi bi-eye-slash fs-2"></i>
  42.                         <i class="bi bi-eye fs-2 d-none"></i>
  43.                     </span>
  44.                 </div>
  45.                 <!--end::Input wrapper-->
  46.                 <!--begin::Meter-->
  47.                 <div class="d-flex align-items-center mb-3" data-kt-password-meter-control="highlight">
  48.                     <div class="flex-grow-1 bg-secondary bg-active-success rounded h-5px me-2"></div>
  49.                     <div class="flex-grow-1 bg-secondary bg-active-success rounded h-5px me-2"></div>
  50.                     <div class="flex-grow-1 bg-secondary bg-active-success rounded h-5px me-2"></div>
  51.                     <div class="flex-grow-1 bg-secondary bg-active-success rounded h-5px"></div>
  52.                 </div>
  53.                 <!--end::Meter-->
  54.             </div>
  55.             <!--end::Wrapper-->
  56.             <!--begin::Hint-->
  57.             <div class="text-muted">
  58.                 Use 8 or more characters with a mix of letters, numbers & symbols.
  59.             </div>
  60.             <!--end::Hint-->
  61.         </div>
  62.         <!--end::Input group--->
  63.         <!--end::Input group--->
  64.         <div class="fv-row mb-8">
  65.             <!--begin::Repeat Password-->
  66.             <input placeholder="Repeat Password" name="confirm-password" type="password" autocomplete="off" class="form-control bg-transparent"/>
  67.             <!--end::Repeat Password-->
  68.         </div>
  69.         <!--end::Input group--->
  70.         <!--begin::Accept-->
  71.         <div class="fv-row mb-8">
  72.             <label class="form-check form-check-inline">
  73.                 {{ form_widget(registrationForm.agreeTerms, {'attr': {'class': 'form-check-input'}, }) }}
  74.                 <span class="form-check-label fw-semibold text-gray-700 fs-base ms-1">
  75.                     I Accept the <a href="#" class="ms-1 link-primary">Terms</a>
  76.                 </span>
  77.             </label>
  78.         </div>
  79.         <!--end::Accept-->
  80.         <!--begin::Submit button-->
  81.         <div class="d-grid mb-10">
  82.             <button type="submit" id="kt_sign_up_submit" class="btn btn-primary">
  83.                 {% include 'partials/general/_button-indicator.html.twig' with {label: 'Sign Up'} %}
  84.             </button>
  85.         </div>
  86.         <!--end::Submit button-->
  87.         <!--begin::Sign up-->
  88.         <div class="text-gray-500 text-center fw-semibold fs-6">
  89.             Already have an Account?
  90.             <a href="/signin" class="link-primary fw-semibold">
  91.                 Sign in
  92.             </a>
  93.         </div>
  94.         <!--end::Sign up-->
  95.     <!--end::Form-->
  96.     {{ form_end(registrationForm) }}
  97. {% endblock %}