users: Drop cancel button show submit as danger in delete page

- For consistency with the rest of the interface and better UX.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
Sunil Mohan Adapa 2020-12-16 14:37:21 -08:00 committed by Veiko Aasa
parent f2c40d8319
commit 0cd5dd6e09
No known key found for this signature in database
GPG Key ID: 478539CAE680674E

View File

@ -19,11 +19,8 @@
<form class="form" method="post">
{% csrf_token %}
<input type="submit" class="btn btn-md btn-primary"
<input type="submit" class="btn btn-md btn-danger"
value="{% blocktrans with username=object.username %}Delete {{ username }}{% endblocktrans %}"/>
<a href="{% url 'users:index' %}" role="button"
class="btn btn-md btn-primary">{% trans "Cancel" %}</a>
</form>
{% endblock %}