lib: add helper method for 400 response with message

This commit is contained in:
Jens Langhammer
2020-02-18 10:13:53 +01:00
parent 95416623b3
commit 083e317028
4 changed files with 15 additions and 5 deletions

View File

@ -19,6 +19,9 @@
<h1>{% trans 'Bad Request' %}</h1>
</header>
<form>
{% if message %}
<p>{% trans message %}</p>
{% endif %}
{% if 'back' in request.GET %}
<a href="{% back %}" class="btn btn-primary btn-block btn-lg">{% trans 'Back' %}</a>
{% endif %}