-
-
Notifications
You must be signed in to change notification settings - Fork 782
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
show exported field list in admin UI (#1685)
* show exported fields in admin * shared template * add test * remove 2nd test, add template var * updated changelog --------- Co-authored-by: matthewhegarty <mrhegarty@gmail.com>
- Loading branch information
1 parent
f7decaa
commit ebf58e0
Showing
6 changed files
with
60 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
import_export/templates/admin/import_export/resource_fields_list.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{% load i18n %} | ||
{% block fields_help %} | ||
<p> | ||
{% if import_or_export == "export" %} | ||
{% trans "This exporter will export the following fields: " %} | ||
{% elif import_or_export == "import" %} | ||
{% trans "This importer will import the following fields: " %} | ||
{% endif %} | ||
|
||
{% 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 %} | ||
</p> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters