You can delete services

This commit is contained in:
2025-04-16 09:47:11 +02:00
parent e95abd16cd
commit 5f083928ba
3 changed files with 35 additions and 4 deletions

View File

@@ -5,9 +5,14 @@
{%block content%}
<div class="grid-container">
{% for service in services%}
<div onclick="location.href='{{service.url}}';" style="cursor: pointer;" class="container-xxl">
Name: {{service["name"]}} <br>
URL: {{service["url"]}}
<div>
<form action="{{ url_for('dash.delete_item', service_id=service.id) }}" method="POST" style="display:inline;">
<button class="delete-btn" type="submit">×</button>
</form>
<div onclick="location.href='{{service.url}}';" style="cursor: pointer;" class="container-xxl">
Name: {{service["name"]}} <br>
URL: {{service["url"]}}
</div>
</div>
{% endfor %}
</div>