diff --git a/sigi/static/css/export.css b/sigi/static/css/export.css new file mode 100644 index 0000000..eb02cfe --- /dev/null +++ b/sigi/static/css/export.css @@ -0,0 +1,3 @@ +input[type="checkbox"] { + vertical-align: middle; /* Alinha verticalmente ao texto */ +} diff --git a/sigi/templates/admin/import_export/export.html b/sigi/templates/admin/import_export/export.html index 697c32c..34c9edd 100644 --- a/sigi/templates/admin/import_export/export.html +++ b/sigi/templates/admin/import_export/export.html @@ -35,56 +35,31 @@ {% 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.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 %}