feat: use button groups in admin tables
All checks were successful
/ test (push) Successful in 1m26s
/ codestyle (push) Successful in 58s

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

View file

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