{% trans_default_domain 'registration' %}
{% extends 'base_home.html.twig' %}
{% block title %}{{ 'registration.title'|trans }}{% endblock %}
{% block content %}
<div class="nk-content pt-5 mb-5 min-vh-100 pb-3 registration-wrap">
<div class="container">
<div class="row mb-5 mb-md-6">
<div class="col-12">
<h1 class="text-center text-uppercase fw-bolder mb-0">{{ 'registration.title'|trans }}</h1>
<h3 class="text-center fw-light">
{{ 'registration.sub_title'|trans }}
</h3>
</div>
</div>
<div class="row">
<div class="col-12 col-lg-5 offset-lg-1 col-xl-4 offset-xl-2 mb-5 mb-lg-0">
<div class="nk-block">
<div class="nk-block-content rounded">
<div class="registration-benefits-title text-uppercase">
{% trans %}registration.registration_benefits.title{% endtrans %}
</div>
<div class="registration-benefits-price bg-lighter">
{%- if paymentPackage.rebillInto -%}
<div class="registration-benefits-price-amount">{{- 'currency'|trans({'currency': paymentPackage.currency}, 'messages') -}} {{- paymentPackage.costFloat|price_format }} </div>
<div class="registration-benefits-price-term-of-membership">
<span>{{- 'membership_start'|trans({'count': paymentPackage.termOfMembership}) -}}</span>
<span>
({{- 'currency'|trans({'currency': paymentPackage.rebillInto.currency}, 'messages') }}
{{- paymentPackage.rebillInto.costFloat|price_format }}
{{ 'membership_recurring_term_of_membership' | trans({'count': paymentPackage.rebillInto.termOfMembership}) }})
</span>
</div>
{%- else -%}
<div class="registration-benefits-price-amount">{{- 'currency'|trans({'currency': paymentPackage.currency}, 'messages') -}} {{- paymentPackage.costFloat|price_format }} </div>
<div class="registration-benefits-price-term-of-membership">{{- 'membership_recurring_term_of_membership'|trans({'count': paymentPackage.termOfMembership}) -}}</div>
{% endif %}
</div>
<div class="registration-benefits-benefits-list">
<div class="registration-benefits-benefits-list-row">
<div>{% trans %}registration.registration_benefits.benefits.1.text{% endtrans %}</div>
<div class="registration-benefits-benefits-list-sub">
{% trans %}registration.registration_benefits.benefits.1.subtext{% endtrans %}
</div>
</div>
<div class="registration-benefits-benefits-list-row">
<div>{% trans %}registration.registration_benefits.benefits.2.text{% endtrans %}</div>
<div class="registration-benefits-benefits-list-sub">
{% trans %}registration.registration_benefits.benefits.2.subtext{% endtrans %}
</div>
</div>
<div class="registration-benefits-benefits-list-row">
<div>{% trans %}registration.registration_benefits.benefits.3.text{% endtrans %}</div>
</div>
<div class="registration-benefits-benefits-list-row">
<div>{% trans %}registration.registration_benefits.benefits.4.text{% endtrans %}</div>
</div>
<div class="registration-benefits-benefits-list-row">
<div>{% trans %}registration.registration_benefits.benefits.5.text{% endtrans %}</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-12 col-lg-5 col-xl-4">
<div class="nk-block-content p-4 rounded bg-lighter">
{% form_theme form 'form_theme_outlined.html.twig' %}
{{ form_start(form, {'attr': {'class': 'original-form-width'}}) }}
{{ form_row(form.email, {'attr': {'tabindex': 1}}) }}
{{ form_row(form.password.password, {'attr': {'tabindex': 2}, 'help': 'form.password_hint'}) }}
{{ form_row(form.password.confirm_password, {'attr': {'tabindex': 3}}) }}
<div class="checkbox mb-4">
<div class="form-group">
<div class="custom-control custom-checkbox">
{{ form_widget(form.agreedNewsletter, {'attr': {'tabindex': 4, 'class': 'custom-control-input'}}) }}
<label class="custom-control-label" for="registration_agreedNewsletter">
{% set terms_and_conditions_link = path('terms_and_conditions') %}
{% set privacy_policy_link = path('privacy_policy') %}
{% trans with {'{terms_and_conditions_link}': terms_and_conditions_link, '{privacy_policy_link}': privacy_policy_link}%}
form.policy_label
{% endtrans %}
</label>
{% if form.children.agreedNewsletter.vars.errors|length > 0 %}
{{ form_errors(form.agreedNewsletter) }}
{% endif %}
</div>
</div>
</div>
<div class="form-group">
{{ form_widget(form.recaptcha) }}
{% if form.children.recaptcha.vars.errors|length > 0 %}
<label id="confirmPassword-error" class="error" for="confirmPassword">{{ form_errors(form.recaptcha) }}</label>
{% endif %}
</div>
<p class="fs-16px mb-4 text-center">{{ 'registration.validation_hint'|trans }}</p>
<div class="form-group">
<button class="btn btn-lg btn-primary btn-block" type="submit" tabindex="5">
{{ 'registration.button'|trans }}
</button>
</div>
{{ form_end(form) }}
<div class="form-note-s2 pt-2 text-center">
<h6 class="fw-normal join-cta-wrap-small">
{{ 'registration.login_cta.claim'|trans }} <a href="{{ path('app_login') }}" class="text-secondary font-weight-bold">{{ 'registration.login_cta.link'|trans }}</a>
</h6>
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}