mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-03-24 02:11:18 +01:00
51 lines
2.2 KiB
HTML
51 lines
2.2 KiB
HTML
{% load i18n %}
|
|
<div class="grid gap-2 grid-cols-1 xl:flex xl:justify-end">
|
|
<div class="grid gap-2 xl:flex flex-wrap xl:justify-center">
|
|
<button class="btn btn-sm btn-outline btn-success"
|
|
hx-get="{% url 'transaction_add' %}"
|
|
hx-target="#generic-offcanvas"
|
|
hx-trigger="click, add_income from:window"
|
|
hx-vals='{"year": {{ year }}, {% if month %}"month": {{ month }},{% endif %} "type": "IN"}'>
|
|
<i class="fa-solid fa-arrow-right-to-bracket me-2"></i>
|
|
{% translate "Income" %}
|
|
</button>
|
|
<button class="btn btn-sm btn-outline btn-error"
|
|
hx-get="{% url 'transaction_add' %}"
|
|
hx-target="#generic-offcanvas"
|
|
hx-trigger="click, add_expense from:window"
|
|
hx-vals='{"year": {{ year }}, {% if month %}"month": {{ month }},{% endif %} "type": "EX"}'>
|
|
<i class="fa-solid fa-arrow-right-from-bracket me-2"></i>
|
|
{% translate "Expense" %}
|
|
</button>
|
|
<button class="btn btn-sm btn-outline btn-warning"
|
|
hx-get="{% url 'installment_plan_add' %}"
|
|
hx-trigger="click, installment from:window"
|
|
hx-target="#generic-offcanvas">
|
|
<i class="fa-solid fa-divide me-2"></i>
|
|
{% translate "Installment" %}
|
|
</button>
|
|
<button class="btn btn-sm btn-outline btn-warning"
|
|
hx-get="{% url 'recurring_transaction_add' %}"
|
|
hx-trigger="click, balance from:window"
|
|
hx-target="#generic-offcanvas">
|
|
<i class="fa-solid fa-repeat me-2"></i>
|
|
{% translate "Recurring" %}
|
|
</button>
|
|
<button class="btn btn-sm btn-outline btn-info"
|
|
hx-get="{% url 'transactions_transfer' %}"
|
|
hx-target="#generic-offcanvas"
|
|
hx-trigger="click, add_transfer from:window"
|
|
hx-vals='{"year": {{ year }} {% if month %}, "month": {{ month }}{% endif %}}'>
|
|
<i class="fa-solid fa-money-bill-transfer me-2"></i>
|
|
{% translate "Transfer" %}
|
|
</button>
|
|
<button class="btn btn-sm btn-outline btn-info"
|
|
hx-get="{% url 'account_reconciliation' %}"
|
|
hx-trigger="click, balance from:window"
|
|
hx-target="#generic-offcanvas">
|
|
<i class="fa-solid fa-scale-balanced me-2"></i>
|
|
{% translate "Balance" %}
|
|
</button>
|
|
</div>
|
|
</div>
|