Bladeren bron

adding deletion to practices pages

joel
Simon Bowie 2 jaren geleden
bovenliggende
commit
19d190f7d3
1 gewijzigde bestanden met toevoegingen van 7 en 0 verwijderingen
  1. +7
    -0
      web/app/templates/edit.html

+ 7
- 0
web/app/templates/edit.html Bestand weergeven

@@ -124,4 +124,11 @@
onclick="return confirm('Are you sure you want to delete this tool?')">
</form>
{% endif %}
{% if resource['type'] == 'practice' %}
<form action="{{ url_for('practice.delete_practice', practice_id=resource['id']) }}" method="POST">
<input type="submit" value="Delete"
class="btn btn-danger btn-sm"
onclick="return confirm('Are you sure you want to delete this practice?')">
</form>
{% endif %}
{% endblock %}

Laden…
Annuleren
Opslaan