templates/website/includes/modal-register.html.twig line 1

Open in your IDE?
  1. {% embed "website/includes/modal.html.twig" with { 'id': 'fast-register-modal', 'title': getLanguage('register_user', 'product') } %}
  2. {% from 'utils.html.twig' import ico %}
  3. {% block content %}
  4. {% set showTerms = (getConfig('contract') is not empty)?  true : false %}
  5. <div class="modal-info">
  6.     <p>
  7.         {{ "#{getLanguage('acquire_account', 'product')} #{client.brand}. #{getLanguage('acquire_student', 'product')}" }}
  8.         <strong>
  9.             <a href="{{ path('login') }}">{{ getLanguage('acquire_course_login', 'product') }}</a>
  10.         </strong>
  11.         {{ ". #{getLanguage('acquire_course_register', 'product')}" }}
  12.     </p>
  13. </div>
  14. <div class="aviso">
  15.     <p>&hellip;</p>
  16. </div>
  17. <template id="template-aviso-confirmacao">
  18.     {% if getConfig("allow_confirmation") == enum('UserEnum::YES') %}
  19.         {{ getLanguage('email_confirmation', 'register')|raw }}
  20.     {% else %}
  21.         {{ getLanguage('user_registered_successfully', 'js_files')|raw }}
  22.     {% endif %}
  23. </template>
  24. {% if getConfig("allow_confirmation") == enum('UserEnum::NO') %}
  25.     <div class="btn-redirect">
  26.         <button type="button" class="js--access-course btn-continuar-peq">{{ getLanguage('access_course', 'product') }}</button>
  27.     </div>
  28. {% endif %}
  29. <form id="formFastUserRegister" data-showterms="{{ showTerms }}" action="{{ path('registerPost') }}" class="form-geral" novalidate>
  30.     <div class="cp">
  31.         <label for="name">{{ getLanguage('name', 'product') }}</label>
  32.         <input type="text" name="name" placeholder="{{ getLanguage('type_your_name', 'product') }}" required>
  33.     </div>
  34.     {% include 'website/user/profile/user-custom-form-clean.html.twig' %}
  35.     
  36.     <div class="cp">
  37.         <label for="email">E-mail</label>
  38.         <input type="email" name="email" placeholder="{{ getLanguage('type_your_email', 'product') }}" required>
  39.     </div>
  40.     <div class="cp">
  41.         <label for="phone">{{ getLanguage('phone', 'product') }}</label>
  42.         <input type="text" id="phone" name="phone" class="intlPhone" required>
  43.     </div>
  44.     <div class="cp">
  45.         <label for="password">{{ getLanguage('password', 'product') }}</label>
  46.         <input type="password" name="password" placeholder="{{ getLanguage('type_a_password', 'product') }}" required>
  47.     </div>
  48.     {% if productOffer %}
  49.         <input type="hidden" name="productOffer" value="{{ productOffer.id }}">
  50.         <input type="hidden" name="fast" value="{{ enum('ProductEnum::YES') }}">
  51.     {% endif %}
  52.     <div class="cp">
  53.         {% include 'website/includes/captcha-form.html.twig' with { layout: 'register' } %}
  54.     </div>
  55.     {# USER TERMS #}
  56.     {% include 'website/includes/user-terms.html.twig' with { show: showTerms } %}
  57.     <nav class="actions">
  58.         <button type="button" class="js--modal-fecha cancel">{{ getLanguage('cancel', 'product') }}</button>
  59.         <button type="submit" id="btnFastUserRegister" data-showterms="{{ showTerms }}" class="btn-continuar-peq btn-load">
  60.             <span>{{ getLanguage('register', 'product') }}</span>
  61.             <span>{{ getLanguage('wait', 'util') }}&hellip;&ensp;<i class="loader">{{ ico('loader-wish') }}</i></span>
  62.         </button>
  63.     </nav>
  64. </form>
  65. {% endblock %}
  66. {% endembed %}