diff --git a/apps/member/templates/member/add_members.html b/apps/member/templates/member/add_members.html index 8f429541..909e72b3 100644 --- a/apps/member/templates/member/add_members.html +++ b/apps/member/templates/member/add_members.html @@ -1,4 +1,4 @@ -{% extends "member/noteowner_detail.html" %} +{% extends "member/base.html" %} {% load crispy_forms_tags %} {% load static %} {% load i18n %} diff --git a/apps/member/templates/member/noteowner_detail.html b/apps/member/templates/member/base.html similarity index 75% rename from apps/member/templates/member/noteowner_detail.html rename to apps/member/templates/member/base.html index 4f5f7a1d..b61d869c 100644 --- a/apps/member/templates/member/noteowner_detail.html +++ b/apps/member/templates/member/base.html @@ -1,6 +1,8 @@ {% extends "base.html" %} -{% load static i18n pretty_money %} -{% load render_table from django_tables2 %} +{% comment %} +SPDX-License-Identifier: GPL-3.0-or-later +{% endcomment %} +{% block contenttitle %}{% endblock %} {# Use a fluid-width container #} {% block containertype %}container-fluid{% endblock %} @@ -9,15 +11,15 @@
{% block profile_info %} + {% include "member/profile_info.html" %} {% endblock %}
{% block profile_content %} + {% include "member/profile_tables.html" %} {% endblock %}
- -{% block extra_content %}{% endblock %} {% endblock %} {% block extrajavascript %} diff --git a/apps/member/templates/member/club_detail.html b/apps/member/templates/member/club_detail.html index bd6e8399..c3afee7b 100644 --- a/apps/member/templates/member/club_detail.html +++ b/apps/member/templates/member/club_detail.html @@ -1,4 +1,4 @@ -{% extends "member/noteowner_detail.html" %} +{% extends "member/base.html" %} {% block profile_info %} {% include "member/club_info.html" %} diff --git a/apps/member/templates/member/club_info.html b/apps/member/templates/member/club_info.html index 8dcf5baa..bc76385b 100644 --- a/apps/member/templates/member/club_info.html +++ b/apps/member/templates/member/club_info.html @@ -1,11 +1,12 @@ -{% load i18n static pretty_money perms %} -
-
-

Club {{ club.name }}

-
+{% load i18n pretty_money perms %} + +
+

+ Club {{ club.name }} +

@@ -14,43 +15,45 @@
{{ club.name }}
{% if club.parent_club %} -
{% trans 'Club Parent'|capfirst %}
-
{{ club.parent_club.name }}
+
+ {% trans 'Club Parent'|capfirst %} +
+
{{ club.parent_club.name }}
{% endif %} {% if club.require_memberships %} - {% if club.membership_start %} -
{% trans 'membership start'|capfirst %}
-
{{ club.membership_start }}
- {% endif %} + {% if club.membership_start %} +
{% trans 'membership start'|capfirst %}
+
{{ club.membership_start }}
+ {% endif %} - {% if club.membership_end %} -
{% trans 'membership end'|capfirst %}
-
{{ club.membership_end }}
- {% endif %} + {% if club.membership_end %} +
{% trans 'membership end'|capfirst %}
+
{{ club.membership_end }}
+ {% endif %} - {% if club.membership_duration %} -
{% trans 'membership duration'|capfirst %}
-
{{ club.membership_duration }} {% trans "days" %}
- {% endif %} + {% if club.membership_duration %} +
{% trans 'membership duration'|capfirst %}
+
{{ club.membership_duration }} {% trans "days" %}
+ {% endif %} - {% if club.membership_fee_paid == club.membership_fee_unpaid %} -
{% trans 'membership fee'|capfirst %}
-
{{ club.membership_fee_paid|pretty_money }}
- {% else %} -
{% trans 'membership fee (paid students)'|capfirst %}
-
{{ club.membership_fee_paid|pretty_money }}
+ {% if club.membership_fee_paid == club.membership_fee_unpaid %} +
{% trans 'membership fee'|capfirst %}
+
{{ club.membership_fee_paid|pretty_money }}
+ {% else %} +
{% trans 'membership fee (paid students)'|capfirst %}
+
{{ club.membership_fee_paid|pretty_money }}
-
{% trans 'membership fee (unpaid students)'|capfirst %}
-
{{ club.membership_fee_unpaid|pretty_money }}
- {% endif %} +
{% trans 'membership fee (unpaid students)'|capfirst %}
+
{{ club.membership_fee_unpaid|pretty_money }}
+ {% endif %} {% endif %} {% if "note.view_note"|has_perm:club.note %} -
{% trans 'balance'|capfirst %}
-
{{ club.note.balance | pretty_money }}
+
{% trans 'balance'|capfirst %}
+
{{ club.note.balance | pretty_money }}
{% endif %} - +
{% trans 'aliases'|capfirst %}
{{ club.note.alias_set.all|join:", " }}
@@ -59,17 +62,19 @@
{% if not club.weiclub %} - + {% endif %} -
+
\ No newline at end of file diff --git a/apps/member/templates/member/club_members.html b/apps/member/templates/member/club_members.html index ed2debe4..9faff271 100644 --- a/apps/member/templates/member/club_members.html +++ b/apps/member/templates/member/club_members.html @@ -1,4 +1,4 @@ -{% extends "member/noteowner_detail.html" %} +{% extends "member/base.html" %} {% load i18n %} {% load render_table from django_tables2 %} diff --git a/apps/member/templates/member/club_picture_update.html b/apps/member/templates/member/club_picture_update.html index 4f72efec..358fdd6e 100644 --- a/apps/member/templates/member/club_picture_update.html +++ b/apps/member/templates/member/club_picture_update.html @@ -1,5 +1,4 @@ {% extends "member/club_detail.html" %} -{% load i18n static pretty_money django_tables2 crispy_forms_tags %} {% block profile_content%} {% include "member/picture_update.html" %} diff --git a/apps/member/templates/member/profile_detail.html b/apps/member/templates/member/profile_detail.html index 297af21c..9df28c9f 100644 --- a/apps/member/templates/member/profile_detail.html +++ b/apps/member/templates/member/profile_detail.html @@ -1,18 +1,10 @@ -{% extends "member/noteowner_detail.html" %} - -{% block profile_info %} -{% include "member/profile_info.html" %} -{% endblock %} - -{% block profile_content %} -{% include "member/profile_tables.html" %} -{% endblock %} +{% extends "member/base.html" %} {% block extrajavascript %} - -{% endblock %} + +{% endblock %} \ No newline at end of file diff --git a/apps/member/templates/member/profile_info.html b/apps/member/templates/member/profile_info.html index 5d849a0a..3fbf5e3d 100644 --- a/apps/member/templates/member/profile_info.html +++ b/apps/member/templates/member/profile_info.html @@ -1,12 +1,12 @@ -{% load i18n static pretty_money perms %} +{% load i18n pretty_money perms %} -
-
-

{% trans "Account #" %} {{ user_object.pk }}

-
+
+

+ {% trans "Account #" %}{{ user_object.pk }} +

@@ -18,12 +18,12 @@
{{ user_object.username }}
{% if user_object.pk == user.pk %} -
{% trans 'password'|capfirst %}
-
- - {% trans 'Change password' %} - -
+
{% trans 'password'|capfirst %}
+
+ + {% trans 'Change password' %} + +
{% endif %}
{% trans 'section'|capfirst %}
@@ -33,32 +33,39 @@
{{ user_object.email }}
{% trans 'phone number'|capfirst %}
-
{{ user_object.profile.phone_number }}
+
{{ user_object.profile.phone_number }}
{% trans 'address'|capfirst %}
{{ user_object.profile.address }}
{% if "note.view_note"|has_perm:user_object.note %} -
{% trans 'balance'|capfirst %}
-
{{ user_object.note.balance | pretty_money }}
+
{% trans 'balance'|capfirst %}
+
{{ user_object.note.balance | pretty_money }}
-
{% trans 'paid'|capfirst %}
-
{{ user_object.profile.paid|yesno }}
+
{% trans 'paid'|capfirst %}
+
{{ user_object.profile.paid|yesno }}
{% endif %} - -
{% trans 'aliases'|capfirst %}
-
{{ user_object.note.alias_set.all|join:", " }}
- {% if user_object.pk == user_object.pk %} - {% trans 'Manage auth token' %} - {% endif %} +

{% trans 'aliases'|capfirst %}

+ {% for alias in user_object.note.alias_set.all %} + {{ alias }} + {% endfor %}
- + +{% if user_object.pk == user_object.pk %} + + {% trans 'Manage auth token' %} + +{% endif %} \ No newline at end of file diff --git a/apps/member/templates/member/profile_picture_update.html b/apps/member/templates/member/profile_picture_update.html index 4be78dc8..c50a8299 100644 --- a/apps/member/templates/member/profile_picture_update.html +++ b/apps/member/templates/member/profile_picture_update.html @@ -1,5 +1,4 @@ {% extends "member/profile_detail.html" %} -{% load i18n static pretty_money django_tables2 crispy_forms_tags %} {% block profile_content%} {% include "member/picture_update.html" %} diff --git a/apps/member/templates/member/profile_update.html b/apps/member/templates/member/profile_update.html index a47a147b..19d97189 100644 --- a/apps/member/templates/member/profile_update.html +++ b/apps/member/templates/member/profile_update.html @@ -3,14 +3,22 @@ {% comment %} SPDX-License-Identifier: GPL-3.0-or-later {% endcomment %} +{% block contenttitle %}{% endblock %} {% block content %} -
- {% csrf_token %} - {{ form|crispy }} - {{ profile_form|crispy }} - -
-{% endblock %} +
+

+ {{ title }} +

+
+
+ {% csrf_token %} + {{ form | crispy }} + {{ profile_form | crispy }} + +
+
+
+{% endblock %} \ No newline at end of file diff --git a/apps/note/templates/note/search_transactions.html b/apps/note/templates/note/search_transactions.html index 89e571b0..2364a0b3 100644 --- a/apps/note/templates/note/search_transactions.html +++ b/apps/note/templates/note/search_transactions.html @@ -1,4 +1,4 @@ -{% extends "member/noteowner_detail.html" %} +{% extends "member/base.html" %} {% load render_table from django_tables2 %} {% load crispy_forms_tags %} @@ -22,7 +22,8 @@ {% crispy form %} {% endblock %} -{% block extra_content %} +{% block content %} + {{ block.super }}
{% render_table table %}
diff --git a/apps/wei/templates/wei/base.html b/apps/wei/templates/wei/base.html new file mode 100644 index 00000000..24778baf --- /dev/null +++ b/apps/wei/templates/wei/base.html @@ -0,0 +1 @@ +{% extends "member/base.html" %} diff --git a/apps/wei/templates/wei/bus_detail.html b/apps/wei/templates/wei/bus_detail.html index 1b335be8..fc5d14a2 100644 --- a/apps/wei/templates/wei/bus_detail.html +++ b/apps/wei/templates/wei/bus_detail.html @@ -1,4 +1,4 @@ -{% extends "member/noteowner_detail.html" %} +{% extends "wei/base.html" %} {% block profile_info %} {% include "wei/weiclub_info.html" %} diff --git a/apps/wei/templates/wei/bus_form.html b/apps/wei/templates/wei/bus_form.html index 4c7b22ce..3a2abfae 100644 --- a/apps/wei/templates/wei/bus_form.html +++ b/apps/wei/templates/wei/bus_form.html @@ -1,4 +1,4 @@ -{% extends "member/noteowner_detail.html" %} +{% extends "wei/base.html" %} {% load crispy_forms_tags %} {% load i18n %} diff --git a/apps/wei/templates/wei/busteam_detail.html b/apps/wei/templates/wei/busteam_detail.html index 481e24ea..e262d64f 100644 --- a/apps/wei/templates/wei/busteam_detail.html +++ b/apps/wei/templates/wei/busteam_detail.html @@ -1,4 +1,4 @@ -{% extends "member/noteowner_detail.html" %} +{% extends "wei/base.html" %} {% block profile_info %} {% include "wei/weiclub_info.html" %} diff --git a/apps/wei/templates/wei/busteam_form.html b/apps/wei/templates/wei/busteam_form.html index 4c7b22ce..3a2abfae 100644 --- a/apps/wei/templates/wei/busteam_form.html +++ b/apps/wei/templates/wei/busteam_form.html @@ -1,4 +1,4 @@ -{% extends "member/noteowner_detail.html" %} +{% extends "wei/base.html" %} {% load crispy_forms_tags %} {% load i18n %} diff --git a/apps/wei/templates/wei/survey.html b/apps/wei/templates/wei/survey.html index 36553849..357693fb 100644 --- a/apps/wei/templates/wei/survey.html +++ b/apps/wei/templates/wei/survey.html @@ -1,4 +1,4 @@ -{% extends "member/noteowner_detail.html" %} +{% extends "wei/base.html" %} {% load i18n %} {% load crispy_forms_tags %} diff --git a/apps/wei/templates/wei/survey_closed.html b/apps/wei/templates/wei/survey_closed.html index 28c182ef..719168be 100644 --- a/apps/wei/templates/wei/survey_closed.html +++ b/apps/wei/templates/wei/survey_closed.html @@ -1,4 +1,4 @@ -{% extends "member/noteowner_detail.html" %} +{% extends "wei/base.html" %} {% load i18n %} {% load crispy_forms_tags %} diff --git a/apps/wei/templates/wei/survey_end.html b/apps/wei/templates/wei/survey_end.html index 888290f7..a141a036 100644 --- a/apps/wei/templates/wei/survey_end.html +++ b/apps/wei/templates/wei/survey_end.html @@ -1,4 +1,4 @@ -{% extends "member/noteowner_detail.html" %} +{% extends "wei/base.html" %} {% load i18n %} {% load crispy_forms_tags %} diff --git a/apps/wei/templates/wei/weiclub_detail.html b/apps/wei/templates/wei/weiclub_detail.html index f359933f..4282964c 100644 --- a/apps/wei/templates/wei/weiclub_detail.html +++ b/apps/wei/templates/wei/weiclub_detail.html @@ -1,4 +1,4 @@ -{% extends "member/noteowner_detail.html" %} +{% extends "wei/base.html" %} {# Use a fluid-width container #} {% block containertype %}container-fluid{% endblock %} diff --git a/apps/wei/templates/wei/weiclub_form.html b/apps/wei/templates/wei/weiclub_form.html index 64edf798..30af2ea7 100644 --- a/apps/wei/templates/wei/weiclub_form.html +++ b/apps/wei/templates/wei/weiclub_form.html @@ -1,4 +1,4 @@ -{% extends "member/noteowner_detail.html" %} +{% extends "wei/base.html" %} {% load crispy_forms_tags %} {% load i18n %} diff --git a/apps/wei/templates/wei/weimembership_form.html b/apps/wei/templates/wei/weimembership_form.html index 9a1a4d97..ba4401ef 100644 --- a/apps/wei/templates/wei/weimembership_form.html +++ b/apps/wei/templates/wei/weimembership_form.html @@ -1,4 +1,4 @@ -{% extends "member/noteowner_detail.html" %} +{% extends "wei/base.html" %} {% load crispy_forms_tags %} {% load i18n %} {% load pretty_money %} diff --git a/apps/wei/templates/wei/weimembership_list.html b/apps/wei/templates/wei/weimembership_list.html index d058211f..e0ed72fa 100644 --- a/apps/wei/templates/wei/weimembership_list.html +++ b/apps/wei/templates/wei/weimembership_list.html @@ -1,4 +1,4 @@ -{% extends "member/noteowner_detail.html" %} +{% extends "wei/base.html" %} {% load i18n %} {% load render_table from django_tables2 %} diff --git a/apps/wei/templates/wei/weiregistration_confirm_delete.html b/apps/wei/templates/wei/weiregistration_confirm_delete.html index 51bfc030..68d9c4a3 100644 --- a/apps/wei/templates/wei/weiregistration_confirm_delete.html +++ b/apps/wei/templates/wei/weiregistration_confirm_delete.html @@ -1,4 +1,4 @@ -{% extends "member/noteowner_detail.html" %} +{% extends "wei/base.html" %} {% load i18n %} {% load crispy_forms_tags %} diff --git a/apps/wei/templates/wei/weiregistration_form.html b/apps/wei/templates/wei/weiregistration_form.html index 06a14be5..5bec2c0f 100644 --- a/apps/wei/templates/wei/weiregistration_form.html +++ b/apps/wei/templates/wei/weiregistration_form.html @@ -1,4 +1,4 @@ -{% extends "member/noteowner_detail.html" %} +{% extends "wei/base.html" %} {% load i18n %} {% load crispy_forms_tags %} diff --git a/apps/wei/templates/wei/weiregistration_list.html b/apps/wei/templates/wei/weiregistration_list.html index 88c217aa..0fa8ef0f 100644 --- a/apps/wei/templates/wei/weiregistration_list.html +++ b/apps/wei/templates/wei/weiregistration_list.html @@ -1,4 +1,4 @@ -{% extends "member/noteowner_detail.html" %} +{% extends "wei/base.html" %} {% load i18n %} {% load render_table from django_tables2 %} diff --git a/note_kfet/templates/400.html b/note_kfet/templates/400.html index 35606525..8b96e817 100644 --- a/note_kfet/templates/400.html +++ b/note_kfet/templates/400.html @@ -1,8 +1,23 @@ {% extends "base.html" %} - +{% comment %} +SPDX-License-Identifier: GPL-3.0-or-later +{% endcomment %} {% load i18n %} +{% block contenttitle %}{% endblock %} {% block content %} -

{% trans "Bad request" %}

- {% blocktrans %}Sorry, your request was bad. Don't know what could be wrong. An email has been sent to webmasters with the details of the error. You can now drink a coke.{% endblocktrans %} +
+

+ {% trans "Bad request" %} +

+
+

+ {% blocktrans trimmed %} + Sorry, your request was bad. Don't know what could be wrong. + An email has been sent to webmasters with the details of the error. + You can now drink a coke. + {% endblocktrans %} +

+
+
{% endblock %} \ No newline at end of file diff --git a/note_kfet/templates/403.html b/note_kfet/templates/403.html index 317865f2..10199043 100644 --- a/note_kfet/templates/403.html +++ b/note_kfet/templates/403.html @@ -1,13 +1,20 @@ {% extends "base.html" %} - +{% comment %} +SPDX-License-Identifier: GPL-3.0-or-later +{% endcomment %} {% load i18n %} +{% block contenttitle %}{% endblock %} {% block content %} -

{% trans "Permission denied" %}

- {% blocktrans %}You don't have the right to perform this request.{% endblocktrans %} - {% if exception %} -
- {% trans "Exception message:" %} {{ exception }} -
- {% endif %} +
+

+ {% trans "Permission denied" %} +

+
+

{% blocktrans %}You don't have the right to perform this request.{% endblocktrans %}

+ {% if exception %} +

{% trans "Exception message:" %} {{ exception }}

+ {% endif %} +
+
{% endblock %} \ No newline at end of file diff --git a/note_kfet/templates/404.html b/note_kfet/templates/404.html index 8477f914..435bb7ec 100644 --- a/note_kfet/templates/404.html +++ b/note_kfet/templates/404.html @@ -1,13 +1,24 @@ {% extends "base.html" %} - +{% comment %} +SPDX-License-Identifier: GPL-3.0-or-later +{% endcomment %} {% load i18n %} +{% block contenttitle %}{% endblock %} {% block content %} -

{% trans "Page not found" %}

- {% blocktrans %}The requested path {{ request_path }} was not found on the server.{% endblocktrans %} - {% if exception != "Resolver404" %} -
- {% trans "Exception message:" %} {{ exception }} -
- {% endif %} +
+

+ {% trans "Page not found" %} +

+
+

+ {% blocktrans trimmed %} + The requested path {{ request_path }} was not found on the server. + {% endblocktrans %} +

+ {% if exception != "Resolver404" %} +

{% trans "Exception message:" %} {{ exception }}

+ {% endif %} +
+
{% endblock %} \ No newline at end of file diff --git a/note_kfet/templates/500.html b/note_kfet/templates/500.html index 50b62bc2..ba4b5875 100644 --- a/note_kfet/templates/500.html +++ b/note_kfet/templates/500.html @@ -1,8 +1,23 @@ {% extends "base.html" %} - +{% comment %} +SPDX-License-Identifier: GPL-3.0-or-later +{% endcomment %} {% load i18n %} +{% block contenttitle %}{% endblock %} {% block content %} -

{% trans "Server error" %}

- {% blocktrans %}Sorry, an error occurred when processing your request. An email has been sent to webmasters with the detail of the error, and this will be fixed soon. You can now drink a beer.{% endblocktrans %} +
+

+ {% trans "Server error" %} +

+
+

+ {% blocktrans trimmed %} + Sorry, an error occurred when processing your request. + An email has been sent to webmasters with the detail of the error, + and this will be fixed soon. You can now drink a beer. + {% endblocktrans %} +

+
+
{% endblock %} \ No newline at end of file