Browse Source

adding deletion to practices pages

joel
Simon Bowie 2 years ago
parent
commit
19d190f7d3
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      web/app/templates/edit.html

+ 7
- 0
web/app/templates/edit.html View File

onclick="return confirm('Are you sure you want to delete this tool?')"> onclick="return confirm('Are you sure you want to delete this tool?')">
</form> </form>
{% endif %} {% 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 %} {% endblock %}

Loading…
Cancel
Save