|
|
@ -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 %} |
|
|
|
|
|
|
|
<p></p> |
|
|
|
<fieldset class="module"> |
|
|
|
<p style="padding: 0;">{% translate "This exporter will export the following fields:" %}</p> |
|
|
|
{% for field in form.visible_fields %} |
|
|
|
<div |
|
|
|
{% if field.field.is_selectable_field %} |
|
|
|
{# all fields are visible by default, JS will hide unselected resource fields on load #} |
|
|
|
|
|
|
|
class="selectable-field-export-row" |
|
|
|
{# resource index will be used for showing-hiding fields #} |
|
|
|
resource-index="{{ field.field.resource_index }}" |
|
|
|
{% else %} |
|
|
|
class="form-row aligned" |
|
|
|
{% endif %} |
|
|
|
> |
|
|
|
{% if field.field.initial_field %} |
|
|
|
<p style="padding: 0;">{% translate "This exporter will export the following fields: " %}</p> |
|
|
|
{% 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 %} |
|
|
|
<div class="d-flex align-items-center mb-3"> |
|
|
|
<label for="{{ field.id_for_label }}" class="form-label me-2 mb-0"> |
|
|
|
{{ field.label }}: |
|
|
|
</label> |
|
|
|
<div style="margin-left: 15px;"> <!-- Ajusta o checkbox para frente --> |
|
|
|
{{ field }} |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
{% if field.field.is_selectable_field %} |
|
|
|
{{ field.label_tag }} |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
{% if field.field.help_text %} |
|
|
|
<p class="help">{{ field.field.help_text|safe }}</p> |
|
|
|
{% endif %} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{% endfor %} |
|
|
|
{% for field in form.hidden_fields %} |
|
|
|
{{ field }} |
|
|
|
{% endfor %} |
|
|
|
</fieldset> |
|
|
|
</fieldset> |
|
|
|
|
|
|
|
|
|
|
|
<div> |
|
|
|
{{ form.non_field_errors }} |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="submit-row"> |
|
|
|
<input type="submit" class="default" value="{% translate "Submit" %}"> |
|
|
|
<input type="submit" class="btn btn-outline-primary" value="{% translate "Submit" %}"> |
|
|
|
</div> |
|
|
|
</form> |
|
|
|
{% endblock %} |
|
|
|