|
@ -3,24 +3,23 @@ |
|
|
{% load admin_urls %} |
|
|
{% load admin_urls %} |
|
|
{% load import_export_tags %} |
|
|
{% load import_export_tags %} |
|
|
|
|
|
|
|
|
{% block extrahead %}{{ block.super }} |
|
|
{% block extrahead %} |
|
|
|
|
|
{{ block.super }} |
|
|
<script type="text/javascript" src="{% url 'admin:jsi18n' %}"></script> |
|
|
<script type="text/javascript" src="{% url 'admin:jsi18n' %}"></script> |
|
|
{{ form.media }} |
|
|
{{ form.media }} |
|
|
{% endblock %} |
|
|
{% endblock %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% block breadcrumbs_last %} |
|
|
{% block breadcrumbs_last %} |
|
|
{% translate "Export" %} |
|
|
{% translate "Export" %} |
|
|
{% endblock %} |
|
|
{% endblock %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% block content %} |
|
|
{% block content %} |
|
|
{% if form.errors %} |
|
|
{% if form.errors %} |
|
|
{{ form.errors }} |
|
|
{{ form.errors }} |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
<form action="{{ export_url }}" method="POST"> |
|
|
<form action="{{ export_url }}" method="POST"> |
|
|
{% csrf_token %} |
|
|
{% csrf_token %} |
|
|
{# export request has originated from an Admin UI action #} |
|
|
{# Export request has originated from an Admin UI action #} |
|
|
{% if form.initial.export_items %} |
|
|
{% if form.initial.export_items %} |
|
|
<p> |
|
|
<p> |
|
|
{% blocktranslate count len=form.initial.export_items|length %} |
|
|
{% blocktranslate count len=form.initial.export_items|length %} |
|
@ -31,35 +30,51 @@ |
|
|
</p> |
|
|
</p> |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
|
|
|
|
|
|
{# fields list is not required with selectable fields form #} |
|
|
{# Fields list is not required with selectable fields form #} |
|
|
{% if not form.is_selectable_fields_form %} |
|
|
{% if not form.is_selectable_fields_form %} |
|
|
{% include "admin/import_export/resource_fields_list.html" with import_or_export="export" %} |
|
|
{% include "admin/import_export/resource_fields_list.html" with import_or_export="export" %} |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
<p></p> |
|
|
<p></p> |
|
|
|
|
|
|
|
|
<fieldset class="module"> |
|
|
<fieldset class="module"> |
|
|
<p style="padding: 0;">{% translate "This exporter will export the following fields:" %}</p> |
|
|
<p style="padding: 0;">{% translate "This exporter will export the following fields:" %}</p> |
|
|
|
|
|
|
|
|
|
|
|
<div class="row"> |
|
|
{% for field in form.visible_fields %} |
|
|
{% for field in form.visible_fields %} |
|
|
<div class="d-flex align-items-center mb-3"> |
|
|
{% if field.name != "format" %} {# Excluindo o campo "Formato" da lista automática #} |
|
|
<label for="{{ field.id_for_label }}" class="form-label me-2 mb-0"> |
|
|
<div class="col-md-4 col-lg-3 mb-4"> |
|
|
{{ field.label }}: |
|
|
<div class="card h-100" style="width: 100%;"> |
|
|
|
|
|
<div class="card-body"> |
|
|
|
|
|
<label for="{{ field.id_for_label }}" class="form-label d-block"> |
|
|
|
|
|
{{ field.label }} |
|
|
</label> |
|
|
</label> |
|
|
<div style="margin-left: 15px;"> <!-- Ajusta o checkbox para frente --> |
|
|
|
|
|
{{ field }} |
|
|
{{ field }} |
|
|
|
|
|
{% if field.field.help_text %} |
|
|
|
|
|
<small class="text-muted d-block mt-1"> |
|
|
|
|
|
{{ field.field.help_text|safe }} |
|
|
|
|
|
</small> |
|
|
|
|
|
{% endif %} |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
{% endif %} |
|
|
{% endfor %} |
|
|
{% endfor %} |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
{% for field in form.hidden_fields %} |
|
|
{% for field in form.hidden_fields %} |
|
|
{{ field }} |
|
|
{{ field }} |
|
|
{% endfor %} |
|
|
{% endfor %} |
|
|
</fieldset> |
|
|
</fieldset> |
|
|
|
|
|
|
|
|
|
|
|
{# Campo "Formato" separado, posicionado de forma independente #} |
|
|
<div> |
|
|
<div class="mt-4"> |
|
|
{{ form.non_field_errors }} |
|
|
<label for="{{ form.format.id_for_label }}" class="form-label">{{ form.format.label }}</label> |
|
|
|
|
|
{{ form.format }} |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="submit-row"> |
|
|
<div class="submit-row mt-4"> |
|
|
<input type="submit" class="btn btn-outline-primary" value="{% translate "Submit" %}"> |
|
|
<input type="submit" class="btn btn-outline-primary" value="{% translate "Submit" %}"> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
</form> |
|
|
</form> |
|
|
{% endblock %} |
|
|
{% endblock %} |
|
|