Implement more payout management

This commit is contained in:
2023-05-06 11:52:42 +01:00
parent ddfee0b328
commit 6ea82857f2
6 changed files with 128 additions and 18 deletions

View File

@@ -31,7 +31,32 @@
</a>
</td>
<td>{{ item.user }}</td>
<td>{{ item.wallet }}</td>
<td>
<div class="nowrap-parent">
<div class="nowrap-child">
<a
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
hx-get="{% url 'wallet_update' type=type pk=item.wallet.id %}"
hx-trigger="click"
hx-target="#{{ type }}s-here"
hx-swap="innerHTML">
{{ item.wallet.name }}
</a>
</div>
<div class="nowrap-child">
<a
class="has-text-grey"
onclick="window.prompt('Copy to clipboard: Ctrl+C, Enter', '{{ item.wallet.address }}');">
<span class="icon" data-tooltip="Copy wallet address to clipboard">
<i class="fa-solid fa-copy" aria-hidden="true"></i>
</span>
</a>
</div>
</div>
</td>
<td>{{ item.amount }}</td>
<td>{{ item.description }}</td>
<td>{{ item.ts }}</td>