49 lines
1.8 KiB
HTML
49 lines
1.8 KiB
HTML
{% extends "base.html" %}
|
|
{# Copyright The IETF Trust 2015, All Rights Reserved #}
|
|
{% load staticfiles %}
|
|
{% 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 %}
|