diff --git a/sigi/templates/admin/import_export/base.html b/sigi/templates/admin/import_export/base.html new file mode 100644 index 0000000..1a7f6cf --- /dev/null +++ b/sigi/templates/admin/import_export/base.html @@ -0,0 +1,23 @@ +{% extends "admin/base_site.html" %} +{% load i18n admin_modify %} +{% load admin_urls %} +{% load static %} + +{% block extrastyle %}{{ block.super }}{% endblock %} + +{% if not is_popup %} + {% block nav-breadcrumbs %} + + {% endblock %} +{% endif %} + +{% block bodyclass %}{{ block.super }} {{ opts.app_label }}-{{ opts.object_name.lower }} change-form{% endblock %} diff --git a/sigi/templates/admin/import_export/export.html b/sigi/templates/admin/import_export/export.html new file mode 100644 index 0000000..697c32c --- /dev/null +++ b/sigi/templates/admin/import_export/export.html @@ -0,0 +1,90 @@ +{% extends "admin/import_export/base.html" %} +{% load i18n %} +{% load admin_urls %} +{% load import_export_tags %} + +{% block extrahead %}{{ block.super }} + +{{ form.media }} +{% endblock %} + + +{% block breadcrumbs_last %} +{% translate "Export" %} +{% endblock %} + + +{% block content %} +{% if form.errors %} + {{ form.errors }} +{% endif %} +
+ {% csrf_token %} + {# export request has originated from an Admin UI action #} + {% if form.initial.export_items %} +

+ {% blocktranslate count len=form.initial.export_items|length %} + Export {{ len }} selected item. + {% plural %} + Export {{ len }} selected items. + {% endblocktranslate %} +

+ {% endif %} + + {# fields list is not required with selectable fields form #} + {% if not form.is_selectable_fields_form %} + {% include "admin/import_export/resource_fields_list.html" with import_or_export="export" %} + {% endif %} + +
+ {% for field in form.visible_fields %} +
+ {% if field.field.initial_field %} +

{% translate "This exporter will export the following fields: " %}

+ {% endif %} + {{ field.errors }} + + {% if not field.field.is_selectable_field %} + {{ field.label_tag }} + {% endif %} + + {% if field.field.widget.attrs.readonly %} + {{ field.field.value }} + {{ field.as_hidden }} + {% else %} + {{ field }} + {% endif %} + + {% if field.field.is_selectable_field %} + {{ field.label_tag }} + {% endif %} + + {% if field.field.help_text %} +

{{ field.field.help_text|safe }}

+ {% endif %} +
+ {% endfor %} + {% for field in form.hidden_fields %} + {{ field }} + {% endfor %} +
+ +
+ {{ form.non_field_errors }} +
+ +
+ +
+
+{% endblock %}