X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/3e276f49505e607b72892b40d18ac2cef194497e..1e373b12f008865c90a75cc56202d8adde06e2b7:/apps/cover/templates/cover/add_image.html diff --git a/apps/cover/templates/cover/add_image.html b/apps/cover/templates/cover/add_image.html index ed7adfbb..293c1001 100755 --- a/apps/cover/templates/cover/add_image.html +++ b/apps/cover/templates/cover/add_image.html @@ -1,6 +1,35 @@ {% extends "catalogue/base.html" %} {% load i18n %} +{% block titleextra %}{% trans "Add image" %}{% endblock %} + +{% block add_js %} + {{block.super}} + +{% endblock %} {% block content %}

{% trans "Add image" %}

@@ -14,10 +43,24 @@ - -
{% csrf_token %} +{% csrf_token %} +{{ form.non_field_errors }} - {{ form.as_table }} + {% 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}}