Skip to content

Commit

Permalink
Add some back buttons to ease navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostwheel42 committed Jan 21, 2024
1 parent c0ce34d commit 821c7d3
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/admin/mailu/ui/templates/admin/create.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
{% trans %}Add a global administrator{% endtrans %}
{%- endblock %}

{%- block main_action %}
<a class="btn btn-primary float-right" href="{{ url_for('.admin_list') }}">{% trans %}Back to{% endtrans %} {% trans %}Global administrators{% endtrans %}</a>
{%- endblock %}

{%- block content %}
{%- call macros.card() %}
<form class="form" method="post" role="form">
Expand Down
4 changes: 4 additions & 0 deletions core/admin/mailu/ui/templates/alias/create.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
{{ domain }}
{%- endblock %}

{%- block main_action %}
<a class="btn btn-primary float-right" href="{{ url_for('.alias_list', domain_name=domain.name) }}">{% trans %}Back to{% endtrans %} {% trans %}Alias list{% endtrans %}</a>
{%- endblock %}

{%- block content %}
{%- call macros.card() %}
<form class="form" method="post" role="form">
Expand Down
4 changes: 4 additions & 0 deletions core/admin/mailu/ui/templates/alternative/create.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@
{%- block subtitle %}
{{ domain }}
{%- endblock %}

{%- block main_action %}
<a class="btn btn-primary float-right" href="{{ url_for('.alternative_list', domain_name=domain.name) }}">{% trans %}Back to{% endtrans %} {% trans %}Alternative domain list{% endtrans %}</a>
{%- endblock %}
4 changes: 4 additions & 0 deletions core/admin/mailu/ui/templates/domain/create.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
{% trans %}New domain{% endtrans %}
{%- endblock %}

{%- block main_action %}
<a class="btn btn-primary float-right" href="{{ url_for('.domain_list') }}">{% trans %}Back to{% endtrans %} {% trans %}Domain list{% endtrans %}</a>
{%- endblock %}

{%- block content %}
{%- call macros.card() %}
<form class="form" method="post" role="form">
Expand Down
4 changes: 4 additions & 0 deletions core/admin/mailu/ui/templates/fetch/create.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
{{ user }}
{%- endblock %}

{%- block main_action %}
<a class="btn btn-primary float-right" href="{{ url_for('.fetch_list') }}">{% trans %}Back to{% endtrans %} {% trans %}Fetched accounts{% endtrans %}</a>
{%- endblock %}

{%- block content %}
<form class="form" method="post" role="form">
{{ form.hidden_tag() }}
Expand Down
4 changes: 4 additions & 0 deletions core/admin/mailu/ui/templates/manager/create.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
{{ domain }}
{%- endblock %}

{%- block main_action %}
<a class="btn btn-primary float-right" href="{{ url_for('.manager_list', domain_name=domain.name) }}">{% trans %}Back to{% endtrans %} {% trans %}Manager list{% endtrans %}</a>
{%- endblock %}

{%- block content %}
{%- call macros.card() %}
<form class="form" method="post" role="form">
Expand Down
4 changes: 4 additions & 0 deletions core/admin/mailu/ui/templates/relay/create.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@
{%- block title %}
{% trans %}New relay domain{% endtrans %}
{%- endblock %}

{%- block main_action %}
<a class="btn btn-primary float-right" href="{{ url_for('.relay_list') }}">{% trans %}Back to{% endtrans %} {% trans %}Relayed domain list{% endtrans %}</a>
{%- endblock %}
4 changes: 4 additions & 0 deletions core/admin/mailu/ui/templates/token/create.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@
{%- block subtitle %}
{{ user }}
{%- endblock %}

{%- block main_action %}
<a class="btn btn-primary float-right" href="{{ url_for('.token_list') }}">{% trans %}Back to{% endtrans %} {% trans %}Authentication tokens{% endtrans %}</a>
{%- endblock %}
4 changes: 4 additions & 0 deletions core/admin/mailu/ui/templates/user/create.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
{{ domain.name }}
{%- endblock %}

{%- block main_action %}
<a class="btn btn-primary float-right" href="{{ url_for('.user_list', domain_name=domain.name) }}">{% trans %}Back to{% endtrans %} {% trans %}User list{% endtrans %}</a>
{%- endblock %}

{%- block content %}
<form class="form" method="post" role="form">
{{ form.hidden_tag() }}
Expand Down

0 comments on commit 821c7d3

Please sign in to comment.