some changes

This commit is contained in:
gitea 2025-01-15 13:14:31 +00:00
parent e02ae8f010
commit a956e8485f
2 changed files with 9 additions and 55 deletions

View File

@ -75,17 +75,14 @@
<td>{% if tx.tx_type == 'credit' %}${{ tx.amount }}{% endif %}</td>
<td>{{ tx.description }}</td>
<td>{{ tx.journal_entry.entity_unit.name }}</td>
<td>
<div class="dropdown is-right is-hoverable" id="tx-action-{{ tx.uuid }}">
<div class="dropdown-trigger">
<button class="button is-small is-rounded is-outlined"
aria-haspopup="true"
aria-controls="dropdown-menu">
<span>{% trans 'Actions' %}</span>
<span class="icon is-small fas fa-arrow-down"></span>
</button>
</div>
<div class="dropdown-menu" id="dropdown-menu-{{ tx.uuid }}" role="menu">
<td>
<div class="btn-reveal-trigger position-static">
<button class="btn btn-sm dropdown-toggle dropdown-caret-none transition-none btn-reveal fs-10" type="button" data-bs-toggle="dropdown" data-boundary="window" aria-haspopup="true" aria-expanded="false" data-bs-reference="parent"><span class="fas fa-ellipsis-h fs-10"></span></button>
<div class="dropdown-menu dropdown-menu-end py-2"><a class="dropdown-item" href="{% url 'payment_details' tx.journal_entry.pk %}">{% trans "view"|capfirst %}</a>
</div>
{# TODO: These URLs need to be replaced with the future mode method that generates it. #}
</div>
{% comment %} <div class="dropdown-content">
{# TODO: These URLs need to be replaced with the future mode method that generates it. #}
<a href="{% url 'django_ledger:je-detail' entity_slug=entity_slug ledger_pk=tx.journal_entry.ledger.uuid je_pk=tx.journal_entry.uuid %}"
@ -98,7 +95,7 @@
class="dropdown-item has-text-info">View Invoice</a>
{% endif %}
</div> {% endcomment %}
</div>
</div>
</td>
</tr>

View File

@ -177,49 +177,6 @@
</div>
{% endif %}
</main>
<div class="row mt-4 mx-4">
<div class="d-flex justify-content-between mb-2 p-6">
<span></span>
<h3 class="text-center">{% trans "Chart of Accounts" %}</h3>
<a href="{% url 'account_create' %}" class="btn btn-sm btn-success ">{% trans "Add Account" %}</a>
</div>
<div class="mx-n4 px-4 mx-lg-n6 px-lg-6 bg-body-emphasis pt-7 border-y">
<div class="table-responsive mx-n1 px-1 scrollbar">
<table class="table fs-9 mb-0 border-top border-translucent">
<thead>
<tr>
<th class="sort white-space-nowrap align-middle" scope="col">{% trans "Name" %}</th>
<th class="sort white-space-nowrap align-middle" scope="col">{% trans "Account Number" %}</th>
<th class="sort white-space-nowrap align-middle" scope="col">{% trans "Balance Type" %}</th>
<th class="sort white-space-nowrap align-middle" scope="col">{% trans "Active" %}</th>
<th class="sort white-space-nowrap align-middle" scope="col">{% trans "Action" %}</th>
</tr>
</thead>
<tbody class="list">
{% for account in accounts %}
<tr class="hover-actions-trigger btn-reveal-trigger position-static">
<td class="align-middle product white-space-nowrap">{{ account.name }}</td>
<td class="align-middle product white-space-nowrap py-0">{{ account.code }}</td>
<td class="align-middle product white-space-nowrap py-0">{{ account.balance_type|capfirst }}</td>
<td class="align-middle product white-space-nowrap py-0">{{ account.active }}</td>
<td class="">
<a href="{% url 'account_update' account.pk %}"
class="btn btn-sm btn-phoenix-success">
{% trans "Update" %}
</a>
</td>
</tr>
{% empty %}
<tr>
<td colspan="6" class="text-center">{% trans "No Invoice Found" %}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<div class="d-flex justify-content-center">
</div>
</div>
</div>
{% endblock %}