-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1724 from Princeton-CDH/feature/1500-personperson…
…-merge Merge tool for person-person relationship types (#1500)
- Loading branch information
Showing
12 changed files
with
430 additions
and
88 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
53 changes: 53 additions & 0 deletions
53
geniza/entities/templates/admin/entities/personpersonrelationtype/merge.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,53 @@ | ||
{% extends 'admin/base_site.html' %} | ||
|
||
{% load admin_urls static %} | ||
|
||
{% block extrastyle %} | ||
{{ block.super }} | ||
<link rel="stylesheet" href="{% static "admin/css/forms.css" %}"> | ||
<link rel="stylesheet" href="{% static "css/admin-local.css" %}"> | ||
{% endblock %} | ||
|
||
{% block title %} Merge selected person-person relationships {% endblock %} | ||
|
||
{% block breadcrumbs %} | ||
{% if not is_popup %} | ||
<div class="breadcrumbs"> | ||
<a href="{% url 'admin:index' %}">Home</a> | ||
› | ||
<a href="{% url 'admin:app_list' app_label='entities' %}">Entities</a> | ||
› | ||
<a href="{% url 'admin:entities_personpersonrelationtype_changelist'%}">Person-Person relationships</a> | ||
› | ||
Merge selected person-person relationships | ||
</div> | ||
{% endif %} | ||
{% endblock %} | ||
|
||
|
||
{% block content_title %} | ||
<h1>Merge selected person-person relationships</h1> | ||
<h2>Note: there is no automated way to unmerge! Please review to make sure these relationships should be merged before submitting the form.</h2> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<form method="post" class="merge-relationtype"> | ||
{% csrf_token %} | ||
{% if form.errors|length > 0 %} | ||
<p class="errornote"> | ||
Please correct the error below. | ||
</p> | ||
{% endif %} | ||
<fieldset class="module aligned"> | ||
<div class="form-row"> | ||
{{ form.primary_relation_type.label_tag }} | ||
{{ form.primary_relation_type }} | ||
<p class="help">{{ form.primary_relation_type.help_text|safe }}</p> | ||
</div> | ||
|
||
<div class="submit-row"> | ||
<input type="submit" value="Submit"> | ||
</div> | ||
</field> | ||
</form> | ||
{% endblock %} |
Oops, something went wrong.