X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/fc8d58d4ac9abba24758ef6c914eea9f85ef7e5b..a6767b2d034dcf53d6e88b3e0b6eadfebc5adab1:/src/cover/templates/cover/add_image.html diff --git a/src/cover/templates/cover/add_image.html b/src/cover/templates/cover/add_image.html old mode 100755 new mode 100644 index 293c1001..ba981844 --- a/src/cover/templates/cover/add_image.html +++ b/src/cover/templates/cover/add_image.html @@ -1,69 +1,34 @@ {% extends "catalogue/base.html" %} {% load i18n %} +{% load bootstrap4 %} {% block titleextra %}{% trans "Add image" %}{% endblock %} -{% block add_js %} - {{block.super}} - -{% endblock %} - {% block content %} +
+

{% trans "Add image" %}

- +
+
{% csrf_token %} - {{ ff.as_table }} - + {% bootstrap_form ff %} + {% buttons %} + + {% endbuttons %}
{% csrf_token %} -{{ form.non_field_errors }} - - {% for field in form %} - {% if field.name != 'download_url' and field.name != 'file' %} - - - - - {% endif %} - {% endfor %} - - - - - - - - -
{{field.errors}} {{field.label}}{{field}}
{{ form.download_url.errors }} {{form.download_url.label}}{{form.download_url}}{{ form.file.errors }} Lub {{form.file.label}}{{form.file}}
+ {% bootstrap_form form %} + {% buttons %} + + {% endbuttons %}
+
+
{% endblock %}