Fix bad URL when canceling query deletion, to address #615

This commit is contained in:
Garret Wassermann 2018-05-10 02:14:59 -04:00
parent 2cf1a32a10
commit c3bf39a3b9

View File

@ -11,12 +11,11 @@
<p>{% blocktrans %}You have shared this query, so other users may be using it. If you delete it, they will have to manually create their own query.{% endblocktrans %}</p> <p>{% blocktrans %}You have shared this query, so other users may be using it. If you delete it, they will have to manually create their own query.{% endblocktrans %}</p>
{% endif %} {% endif %}
<p><a href='{% url 'helpdesk:list' %}?saved_query={{ query.id }}'><button class="btn btn-primary btn-lg">{% trans "No, Don't Delete It" %}</button></a></p>
<p><a href='../'><button class="btn btn-primary btn-lg">{% trans "No, Don't Delete It" %}</button></a></p> <form method='post' action='./'>{% csrf_token %}
<form method='post' action='./'>
<button class="btn btn-danger" type='submit'>{% trans "Yes I Understand - Delete It Anyway" %}</button> <button class="btn btn-danger" type='submit'>{% trans "Yes I Understand - Delete It Anyway" %}</button>
{% csrf_token %}</form> </form>
{% endblock %} {% endblock %}