Revised the add-txn-material-fab.html template to simplify the code to include it.
This commit is contained in:
parent
5c47e63ae3
commit
21b3320e66
@ -39,9 +39,7 @@ First written: 2023/3/7
|
|||||||
{% endwith %}
|
{% endwith %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% with txn_types = report.txn_types %}
|
{% include "accounting/report/include/add-txn-material-fab.html" %}
|
||||||
{% include "accounting/report/include/add-txn-material-fab.html" %}
|
|
||||||
{% endwith %}
|
|
||||||
|
|
||||||
<div class="btn-group btn-actions mb-3 d-md-none">
|
<div class="btn-group btn-actions mb-3 d-md-none">
|
||||||
{% with use_report_chooser = true,
|
{% with use_report_chooser = true,
|
||||||
|
@ -22,13 +22,13 @@ First written: 2023/2/25
|
|||||||
{% if accounting_can_edit() %}
|
{% if accounting_can_edit() %}
|
||||||
<div id="accounting-material-fab-speed-dial" class="d-md-none accounting-material-fab">
|
<div id="accounting-material-fab-speed-dial" class="d-md-none accounting-material-fab">
|
||||||
<div id="accounting-material-fab-speed-dial-actions" class="d-md-none accounting-material-fab-speed-dial-group">
|
<div id="accounting-material-fab-speed-dial-actions" class="d-md-none accounting-material-fab-speed-dial-group">
|
||||||
<a class="btn rounded-pill" href="{{ url_for("accounting.transaction.create", txn_type=txn_types.CASH_EXPENSE)|accounting_append_next }}">
|
<a class="btn rounded-pill" href="{{ url_for("accounting.transaction.create", txn_type=report.txn_types.CASH_EXPENSE)|accounting_append_next }}">
|
||||||
{{ A_("Cash expense") }}
|
{{ A_("Cash expense") }}
|
||||||
</a>
|
</a>
|
||||||
<a class="btn rounded-pill" href="{{ url_for("accounting.transaction.create", txn_type=txn_types.CASH_INCOME)|accounting_append_next }}">
|
<a class="btn rounded-pill" href="{{ url_for("accounting.transaction.create", txn_type=report.txn_types.CASH_INCOME)|accounting_append_next }}">
|
||||||
{{ A_("Cash income") }}
|
{{ A_("Cash income") }}
|
||||||
</a>
|
</a>
|
||||||
<a class="btn rounded-pill" href="{{ url_for("accounting.transaction.create", txn_type=txn_types.TRANSFER)|accounting_append_next }}">
|
<a class="btn rounded-pill" href="{{ url_for("accounting.transaction.create", txn_type=report.txn_types.TRANSFER)|accounting_append_next }}">
|
||||||
{{ A_("Transfer") }}
|
{{ A_("Transfer") }}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -40,9 +40,7 @@ First written: 2023/3/5
|
|||||||
{% endwith %}
|
{% endwith %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% with txn_types = report.txn_types %}
|
{% include "accounting/report/include/add-txn-material-fab.html" %}
|
||||||
{% include "accounting/report/include/add-txn-material-fab.html" %}
|
|
||||||
{% endwith %}
|
|
||||||
|
|
||||||
<div class="btn-group btn-actions mb-3 d-md-none">
|
<div class="btn-group btn-actions mb-3 d-md-none">
|
||||||
{% with use_report_chooser = true,
|
{% with use_report_chooser = true,
|
||||||
|
@ -39,9 +39,7 @@ First written: 2023/3/7
|
|||||||
{% endwith %}
|
{% endwith %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% with txn_types = report.txn_types %}
|
{% include "accounting/report/include/add-txn-material-fab.html" %}
|
||||||
{% include "accounting/report/include/add-txn-material-fab.html" %}
|
|
||||||
{% endwith %}
|
|
||||||
|
|
||||||
<div class="btn-group btn-actions mb-3 d-md-none">
|
<div class="btn-group btn-actions mb-3 d-md-none">
|
||||||
{% with use_report_chooser = true,
|
{% with use_report_chooser = true,
|
||||||
|
@ -38,9 +38,7 @@ First written: 2023/3/4
|
|||||||
{% endwith %}
|
{% endwith %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% with txn_types = report.txn_types %}
|
{% include "accounting/report/include/add-txn-material-fab.html" %}
|
||||||
{% include "accounting/report/include/add-txn-material-fab.html" %}
|
|
||||||
{% endwith %}
|
|
||||||
|
|
||||||
<div class="btn-group btn-actions mb-3 d-md-none">
|
<div class="btn-group btn-actions mb-3 d-md-none">
|
||||||
{% with use_report_chooser = true,
|
{% with use_report_chooser = true,
|
||||||
|
@ -40,9 +40,7 @@ First written: 2023/3/5
|
|||||||
{% endwith %}
|
{% endwith %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% with txn_types = report.txn_types %}
|
{% include "accounting/report/include/add-txn-material-fab.html" %}
|
||||||
{% include "accounting/report/include/add-txn-material-fab.html" %}
|
|
||||||
{% endwith %}
|
|
||||||
|
|
||||||
<div class="btn-group btn-actions mb-3 d-md-none">
|
<div class="btn-group btn-actions mb-3 d-md-none">
|
||||||
{% with use_report_chooser = true,
|
{% with use_report_chooser = true,
|
||||||
|
@ -39,9 +39,7 @@ First written: 2023/3/8
|
|||||||
{% endwith %}
|
{% endwith %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% with txn_types = report.txn_types %}
|
{% include "accounting/report/include/add-txn-material-fab.html" %}
|
||||||
{% include "accounting/report/include/add-txn-material-fab.html" %}
|
|
||||||
{% endwith %}
|
|
||||||
|
|
||||||
<div class="btn-group btn-actions mb-3 d-md-none">
|
<div class="btn-group btn-actions mb-3 d-md-none">
|
||||||
{% with use_report_chooser = true,
|
{% with use_report_chooser = true,
|
||||||
|
@ -39,9 +39,7 @@ First written: 2023/3/5
|
|||||||
{% endwith %}
|
{% endwith %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% with txn_types = report.txn_types %}
|
{% include "accounting/report/include/add-txn-material-fab.html" %}
|
||||||
{% include "accounting/report/include/add-txn-material-fab.html" %}
|
|
||||||
{% endwith %}
|
|
||||||
|
|
||||||
<div class="btn-group btn-actions mb-3 d-md-none">
|
<div class="btn-group btn-actions mb-3 d-md-none">
|
||||||
{% with use_report_chooser = true,
|
{% with use_report_chooser = true,
|
||||||
|
Loading…
Reference in New Issue
Block a user