1
0
Fork 0
forked from s3lph/matemat

feat: use button groups in admin tables

This commit is contained in:
s3lph 2024-12-07 20:38:24 +01:00
parent f8de9f5e1e
commit dd65b5c4d0
Signed by untrusted user: s3lph
GPG key ID: 0AA29A52FB33CFB5

View file

@ -50,8 +50,10 @@
<td>{{ '✓' if user.is_admin else '✗' }}</td>
<td>{{ '✓' if user.logout_after_purchase else '✗' }}</td>
<td>
<div class="btn-group" role="group">
<a class="btn btn-primary" href="/moduser?userid={{ user.id }}">Edit</a>
<a class="btn btn-danger" href="/moduser?userid={{ user.id }}&change=del">Delete</a>
</div>
</td>
</tr>
{% endfor %}
@ -104,8 +106,10 @@
<td>{{ '✓' if product.stockable else '✗' }}</td>
<td><img style="height: 2em;" src="/static/upload/thumbnails/products/{{ product.id }}.png?cacheBuster={{ now }}" alt="Picture of {{ product.name }}" draggable="false"></td>
<td>
<div class="btn-group" role="group">
<a class="btn btn-primary" href="/modproduct?productid={{ product.id }}">Edit</a>
<a class="btn btn-danger" href="/modproduct?productid={{ product.id }}&change=del">Delete</a>
</div>
</td>
</tr>
{% endfor %}