-
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.
expose the ZGW import/export functionality through the admin page
- Loading branch information
1 parent
281d769
commit 61fccec
Showing
4 changed files
with
276 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
12 changes: 12 additions & 0 deletions
12
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,12 @@ | ||
{% 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 "Create from json export" %} | ||
</a> | ||
</li> | ||
{% endblock %} | ||
|
13 changes: 13 additions & 0 deletions
13
src/open_inwoner/templates/admin/import_zgw_export_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,13 @@ | ||
{% 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 %} | ||
|