mirror of https://github.com/interlegis/sigi.git
5 changed files with 89 additions and 74 deletions
@ -0,0 +1 @@ |
|||||
|
{% extends "admin/change_form.html" %} |
@ -0,0 +1,24 @@ |
|||||
|
{% load i18n %} |
||||
|
{% block fields_help %} |
||||
|
<div class="card"> |
||||
|
<div class="card-header"> |
||||
|
{% if import_or_export == "export" %} |
||||
|
{% translate "This exporter will export the following fields: " %} |
||||
|
{% elif import_or_export == "import" %} |
||||
|
{% translate "This importer will import the following fields: " %} |
||||
|
{% endif %} |
||||
|
</div> |
||||
|
<div class="card-body"> |
||||
|
{% if fields_list|length <= 1 %} |
||||
|
<code>{{ fields_list.0.1|join:", " }}</code> |
||||
|
{% else %} |
||||
|
<dl> |
||||
|
{% for resource, fields in fields_list %} |
||||
|
<dt>{{ resource }}</dt> |
||||
|
<dd><code>{{ fields|join:", " }}</code></dd> |
||||
|
{% endfor %} |
||||
|
</dl> |
||||
|
{% endif %} |
||||
|
</div> |
||||
|
</div> |
||||
|
{% endblock %} |
@ -0,0 +1,12 @@ |
|||||
|
{% extends "admin/submit_line.html" %} |
||||
|
{% load i18n djbs_extras %} |
||||
|
|
||||
|
{% block submit-row %} |
||||
|
{{ block.super }} |
||||
|
{% if show_change_form_export %} |
||||
|
<button type="submit" value="{% translate 'Export' %}" title="{% translate 'Export' %}" class="default btn btn-outline-success" name="_export-item"> |
||||
|
{% icon "export" %} |
||||
|
{% if submit_buttons_position != "top" %}{% translate 'Export' %}{% endif %} |
||||
|
</button> |
||||
|
{% endif %} |
||||
|
{% endblock %} |
Loading…
Reference in new issue