-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add the admin flow for import/export
- Loading branch information
1 parent
caff23a
commit 6bd5356
Showing
5 changed files
with
237 additions
and
2 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
11 changes: 11 additions & 0 deletions
11
src/open_inwoner/templates/admin/catalogusconfig_change_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,11 @@ | ||
{% extends "admin/change_list.html" %} | ||
{% load i18n admin_urls %} | ||
|
||
{% block object-tools-items %} | ||
{{ block.super }} | ||
<li> | ||
<a href="{% url 'admin:upload_zgw_import_file' %}" class="addlink"> | ||
{% trans "Import from jsonl file" %} | ||
</a> | ||
</li> | ||
{% endblock %} |
12 changes: 12 additions & 0 deletions
12
src/open_inwoner/templates/admin/import_zgw_dump_form.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,12 @@ | ||
{% extends "admin/base_site.html" %} | ||
{% load i18n admin_urls %} | ||
|
||
{% block content %} | ||
<div> | ||
<form method="post" enctype="multipart/form-data"> | ||
{% csrf_token %} | ||
{{ form.as_div }} | ||
<input type="submit" value="Submit"> | ||
</form> | ||
</div> | ||
{% endblock %} |