Renamed the append_next, inherit_next, and or_next template filters to accounting_append_next, accounting_inherit_next, and accounting_or_next, to avoid name conflict.
This commit is contained in:
		| @@ -26,17 +26,17 @@ First written: 2023/1/31 | ||||
| {% block content %} | ||||
|  | ||||
| <div class="btn-group mb-3"> | ||||
|   <a class="btn btn-primary" href="{{ url_for("accounting.account.list")|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> | ||||
|     {{ A_("Back") }} | ||||
|   </a> | ||||
|   {% if can_edit_accounting() %} | ||||
|     <a class="btn btn-primary d-none d-md-inline" href="{{ url_for("accounting.account.edit", account=obj)|inherit_next }}"> | ||||
|     <a class="btn btn-primary d-none d-md-inline" href="{{ url_for("accounting.account.edit", account=obj)|accounting_inherit_next }}"> | ||||
|       <i class="fa-solid fa-gear"></i> | ||||
|       {{ A_("Settings") }} | ||||
|     </a> | ||||
|   {% endif %} | ||||
|   <a class="btn btn-primary" href="{{ url_for("accounting.account.order", base=obj.base)|append_next }}"> | ||||
|   <a class="btn btn-primary" href="{{ url_for("accounting.account.order", base=obj.base)|accounting_append_next }}"> | ||||
|     <i class="fa-solid fa-bars-staggered"></i> | ||||
|     {{ A_("Order") }} | ||||
|   </a> | ||||
| @@ -50,7 +50,7 @@ First written: 2023/1/31 | ||||
|  | ||||
| {% if can_edit_accounting() %} | ||||
|   <div class="d-md-none material-fab"> | ||||
|     <a class="btn btn-primary" href="{{ url_for("accounting.account.edit", account=obj)|inherit_next }}"> | ||||
|     <a class="btn btn-primary" href="{{ url_for("accounting.account.edit", account=obj)|accounting_inherit_next }}"> | ||||
|       <i class="fa-solid fa-pen-to-square"></i> | ||||
|     </a> | ||||
|   </div> | ||||
|   | ||||
| @@ -23,6 +23,6 @@ First written: 2023/2/1 | ||||
|  | ||||
| {% block header %}{% block title %}{{ A_("%(account)s Settings", account=account) }}{% endblock %}{% endblock %} | ||||
|  | ||||
| {% block back_url %}{{ url_for("accounting.account.detail", account=account)|inherit_next }}{% endblock %} | ||||
| {% block back_url %}{{ url_for("accounting.account.detail", account=account)|accounting_inherit_next }}{% endblock %} | ||||
|  | ||||
| {% block action_url %}{{ url_for("accounting.account.update", account=account) }}{% endblock %} | ||||
|   | ||||
| @@ -27,7 +27,7 @@ First written: 2023/1/30 | ||||
|  | ||||
| <div class="btn-group mb-2"> | ||||
|   {% if can_edit_accounting() %} | ||||
|     <a class="btn btn-primary text-nowrap d-none d-md-block" href="{{ url_for("accounting.account.create")|append_next }}"> | ||||
|     <a class="btn btn-primary text-nowrap d-none d-md-block" href="{{ url_for("accounting.account.create")|accounting_append_next }}"> | ||||
|       <i class="fa-solid fa-plus"></i> | ||||
|       {{ A_("New") }} | ||||
|     </a> | ||||
| @@ -45,7 +45,7 @@ First written: 2023/1/30 | ||||
|  | ||||
| {% if can_edit_accounting() %} | ||||
|   <div class="d-md-none material-fab"> | ||||
|     <a class="btn btn-primary" href="{{ url_for("accounting.account.create")|append_next }}"> | ||||
|     <a class="btn btn-primary" href="{{ url_for("accounting.account.create")|accounting_append_next }}"> | ||||
|       <i class="fa-solid fa-plus"></i> | ||||
|     </a> | ||||
|   </div> | ||||
| @@ -56,7 +56,7 @@ First written: 2023/1/30 | ||||
|  | ||||
|   <div class="list-group"> | ||||
|   {% for item in list %} | ||||
|     <a class="list-group-item list-group-item-action" href="{{ url_for("accounting.account.detail", account=item)|append_next }}"> | ||||
|     <a class="list-group-item list-group-item-action" href="{{ url_for("accounting.account.detail", account=item)|accounting_append_next }}"> | ||||
|       {{ item }} | ||||
|       {% if item.is_offset_needed %} | ||||
|         <span class="badge rounded-pill bg-info">{{ A_("Offset needed") }}</span> | ||||
|   | ||||
| @@ -31,7 +31,7 @@ First written: 2023/2/2 | ||||
| {% block content %} | ||||
|  | ||||
| <div class="btn-group mb-3"> | ||||
|   <a class="btn btn-primary" href="{{ url_for("accounting.account.list")|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> | ||||
|     {{ A_("Back") }} | ||||
|   </a> | ||||
|   | ||||
| @@ -26,7 +26,7 @@ First written: 2023/2/1 | ||||
| {% block content %} | ||||
|  | ||||
| <div class="btn-group mb-3"> | ||||
|   <a class="btn btn-primary" href="{{ url_for("accounting.account.list")|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> | ||||
|     {{ A_("Back") }} | ||||
|   </a> | ||||
| @@ -38,7 +38,7 @@ First written: 2023/2/1 | ||||
|   {% if obj.accounts %} | ||||
|     <div> | ||||
|     {% for account in obj.accounts %} | ||||
|       <a class="btn btn-primary" href="{{ url_for("accounting.account.detail", account=account)|append_next }}"> | ||||
|       <a class="btn btn-primary" href="{{ url_for("accounting.account.detail", account=account)|accounting_append_next }}"> | ||||
|         {{ account }} | ||||
|       </a> | ||||
|     {% endfor %} | ||||
|   | ||||
| @@ -42,7 +42,7 @@ First written: 2023/1/26 | ||||
|  | ||||
|   <div class="list-group"> | ||||
|     {% for item in list %} | ||||
|       <a class="list-group-item list-group-item-action" href="{{ url_for("accounting.base-account.detail", account=item)|append_next }}"> | ||||
|       <a class="list-group-item list-group-item-action" href="{{ url_for("accounting.base-account.detail", account=item)|accounting_append_next }}"> | ||||
|         {{ item }} | ||||
|       </a> | ||||
|     {% endfor %} | ||||
|   | ||||
| @@ -26,12 +26,12 @@ First written: 2023/2/6 | ||||
| {% block content %} | ||||
|  | ||||
| <div class="btn-group mb-3"> | ||||
|   <a class="btn btn-primary" href="{{ url_for("accounting.currency.list")|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> | ||||
|     {{ A_("Back") }} | ||||
|   </a> | ||||
|   {% if can_edit_accounting() %} | ||||
|     <a class="btn btn-primary d-none d-md-inline" href="{{ url_for("accounting.currency.edit", currency=obj)|inherit_next }}"> | ||||
|     <a class="btn btn-primary d-none d-md-inline" href="{{ url_for("accounting.currency.edit", currency=obj)|accounting_inherit_next }}"> | ||||
|       <i class="fa-solid fa-gear"></i> | ||||
|       {{ A_("Settings") }} | ||||
|     </a> | ||||
| @@ -46,7 +46,7 @@ First written: 2023/2/6 | ||||
|  | ||||
| {% if can_edit_accounting() %} | ||||
|   <div class="d-md-none material-fab"> | ||||
|     <a class="btn btn-primary" href="{{ url_for("accounting.currency.edit", currency=obj)|inherit_next }}"> | ||||
|     <a class="btn btn-primary" href="{{ url_for("accounting.currency.edit", currency=obj)|accounting_inherit_next }}"> | ||||
|       <i class="fa-solid fa-pen-to-square"></i> | ||||
|     </a> | ||||
|   </div> | ||||
|   | ||||
| @@ -23,7 +23,7 @@ First written: 2023/2/6 | ||||
|  | ||||
| {% block header %}{% block title %}{{ A_("%(currency)s Settings", currency=currency) }}{% endblock %}{% endblock %} | ||||
|  | ||||
| {% block back_url %}{{ url_for("accounting.currency.detail", currency=currency)|inherit_next }}{% endblock %} | ||||
| {% block back_url %}{{ url_for("accounting.currency.detail", currency=currency)|accounting_inherit_next }}{% endblock %} | ||||
|  | ||||
| {% block action_url %}{{ url_for("accounting.currency.update", currency=currency) }}{% endblock %} | ||||
|  | ||||
|   | ||||
| @@ -27,7 +27,7 @@ First written: 2023/2/6 | ||||
|  | ||||
| <div class="btn-group mb-2"> | ||||
|   {% if can_edit_accounting() %} | ||||
|     <a class="btn btn-primary text-nowrap d-none d-md-block" href="{{ url_for("accounting.currency.create")|append_next }}"> | ||||
|     <a class="btn btn-primary text-nowrap d-none d-md-block" href="{{ url_for("accounting.currency.create")|accounting_append_next }}"> | ||||
|       <i class="fa-solid fa-plus"></i> | ||||
|       {{ A_("New") }} | ||||
|     </a> | ||||
| @@ -45,7 +45,7 @@ First written: 2023/2/6 | ||||
|  | ||||
| {% if can_edit_accounting() %} | ||||
|   <div class="d-md-none material-fab"> | ||||
|     <a class="btn btn-primary" href="{{ url_for("accounting.currency.create")|append_next }}"> | ||||
|     <a class="btn btn-primary" href="{{ url_for("accounting.currency.create")|accounting_append_next }}"> | ||||
|       <i class="fa-solid fa-plus"></i> | ||||
|     </a> | ||||
|   </div> | ||||
| @@ -56,7 +56,7 @@ First written: 2023/2/6 | ||||
|  | ||||
|   <div class="list-group"> | ||||
|   {% for item in list %} | ||||
|     <a class="list-group-item list-group-item-action" href="{{ url_for("accounting.currency.detail", currency=item)|append_next }}"> | ||||
|     <a class="list-group-item list-group-item-action" href="{{ url_for("accounting.currency.detail", currency=item)|accounting_append_next }}"> | ||||
|       {{ item }} | ||||
|     </a> | ||||
|   {% endfor %} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user