{% extends "base.html" %} {% load wagtailcore_tags wagtailsettings_tags gem_tags %} {% wagtail_site as current_site %} {% get_settings %} {% block content %}
{% trans "Hello" as headingtext %} {% if user.profile.alias %} {% with user.profile.alias as alias %} {# include template "patterns/basics/headings/sp_variations/heading.html" #} {% with type="component" htmltag="h1" title=headingtext|add:" "|add:alias %}
<{{htmltag}}>{{title}}
{% endwith %} {# end include template #} {% endwith %} {% else %} {% with user|stringformat:"s" as username %} {# include template "patterns/basics/headings/sp_variations/heading.html" #} {% with type="component" htmltag="h1" title=headingtext|add:" "|add:user.profile.migrated_username|default:username %}
<{{htmltag}}>{{title}}
{% endwith %} {# end include template #} {% endwith %} {% endif %}
{% csrf_token %}
{# include template "patterns/basics/headings/sp_variations/heading.html" #} {% trans "Your Profile" as headingtext %} {% with type="basic" htmltag="h2" title=headingtext %}
<{{htmltag}}>{{title}}
{% endwith %} {# end include template #} {% trans "Not set." as defaultText %} {% with profile_settings=settings.profiles.UserProfilesSettings %} {% if profile_settings.activate_display_name %}
{% if user.profile.alias %} {% else %} {% endif %}
{% endif %} {% if profile_settings.activate_dob %}
{{ user.profile.date_of_birth|default:defaultText }}
{% endif %} {% if profile_settings.activate_gender%}
{{user.profile.gender|gender_display|default:defaultText }}
{% endif %} {% if profile_settings.activate_education_level %}
{{ user.profile.education_level|default:defaultText }}
{% endif %} {% endwith %} {# include template "patterns/basics/buttons/sp_variations/button.html" #} {% trans "Update Profile" as buttontext %} {% with type="primary" text=buttontext %} {{text}} {% endwith %} {# end include template #}
{% csrf_token %} {# include template "patterns/basics/headings/sp_variations/heading.html" #} {% trans "Change Your Pin" as headingtext %} {% with type="basic" htmltag="h2" title=headingtext %}
<{{htmltag}}>{{title}}
{% endwith %} {# end include template #} {% if form.errors or form.non_field_errors %} {% if form.non_field_errors %} {% for error in form.non_field_errors %}

{{ error }}

{% endfor %} {% endif %} {% endif %}
{{ password_change_form.old_password }} {{ password_change_form.old_password.errors }}
{{ password_change_form.new_password }} {{ form.new_password.errors }}
{{ password_change_form.confirm_password }} {{ form.confirm_password.errors }}
{% trans "Homepage" %}
{% endblock %}