mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-04-27 02:58:40 +02:00
feat: first batch of work
This commit is contained in:
@@ -5,13 +5,17 @@
|
||||
{% block title %}{% translate 'Add quick transaction' %}{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<div class="tw:menu tw:menu-vertical tw:bg-base-100 tw:w-full">
|
||||
{% for qt in quick_transactions %}
|
||||
<a hx-get="{% url 'quick_transaction_add_as_transaction' quick_transaction_id=qt.id %}"
|
||||
class="tw:menu-item {% if qt.type == 'EX' %}tw:text-red-400!{% else %}tw:text-green-400!{% endif %}">{{ qt.name }}</a>
|
||||
{% empty %}
|
||||
<c-msg.empty title="{% translate "Nothing to see here..." %}" remove-padding></c-msg.empty>
|
||||
{% endfor %}
|
||||
<div class="w-full">
|
||||
{% if quick_transactions %}
|
||||
<ul class="menu bg-base-100 w-full menu-lg">
|
||||
{% for qt in quick_transactions %}
|
||||
<li><a hx-get="{% url 'quick_transaction_add_as_transaction' quick_transaction_id=qt.id %}"
|
||||
class="menu-item {% if qt.type == 'EX' %}text-error{% else %}text-success{% endif %}">{{ qt.name }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
<c-msg.empty title="{% translate "Nothing to see here..." %}" remove-padding></c-msg.empty>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user