-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow bulk manifest metadata update via CSV
- Loading branch information
Showing
5 changed files
with
152 additions
and
4 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
26 changes: 26 additions & 0 deletions
26
apps/iiif/manifests/templates/admin/change_list_override.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,26 @@ | ||
{% extends "admin/change_list.html" %} | ||
|
||
{% load i18n %} | ||
|
||
{# adapted from django-import-export #} | ||
{% block object-tools %} | ||
<ul class="object-tools"> | ||
{% block object-tools-items %} | ||
{% include "admin/import_export/change_list_import_item.html" %} | ||
{% if has_import_permission %} | ||
<li> | ||
<a | ||
href='{% url "admin:MultiManifestMetadataImport" %}' | ||
class="import_link" | ||
> | ||
{% trans "Bulk update" %} | ||
</a> | ||
</li> | ||
{% endif %} | ||
{% include "admin/import_export/change_list_export_item.html" %} | ||
{% if has_add_permission %} | ||
{{ block.super }} | ||
{% endif %} | ||
{% endblock %} | ||
</ul> | ||
{% endblock %} |
30 changes: 30 additions & 0 deletions
30
apps/iiif/manifests/templates/manifest_metadata_import.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,30 @@ | ||
{% extends "admin/base_site.html" %} | ||
{% load i18n admin_urls %} | ||
{% load static %} | ||
|
||
{% block extrastyle %} | ||
<link rel="stylesheet" type="text/css" href="/static/admin/css/forms.css"> | ||
{% endblock %} | ||
|
||
{% block breadcrumbs %} | ||
<div class="breadcrumbs"> | ||
<a href="{% url 'admin:index' %}">{% trans 'Home' %}</a> | ||
› <a href="{% url 'admin:manifests_manifest_changelist' %}">Manifests</a> | ||
› {{ title }} | ||
</div> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<form enctype="multipart/form-data" method="post">{% csrf_token %} | ||
<fieldset class="module aligned "> | ||
<div class="form-row"> | ||
{{ form }} | ||
</div> | ||
</fieldset> | ||
{% block submit_buttons_bottom %} | ||
<div class="submit-row"> | ||
<input type="submit" value="{% trans 'Submit' %}" class="default" name="_save"> | ||
</div> | ||
{% endblock %} | ||
</form> | ||
{% 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