ergo-admin-edit

This commit is contained in:
2023-11-07 21:27:40 +01:00
parent c0cefd82b6
commit 4f4c053d0e
3 changed files with 305 additions and 167 deletions

View File

@ -120,6 +120,39 @@
</details>
</div>
</div>
{% if loggedin_user.is_admin %}
<div class="bg-white dark:bg-primary-900 text-black dark:text-white rounded-md block shadow grid gap-3">
<h2 class="h2">Update</h2>
<details class="p-2">
<summary class="cursor-pointer">Dirty Thirty <small class="text-gray-600">({{thirty | length}})</small></summary>
<div class="mt-3">
<ol>
{% for stat in thirty %}
<li>
<form action="/ergo/thirty/user/{{ stat.id }}/new" method="get">
{{ stat.name }}: <input type="text" value="{{stat.result}}" name="new" style="color: black;"/><input type="submit"/>
</form>
</li>
{% endfor %}
</ol>
</div>
</details>
<details class="p-2">
<summary class="cursor-pointer">Dirty Dozen <small class="text-gray-600">({{dozen | length}})</small></summary>
<div class="mt-3">
<ol>
{% for stat in dozen %}
<li><strong>{{ stat.name }}:</strong> {{ stat.result }}</li>
{% endfor %}
</ol>
</div>
</details>
</div>
</div>
{% endif %}
</div>
{% endblock content%}