{% load staticfiles crispy_forms_tags i18n widget_tweaks %}
{% if form.errors and not form.non_field_errors %} {% endif %} {% if invite.event.has_registration_required_field %}

{% trans "All fields marked with an asterisk (*) are required" %}

{% endif %}
{% csrf_token %} {% for error in form.non_field_errors %} {% endfor %}

Gentile {{ invite.contact.first_name }} {{ invite.contact.last_name }}

{% trans "To facilitate registration on the site, we ask you to fill in the following fields, thanks to which we will automatically generate the driving authorization form." %}

{% trans "The day of the event you have chosen, you will have to go to the address indicated, with the QR code that you will receive via e-mail to get the pre-filled document immediately." %} {% trans "It will be sufficient to add your signature to this document, thus avoiding unpleasant expectations." %}

{% if invite.event.ask_address and invite.event.address_question_type %} {% if invite.event.address_question_type == "default" and not invite.contact.default_address %} {% else %}
{% trans 'Residence address' %} {{ address_formset.management_form }}
{% for address_form in address_formset %} {% for hidden in address_form.hidden_fields %}{{ hidden }}{% endfor %}
{{ address_form.address_type|add_class:'form-control' }} {% if address_form.address_type.errors %} {{ address_form.address_type.errors|striptags }} {% endif %}
{{ address_form.name|add_class:'form-control' }} {% if address_form.name.errors %} {{ address_form.name.errors|striptags }} {% endif %}
{{ address_form.number|add_class:'form-control' }} {% if address_form.number.errors %} {{ address_form.number.errors|striptags }} {% endif %}
{% if invite.event.address_question_type == 'all' %}
{% endif %}
{{ address_form.locality|add_class:'form-control' }} {% if address_form.locality.errors %} {{ address_form.locality.errors|striptags }} {% endif %}
{{ address_form.zip_code|add_class:'form-control' }} {% if address_form.zip_code.errors %} {{ address_form.zip_code.errors|striptags }} {% endif %}
{{ address_form.province|add_class:'form-control' }} {% if address_form.province.errors %} {{ address_form.province.errors|striptags }} {% endif %}
{{ address_form.country|add_class:'form-control' }} {% if address_form.country.errors %} {{ address_form.country.errors|striptags }} {% endif %}
{% if not forloop.last %}
{% endif %} {% endfor %}
{% endif %} {% endif %} {% if invite.event.ask_birthday %}
{% trans 'Birthday' %}
{{ form.birthday|add_class:'form-control'|add_class:'datepicker' }} {% if form.birthday.errors %} {{ form.birthday.errors|striptags }} {% endif %}
{% endif %} {% if invite.event.ask_birth_place %}
{% trans 'Birth place' %}
{{ form.birth_place|add_class:'form-control' }} {% if form.birth_place.errors %} {{ form.birth_place.errors|striptags }} {% endif %}
{% endif %} {% if invite.event.ask_ssn %}
{% trans 'Ssn' %}
{{ form.ssn|add_class:'form-control' }} {% if form.ssn.errors %} {{ form.ssn.errors|striptags }} {% endif %}
{% endif %} {% if invite.event.ask_id_card %}
{% trans 'Documents: Id card' %}
{{ form.id_card_number|add_class:'form-control' }} {% if form.id_card_number.errors %} {{ form.id_card_number.errors|striptags }} {% endif %}
{{ form.id_card_issue_date|add_class:'form-control'|add_class:'datepicker' }} {% if form.id_card_issue_date.errors %} {{ form.id_card_issue_date.errors|striptags }} {% endif %}
{{ form.id_card_expiration_date|add_class:'form-control'|add_class:'datepicker' }} {% if form.id_card_expiration_date.errors %} {{ form.id_card_expiration_date.errors|striptags }} {% endif %}
{{ form.id_card_scan }} {% trans "Uploads must be smaller than 10M" %} {% if form.id_card_scan.errors %}{{ form.id_card_scan.errors|striptags }}{% endif %}
{% endif %} {% if invite.event.ask_passport %}
{% trans 'Documents: Passport' %}
{{ form.passport_number|add_class:'form-control' }} {% if form.passport_number.errors %} {{ form.passport_number.errors|striptags }} {% endif %}
{{ form.passport_issue_date|add_class:'form-control'|add_class:'datepicker' }} {% if form.passport_issue_date.errors %} {{ form.passport_issue_date.errors|striptags }} {% endif %}
{{ form.passport_expiration_date|add_class:'form-control'|add_class:'datepicker' }} {% if form.passport_expiration_date.errors %} {{ form.passport_expiration_date.errors|striptags }} {% endif %}
{{ form.passport_scan }} {% trans "Uploads must be smaller than 10M" %} {% if form.id_card_scan.errors %}{{ form.passport_scan.errors|striptags }}{% endif %}
{% endif %} {% if invite.event.ask_license %}
{% trans 'Documents: License' %}
{{ form.license_number|add_class:'form-control' }} {% if form.license_number.errors %} {{ form.license_number.errors|striptags }} {% endif %}
{{ form.license_emitted_by|add_class:'form-control' }} {% if form.license_emitted_by.errors %} {{ form.license_emitted_by.errors|striptags }} {% endif %}
{{ form.license_issue_date|add_class:'form-control'|add_class:'datepicker' }} {% if form.license_issue_date.errors %} {{ form.license_issue_date.errors|striptags }} {% endif %}
{{ form.license_expiration_date|add_class:'form-control'|add_class:'datepicker' }} {% if form.license_expiration_date.errors %} {{ form.license_expiration_date.errors|striptags }} {% endif %}
{% for choice in form.license_types %}
{% endfor %}
{% if form.license_types.errors %} {{ form.license_types.errors|striptags }} {% endif %}
{% endif %}
{% trans 'NOTE: in order to carry out the ride test, it is necessary to show the original driving license achieved before 25 April 1988 and be equipped with the technical clothing essential for driving a motorcycle (helmet, gloves, jacket with protections, etc.).' %}



TRIUMPH MOTORCYCLES SRL, VIALE DELLE INDUSTRIE 10/18, 20020 ARESE (MI). ISCRIZIONE AL REGISTRO DELLE IMPRESE DI MILANO C.F./P.IVA IT 03492990969 – CAP. SOC. €1.000.000,00 I.V.