diff --git a/templates/member/profile_detail.html b/templates/member/profile_detail.html index 0a19eecd..f9f9eb03 100644 --- a/templates/member/profile_detail.html +++ b/templates/member/profile_detail.html @@ -31,20 +31,24 @@
{{ object.note.balance | pretty_money }}
{% trans 'aliases'|capfirst %}
-
{{ object.note.alias_set.all|join:", " }}
+
{{ object.note.alias_set.all|join:", " }}
{% if object.pk == user.pk %} {% trans 'Manage auth token' %} {% endif %} - -
+ {% block profile_content %}
@@ -72,6 +76,7 @@
+ {% endblock %}
{% endblock %} diff --git a/templates/member/user_alias.html b/templates/member/user_alias.html index 7d932adc..a83d7c3e 100644 --- a/templates/member/user_alias.html +++ b/templates/member/user_alias.html @@ -1,51 +1,7 @@ -{% extends "base.html" %} +{% extends "member/profile_detail.html" %} {% load i18n static pretty_money django_tables2 crispy_forms_tags %} -{% block content %} -
-
-
- -
-
-
{% trans 'name'|capfirst %}, {% trans 'first name' %}
-
{{ object.last_name }} {{ object.first_name }}
- -
{% trans 'username'|capfirst %}
-
{{ object.username }}
- -
{% trans 'password'|capfirst %}
-
- - {% trans 'Change password' %} - -
- -
{% trans 'section'|capfirst %}
-
{{ object.profile.section }}
- -
{% trans 'address'|capfirst %}
-
{{ object.profile.address }}
- -
{% trans 'balance'|capfirst %}
-
{{ object.note.balance | pretty_money }}
- -
{% trans 'aliases'|capfirst %}
-
{{ object.note.alias_set.all|join:", " }}
-
- - {% if object.pk == user.pk %} - {% trans 'Manage auth token' %} - {% endif %} -
- -
-
- -
+{% block profile_content %}
{% csrf_token %} @@ -60,6 +16,4 @@ {% render_table aliases %}
-
- {% endblock %}