mirror of https://github.com/interlegis/sigi.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
2.2 KiB
67 lines
2.2 KiB
{% extends "admin/import_export/base.html" %}
|
|
{% load i18n %}
|
|
{% load admin_urls %}
|
|
{% load import_export_tags %}
|
|
|
|
{% block extrahead %}
|
|
{{ block.super }}
|
|
<script type="text/javascript" src="{% url 'admin:jsi18n' %}"></script>
|
|
{{ form.media }}
|
|
{% endblock %}
|
|
|
|
{% block breadcrumbs_last %}
|
|
<li class="breadcrumb-item active" aria-current="page">{% translate "Export" %}</li>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
{% if form.errors %}
|
|
{{ form.errors }}
|
|
{% endif %}
|
|
<form action="{{ export_url }}" method="POST">{% csrf_token %}
|
|
{% for field in form.hidden_fields %}
|
|
{{ field }}
|
|
{% endfor %}
|
|
{# Export request has originated from an Admin UI action #}
|
|
{% if form.initial.export_items %}
|
|
<div class="alert alert-info" role="alert">
|
|
{% blocktranslate count len=form.initial.export_items|length %}
|
|
Export {{ len }} selected item.
|
|
{% plural %}
|
|
Export {{ len }} selected items.
|
|
{% endblocktranslate %}
|
|
</div>
|
|
{% 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 %}
|
|
|
|
<div class="d-flex gap-1 align-items-baseline my-2">
|
|
{{ form.format.label_tag }}<div class="flex-grow-1">{{ form.format }}</div>
|
|
<input type="submit" class="btn btn-outline-primary" value="{% translate "Export" %}">
|
|
</div>
|
|
|
|
<div class="card">
|
|
<div class="card-header">
|
|
{% translate "This exporter will export the following fields:" %}
|
|
</div>
|
|
<div class="card-body">
|
|
{% for field in form.visible_fields %}
|
|
{% if field.name != "format" %} {# Excluindo o campo "Formato" da lista automática #}
|
|
<div class="form-check">
|
|
{{ field.as_field_group }}
|
|
{% if field.field.help_text %}
|
|
<small class="text-muted d-block mt-1">
|
|
{{ field.field.help_text|safe }}
|
|
</small>
|
|
{% endif %}
|
|
</div>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</div>
|
|
<div class="card-footer">
|
|
</div>
|
|
</div>
|
|
</form>
|
|
{% endblock %}
|
|
|