forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmerge.html
More file actions
48 lines (43 loc) · 1.75 KB
/
merge.html
File metadata and controls
48 lines (43 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{% extends "base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load static %}
{% load bootstrap3 %}
{% block title %}Merge Persons{% endblock %}
{% block content %}
<h1>Merge Person Records</h1>
<p>This tool will merge two Person records into one. If both records have logins and you want to retain the one on the left, use the Swap button to swap source and target records.</p>
<form action="" method="{{ method }}">{% if method == 'post' %}{% csrf_token %}{% endif %}
<div class="row">
<div class="form-group">
<div class="col-md-6">
{% bootstrap_field form.source %}
{% if source %}
{% with person=source %}
{% include "person/person_info.html" %}
{% endwith %}
{% endif %}
</div>
<div class="col-md-6">
{% bootstrap_field form.target %}
{% if target %}
{% with person=target %}
{% include "person/person_info.html" %}
{% endwith %}
{% endif %}
</div>
</div>
</div>
{% if change_details %}
<div class="alert alert-info" role="alert">{{ change_details }}</div>
{% endif %}
{% if warn_messages %}
{% for message in warn_messages %}
<div class="alert alert-warning" role="alert">{{ message }}</div>
{% endfor %}
{% endif %}
{% if method == 'post' %}
<a class="btn btn-default" href="{% url 'ietf.person.views.merge' %}?source={{ target.pk }}&target={{ source.pk }}" role="button">Swap</a>
{% endif %}
<button type="submit" class="btn btn-default">{% if method == 'post' %}Merge{% else %}Submit{% endif %}</button>
</form>
{% endblock %}