Add remaining templates

This commit is contained in:
2025-02-07 20:58:28 +00:00
parent 987cb52443
commit 6aa7eb01e8
20 changed files with 1402 additions and 0 deletions

View File

@@ -0,0 +1,58 @@
{% load pretty %}
{% load cache %}
{% cache 600 objects_signal_account_detail request.user.id object %}
{% include 'mixins/partials/notify.html' %}
{% if object_list is not None %}
<table
class="table is-fullwidth is-hoverable">
<thead>
<th>name</th>
<th>number</th>
<th>uuid</th>
<th>verified</th>
<th>blocked</th>
</thead>
{% for item in object_list.contacts %}
<tr>
<td>{{ item.name }}</td>
<td>{{ item.number }}</td>
<td>
<a
class="has-text-grey button nowrap-child"
onclick="window.prompt('Copy to clipboard: Ctrl+C, Enter', '{{ item.uuid }}');">
<span class="icon" data-tooltip="Copy to clipboard">
<i class="fa-solid fa-copy" aria-hidden="true"></i>
</span>
</a>
</td>
<td>
{% if item.identity.status == "TRUSTED_VERIFIED" %}
<span class="icon">
<i class="fa-solid fa-check"></i>
</span>
{% else %}
<span class="icon">
<i class="fa-solid fa-xmark"></i>
</span>
{% endif %}
</td>
<td>
{% if item.blocked %}
<span class="icon">
<i class="fa-solid fa-check"></i>
</span>
{% else %}
<span class="icon">
<i class="fa-solid fa-xmark"></i>
</span>
{% endif %}
</td>
</tr>
{% endfor %}
</table>
{% endif %}
{% endcache %}