From 6cfdd0af20218a68e8a06c09faec7eab1f3c29e0 Mon Sep 17 00:00:00 2001 From: moonshinerd Date: Tue, 19 Nov 2024 19:28:22 -0300 Subject: [PATCH] fix: corrigindo export.html em labels e checkboxes e colocando o bt5 no botao enviar --- sigi/static/css/export.css | 3 ++ .../templates/admin/import_export/export.html | 47 +++++-------------- 2 files changed, 14 insertions(+), 36 deletions(-) create mode 100644 sigi/static/css/export.css 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 %}