{% extends "base.html" %}
{% load wagtailsettings_tags %}
{% get_settings %}

{% block content %}
<div class="profile-container">
  <div class="block turq">
    <div class="title"><h5>{% trans "Thank you for joining!" %}</h5></div>
    <p>{% trans "Let us know your birthday to get access to exclusive content." %}</p>
    <form method="post" action="{% url 'molo.profiles:registration_done' %}" novalidate>
    {% csrf_token %}
    {# profile_settings.capture_display_name_on_reg settings.profiles.UserProfilesSettings.capture_dob_name_on_reg settings.profiles.UserProfilesSettings.capture_gender_name_on_reg #}
      {% if settings.profiles.UserProfilesSettings.activate_display_name and not settings.profiles.UserProfilesSettings.capture_display_name_on_reg %}
        <fieldset>
          <label>{% trans "Nickname:" %}</label>
          <label>{% trans "Please do not use your real name, phone number or email address as it's unsafe." %}</label>
          {{ form.alias.errors }}
          {{ form.alias }}
        </fieldset>
      {% endif %}

      {% if settings.profiles.UserProfilesSettings.activate_dob and not settings.profiles.UserProfilesSettings.capture_dob_on_reg %}
      <fieldset>
        <label>{% trans "Date of birth:" %}</label>
        {{ form.date_of_birth }}
      </fieldset>
      {% endif %}

      {% if settings.profiles.UserProfilesSettings.activate_gender and not settings.profiles.UserProfilesSettings.capture_gender_on_reg %}
        <fieldset>
          <label>{% trans "Gender:" %}</label>
          {{ form.gender.errors }}
          {{ form.gender }}
        </fieldset>
      {% endif %}

      {% if settings.profiles.UserProfilesSettings.activate_education_level and not not settings.profiles.UserProfilesSettings.capture_education_level_on_reg_name_on_reg %}
        <fieldset>
          <label>{% trans "Update your Education Level:" %}</label>
          {{ form.education_level }}
          {{ form.education_level.errors}}
        </fieldset>
      {% endif %}
      <input type="submit" value='{% trans "Update" %}' />
      <a href="/" class="button inverted">{% trans "Skip" %}</a>
    </form>
  </div>
</div>
{% endblock %}
