Renamed the view accounts.show to accounts.detail in the accounting application.

This commit is contained in:
依瑪貓 2020-08-08 17:05:24 +08:00
parent 9961a34e84
commit 340ba6f855
3 changed files with 3 additions and 3 deletions

View File

@ -141,7 +141,7 @@ First written: 2020/8/8
<div class="col-sm-2">{{ _("Child Accounts:")|force_escape }}</div> <div class="col-sm-2">{{ _("Child Accounts:")|force_escape }}</div>
<div class="col-sm-10"> <div class="col-sm-10">
{% for child in account.child_set.all %} {% for child in account.child_set.all %}
<a class="btn btn-primary" type="role" href="{% url_with_return "accounting:accounts.show" child %}"> <a class="btn btn-primary" type="role" href="{% url_with_return "accounting:accounts.detail" child %}">
{{ child }} {{ child }}
</a> </a>
{% empty %} {% empty %}

View File

@ -67,7 +67,7 @@ First written: 2020/8/7
{% endif %} {% endif %}
</td> </td>
<td class="actions"> <td class="actions">
<a href="{% url "accounting:accounts.show" account %}" class="btn btn-info" role="button"> <a href="{% url "accounting:accounts.detail" account %}" class="btn btn-info" role="button">
<i class="fas fa-eye"></i> <i class="fas fa-eye"></i>
<span class="d-none d-sm-inline">{{ _("View")|force_escape }}</span> <span class="d-none d-sm-inline">{{ _("View")|force_escape }}</span>
</a> </a>

View File

@ -101,7 +101,7 @@ urlpatterns = [
path("accounts/options", path("accounts/options",
views.account_options, name="accounts.options"), views.account_options, name="accounts.options"),
path("accounts/<account:account>", path("accounts/<account:account>",
views.AccountView.as_view(), name="accounts.show"), views.AccountView.as_view(), name="accounts.detail"),
# TODO: To be done # TODO: To be done
path("accounts/<account:account>/edit", path("accounts/<account:account>/edit",
mia_core_views.todo, name="accounts.edit"), mia_core_views.todo, name="accounts.edit"),