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..dc6870d --- /dev/null +++ b/sigi/templates/admin/import_export/export.html @@ -0,0 +1,80 @@ +{% 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 %} +

+ +
+

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

+ +
+ {% for field in form.visible_fields %} + {% if field.name != "format" %} {# Excluindo o campo "Formato" da lista automática #} +
+
+
+ + {{ field }} + {% if field.field.help_text %} + + {{ field.field.help_text|safe }} + + {% endif %} +
+
+
+ {% endif %} + {% endfor %} +
+ + {% for field in form.hidden_fields %} + {{ field }} + {% endfor %} +
+ + {# Campo "Formato" separado, posicionado de forma independente #} +
+ + {{ form.format }} +
+ +
+ +
+ +
+{% endblock %}