From 359e6b4ce2fc2868ea6a777cd92cb46010ed040f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Sch=C3=A4fer?= Date: Mon, 22 Mar 2021 17:01:53 +0100 Subject: [PATCH 1/4] Use tertiary style for "back" buttons This allows us to have two levels of emphasis for the actual form buttons and is also in line with the global "Log out" navigational button. --- snikket_web/templates/admin_delete_user.html | 2 +- snikket_web/templates/admin_edit_circle.html | 2 +- snikket_web/templates/admin_edit_invite.html | 4 +- snikket_web/templates/user_logout.html | 2 +- snikket_web/templates/user_passwd.html | 2 +- snikket_web/templates/user_profile.html | 2 +- snikket_web/translations/messages.pot | 72 ++++++++++---------- 7 files changed, 43 insertions(+), 43 deletions(-) diff --git a/snikket_web/templates/admin_delete_user.html b/snikket_web/templates/admin_delete_user.html index 941418c..21bb8c5 100644 --- a/snikket_web/templates/admin_delete_user.html +++ b/snikket_web/templates/admin_delete_user.html @@ -16,7 +16,7 @@

{% trans %}The user and their data will be deleted irrevocably, permanently and immediately upon pushing the below button. There is no way back!{% endtrans %}

{% endcall %}
- {%- call standard_button("back", url_for(".index"), class="secondary") %}{% trans %}Back{% endtrans %}{% endcall -%} + {%- call standard_button("back", url_for(".index"), class="tertiary") %}{% trans %}Back{% endtrans %}{% endcall -%} {%- call form_button("delete", form.action_delete, class="primary danger") %}{% endcall -%}
diff --git a/snikket_web/templates/admin_edit_circle.html b/snikket_web/templates/admin_edit_circle.html index ec26fd1..a629343 100644 --- a/snikket_web/templates/admin_edit_circle.html +++ b/snikket_web/templates/admin_edit_circle.html @@ -40,7 +40,7 @@ {%- endif -%}
- {%- call standard_button("back", url_for(".circles"), class="secondary") -%} + {%- call standard_button("back", url_for(".circles"), class="tertiary") -%} {% trans %}Return to circle list{% endtrans %} {%- endcall -%} {%- call form_button("done", form.action_save, class="primary") %}{% endcall -%} diff --git a/snikket_web/templates/admin_edit_invite.html b/snikket_web/templates/admin_edit_invite.html index 4da7ea0..2b20998 100644 --- a/snikket_web/templates/admin_edit_invite.html +++ b/snikket_web/templates/admin_edit_invite.html @@ -44,10 +44,10 @@
{{ invite.created_at | format_date }}
- {%- call form_button("remove_link", form.action_revoke, class="secondary danger") %}{% endcall -%} - {%- call standard_button("back", url_for(".invitations"), class="primary") %} + {%- call standard_button("back", url_for(".invitations"), class="tertiary") %} {% trans %}Return to invitation list{% endtrans %} {%- endcall %} + {%- call form_button("remove_link", form.action_revoke, class="primary danger") %}{% endcall -%}
diff --git a/snikket_web/templates/user_logout.html b/snikket_web/templates/user_logout.html index a0e3dbd..d845ebe 100644 --- a/snikket_web/templates/user_logout.html +++ b/snikket_web/templates/user_logout.html @@ -6,7 +6,7 @@

{% trans %}Click below to log yourself out of the web portal. This does not affect any other connected devices.{% endtrans %}

{{ form.csrf_token }}
- {%- call standard_button("back", url_for("user.index"), class="secondary") -%} + {%- call standard_button("back", url_for("user.index"), class="tertiary") -%} {% trans %}Back{% endtrans %} {%- endcall -%} {%- call form_button("logout", form.action_signout, class="primary") %}{% endcall -%} diff --git a/snikket_web/templates/user_passwd.html b/snikket_web/templates/user_passwd.html index c000495..2a0005d 100644 --- a/snikket_web/templates/user_passwd.html +++ b/snikket_web/templates/user_passwd.html @@ -24,7 +24,7 @@

{% trans %}After changing your password, you will have to enter the new password on all of your devices.{% endtrans %}

- {%- call standard_button("back", url_for('.index'), class="secondary") %}{% trans %}Back{% endtrans %}{% endcall -%} + {%- call standard_button("back", url_for('.index'), class="tertiary") %}{% trans %}Back{% endtrans %}{% endcall -%} {%- call custom_form_button("passwd", "", "", class="primary") -%} {% trans %}Change password{% endtrans %} {%- endcall -%} diff --git a/snikket_web/templates/user_profile.html b/snikket_web/templates/user_profile.html index cced91b..dd69ec3 100644 --- a/snikket_web/templates/user_profile.html +++ b/snikket_web/templates/user_profile.html @@ -29,7 +29,7 @@
- {%- call standard_button("back", url_for('.index'), class="secondary") %}{% trans %}Back{% endtrans %}{% endcall -%} + {%- call standard_button("back", url_for('.index'), class="tertiary") %}{% trans %}Back{% endtrans %}{% endcall -%} {%- call form_button("done", form.action_save, class="primary") %}{% endcall -%}