{% embed "website/includes/modal.html.twig" with { 'id': 'fast-register-modal', 'title': getLanguage('register_user', 'product') } %}
{% from 'utils.html.twig' import ico %}
{% block content %}
{% set showTerms = (getConfig('contract') is not empty)? true : false %}
<div class="modal-info">
<p>
{{ "#{getLanguage('acquire_account', 'product')} #{client.brand}. #{getLanguage('acquire_student', 'product')}" }}
<strong>
<a href="{{ path('login') }}">{{ getLanguage('acquire_course_login', 'product') }}</a>
</strong>
{{ ". #{getLanguage('acquire_course_register', 'product')}" }}
</p>
</div>
<div class="aviso">
<p>…</p>
</div>
<template id="template-aviso-confirmacao">
{% if getConfig("allow_confirmation") == enum('UserEnum::YES') %}
{{ getLanguage('email_confirmation', 'register')|raw }}
{% else %}
{{ getLanguage('user_registered_successfully', 'js_files')|raw }}
{% endif %}
</template>
{% if getConfig("allow_confirmation") == enum('UserEnum::NO') %}
<div class="btn-redirect">
<button type="button" class="js--access-course btn-continuar-peq">{{ getLanguage('access_course', 'product') }}</button>
</div>
{% endif %}
<form id="formFastUserRegister" data-showterms="{{ showTerms }}" action="{{ path('registerPost') }}" class="form-geral" novalidate>
<div class="cp">
<label for="name">{{ getLanguage('name', 'product') }}</label>
<input type="text" name="name" placeholder="{{ getLanguage('type_your_name', 'product') }}" required>
</div>
{% include 'website/user/profile/user-custom-form-clean.html.twig' %}
<div class="cp">
<label for="email">E-mail</label>
<input type="email" name="email" placeholder="{{ getLanguage('type_your_email', 'product') }}" required>
</div>
<div class="cp">
<label for="phone">{{ getLanguage('phone', 'product') }}</label>
<input type="text" id="phone" name="phone" class="intlPhone" required>
</div>
<div class="cp">
<label for="password">{{ getLanguage('password', 'product') }}</label>
<input type="password" name="password" placeholder="{{ getLanguage('type_a_password', 'product') }}" required>
</div>
{% if productOffer %}
<input type="hidden" name="productOffer" value="{{ productOffer.id }}">
<input type="hidden" name="fast" value="{{ enum('ProductEnum::YES') }}">
{% endif %}
<div class="cp">
{% include 'website/includes/captcha-form.html.twig' with { layout: 'register' } %}
</div>
{# USER TERMS #}
{% include 'website/includes/user-terms.html.twig' with { show: showTerms } %}
<nav class="actions">
<button type="button" class="js--modal-fecha cancel">{{ getLanguage('cancel', 'product') }}</button>
<button type="submit" id="btnFastUserRegister" data-showterms="{{ showTerms }}" class="btn-continuar-peq btn-load">
<span>{{ getLanguage('register', 'product') }}</span>
<span>{{ getLanguage('wait', 'util') }}… <i class="loader">{{ ico('loader-wish') }}</i></span>
</button>
</nav>
</form>
{% endblock %}
{% endembed %}