Fetch account details and display
This commit is contained in:
@@ -219,6 +219,40 @@
|
||||
Home
|
||||
</a>
|
||||
{% if user.is_authenticated %}
|
||||
<a class="navbar-item" href="#">
|
||||
Profit
|
||||
</a>
|
||||
<div class="navbar-item has-dropdown is-hoverable">
|
||||
<a class="navbar-link">
|
||||
Banks
|
||||
</a>
|
||||
|
||||
<div class="navbar-dropdown">
|
||||
<a class="navbar-item" href="{% url 'currencies' type='page' %}">
|
||||
Currencies
|
||||
</a>
|
||||
<a class="navbar-item" href="#">
|
||||
Balances
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="navbar-item has-dropdown is-hoverable">
|
||||
<a class="navbar-link">
|
||||
Platforms
|
||||
</a>
|
||||
|
||||
<div class="navbar-dropdown">
|
||||
<a class="navbar-item" href="#">
|
||||
Advert Configuration
|
||||
</a>
|
||||
<a class="navbar-item" href="#">
|
||||
Advert Management
|
||||
</a>
|
||||
<a class="navbar-item" href="#">
|
||||
Market Research
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="navbar-item has-dropdown is-hoverable">
|
||||
<a class="navbar-link">
|
||||
Setup
|
||||
|
||||
50
core/templates/partials/banks-currencies-list.html
Normal file
50
core/templates/partials/banks-currencies-list.html
Normal file
@@ -0,0 +1,50 @@
|
||||
{% load cache %}
|
||||
{% load cachalot cache %}
|
||||
{% load nsep %}
|
||||
|
||||
{% get_last_invalidation 'core.Aggregator' as last %}
|
||||
{% include 'mixins/partials/notify.html' %}
|
||||
{# cache 600 objects_banks_currencies request.user.id object_list type last #}
|
||||
|
||||
{% for bank, accounts in object_list.items %}
|
||||
<h1 class="title is-4">{{ bank }}</h1>
|
||||
<table
|
||||
class="table is-fullwidth is-hoverable"
|
||||
hx-target="#{{ bank }}-table"
|
||||
id="{{ bank }}-table"
|
||||
hx-swap="outerHTML"
|
||||
hx-trigger="{{ context_object_name_singular }}Event from:body"
|
||||
hx-get="{{ list_url }}">
|
||||
<thead>
|
||||
<th>currency</th>
|
||||
<th>owner</th>
|
||||
<th>details</th>
|
||||
<th>payment</th>
|
||||
<th>id</th>
|
||||
|
||||
</thead>
|
||||
{% for account in accounts %}
|
||||
<tr>
|
||||
<td>{{ account.currency }}</td>
|
||||
<td>{{ account.ownerName }}</td>
|
||||
<td>{{ account.details|default_if_none:"—" }}</td>
|
||||
<td>
|
||||
{% for item in account.account_number.values %}
|
||||
<code>{{ item|default_if_none:"—" }}</code>
|
||||
{% endfor %}
|
||||
</td>
|
||||
<td>
|
||||
<a
|
||||
class="has-text-grey"
|
||||
onclick="window.prompt('Copy to clipboard: Ctrl+C, Enter', '{{ item.account_id }}/');">
|
||||
<span class="icon" data-tooltip="Copy to clipboard">
|
||||
<i class="fa-solid fa-copy" aria-hidden="true"></i>
|
||||
</span>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
</table>
|
||||
{% endfor %}
|
||||
{# endcache #}
|
||||
Reference in New Issue
Block a user