Restored the "Back" button on the toolbar for the mobile devices. It is still necessary, because the user may get lost in the navigation history.

This commit is contained in:
依瑪貓 2023-03-22 02:28:29 +08:00
parent 61ee08fda2
commit ccbdc779ac
9 changed files with 18 additions and 18 deletions

View File

@ -26,9 +26,9 @@ First written: 2023/1/31
{% block content %} {% block content %}
<div class="mb-3 accounting-toolbar"> <div class="mb-3 accounting-toolbar">
<a class="btn btn-primary d-none d-md-inline" href="{{ url_for("accounting.account.list")|accounting_or_next }}"> <a class="btn btn-primary" href="{{ url_for("accounting.account.list")|accounting_or_next }}">
<i class="fa-solid fa-circle-chevron-left"></i> <i class="fa-solid fa-circle-chevron-left"></i>
{{ A_("Back") }} <span class="d-none d-md-inline">{{ A_("Back") }}</span>
</a> </a>
{% if accounting_can_edit() %} {% if accounting_can_edit() %}
<a class="btn btn-primary d-none d-md-inline" href="{{ url_for("accounting.account.edit", account=obj)|accounting_inherit_next }}"> <a class="btn btn-primary d-none d-md-inline" href="{{ url_for("accounting.account.edit", account=obj)|accounting_inherit_next }}">

View File

@ -27,10 +27,10 @@ First written: 2023/2/1
{% block content %} {% block content %}
<div class="mb-3 d-none d-md-block"> <div class="mb-3 accounting-toolbar">
<a class="btn btn-primary" role="button" href="{% block back_url %}{% endblock %}"> <a class="btn btn-primary" role="button" href="{% block back_url %}{% endblock %}">
<i class="fa-solid fa-circle-chevron-left"></i> <i class="fa-solid fa-circle-chevron-left"></i>
{{ A_("Back") }} <span class="d-none d-md-inline">{{ A_("Back") }}</span>
</a> </a>
</div> </div>

View File

@ -30,10 +30,10 @@ First written: 2023/2/2
{% block content %} {% block content %}
<div class="mb-3 d-none d-md-block"> <div class="mb-3 accounting-toolbar">
<a class="btn btn-primary" href="{{ url_for("accounting.account.list")|accounting_or_next }}"> <a class="btn btn-primary" role="button" href="{{ url_for("accounting.account.list")|accounting_or_next }}">
<i class="fa-solid fa-circle-chevron-left"></i> <i class="fa-solid fa-circle-chevron-left"></i>
{{ A_("Back") }} <span class="d-none d-md-inline">{{ A_("Back") }}</span>
</a> </a>
</div> </div>

View File

@ -25,10 +25,10 @@ First written: 2023/2/1
{% block content %} {% block content %}
<div class="mb-3 d-none d-md-block"> <div class="mb-3 accounting-toolbar">
<a class="btn btn-primary" href="{{ url_for("accounting.account.list")|accounting_or_next }}"> <a class="btn btn-primary" href="{{ url_for("accounting.account.list")|accounting_or_next }}">
<i class="fa-solid fa-circle-chevron-left"></i> <i class="fa-solid fa-circle-chevron-left"></i>
{{ A_("Back") }} <span class="d-none d-md-inline">{{ A_("Back") }}</span>
</a> </a>
</div> </div>

View File

@ -26,9 +26,9 @@ First written: 2023/2/6
{% block content %} {% block content %}
<div class="mb-3 accounting-toolbar"> <div class="mb-3 accounting-toolbar">
<a class="btn btn-primary d-none d-md-inline" href="{{ url_for("accounting.currency.list")|accounting_or_next }}"> <a class="btn btn-primary" href="{{ url_for("accounting.currency.list")|accounting_or_next }}">
<i class="fa-solid fa-circle-chevron-left"></i> <i class="fa-solid fa-circle-chevron-left"></i>
{{ A_("Back") }} <span class="d-none d-md-inline">{{ A_("Back") }}</span>
</a> </a>
{% if accounting_can_edit() %} {% if accounting_can_edit() %}
<a class="btn btn-primary d-none d-md-inline" href="{{ url_for("accounting.currency.edit", currency=obj)|accounting_inherit_next }}"> <a class="btn btn-primary d-none d-md-inline" href="{{ url_for("accounting.currency.edit", currency=obj)|accounting_inherit_next }}">

View File

@ -27,10 +27,10 @@ First written: 2023/2/6
{% block content %} {% block content %}
<div class="mb-3 d-none d-md-block"> <div class="mb-3 accounting-toolbar">
<a class="btn btn-primary" role="button" href="{% block back_url %}{% endblock %}"> <a class="btn btn-primary" role="button" href="{% block back_url %}{% endblock %}">
<i class="fa-solid fa-circle-chevron-left"></i> <i class="fa-solid fa-circle-chevron-left"></i>
{{ A_("Back") }} <span class="d-none d-md-inline">{{ A_("Back") }}</span>
</a> </a>
</div> </div>

View File

@ -26,9 +26,9 @@ First written: 2023/2/26
{% block content %} {% block content %}
<div class="mb-3 accounting-toolbar"> <div class="mb-3 accounting-toolbar">
<a class="btn btn-primary d-none d-md-inline" href="{{ url_for("accounting.report.default")|accounting_or_next }}"> <a class="btn btn-primary" href="{{ url_for("accounting.report.default")|accounting_or_next }}">
<i class="fa-solid fa-circle-chevron-left"></i> <i class="fa-solid fa-circle-chevron-left"></i>
{{ A_("Back") }} <span class="d-none d-md-inline">{{ A_("Back") }}</span>
</a> </a>
{% if accounting_can_edit() %} {% if accounting_can_edit() %}
<a class="btn btn-primary d-none d-md-inline" href="{{ url_for("accounting.journal-entry.edit", journal_entry=obj)|accounting_inherit_next }}"> <a class="btn btn-primary d-none d-md-inline" href="{{ url_for("accounting.journal-entry.edit", journal_entry=obj)|accounting_inherit_next }}">

View File

@ -32,7 +32,7 @@ First written: 2023/2/26
{% block content %} {% block content %}
<div class="mb-3 d-none d-md-block"> <div class="mb-3 accounting-toolbar">
<a class="btn btn-primary" role="button" href="{% block back_url %}{% endblock %}"> <a class="btn btn-primary" role="button" href="{% block back_url %}{% endblock %}">
<i class="fa-solid fa-circle-chevron-left"></i> <i class="fa-solid fa-circle-chevron-left"></i>
<span class="d-none d-md-inline">{{ A_("Back") }}</span> <span class="d-none d-md-inline">{{ A_("Back") }}</span>

View File

@ -30,10 +30,10 @@ First written: 2023/2/26
{% block content %} {% block content %}
<div class="mb-3 d-none d-md-block"> <div class="mb-3 accounting-toolbar">
<a class="btn btn-primary" href="{{ url_for("accounting.report.default")|accounting_or_next }}"> <a class="btn btn-primary" href="{{ url_for("accounting.report.default")|accounting_or_next }}">
<i class="fa-solid fa-circle-chevron-left"></i> <i class="fa-solid fa-circle-chevron-left"></i>
{{ A_("Back") }} <span class="d-none d-md-inline">{{ A_("Back") }}</span>
</a> </a>
</div> </div>