blob: de46e95c6299209874c2f1b352efd207307ae5eb (
plain)
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
|
{% extends "base.html" %}
{% load i18n inline_formset %}
{% block content %}
<h2>{% trans "Merge" %}</h2>
<div class='form'>
<p class='alert'><i class="fa fa-exclamation-triangle" aria-hidden="true"></i> <label>{%trans "Every operation on this form is irreversible"%}</label></p>
<p>{% if previous_page %}<a href='{% url current_url 1 %}'>↞</a><a href='{% url current_url previous_page %}'>←</a>{% else %} {% endif %}
{% trans "Page " %}{{current_page}}/{{max_page}}
{% if next_page %}<a href='{% url current_url next_page %}'>→</a><a href='{% url current_url max_page %}'>↠</a>{% else %} {% endif %} </p>
<form action="." method="post">{% csrf_token %}
{{formset.management_form}}
{% for form in formset %}{% for hidden_field in form.hidden_fields %}{{hidden_field}}{% endfor %}{% endfor %}
<table id='merge-table'>
<thead>
<tr>
<th colspan='2'>{% trans "Item A" %}</th>
<th colspan='2'>{% trans "Item B" %}</th>
<th class='small'>{% trans "B is a duplicate of A" %}</th>
<th class='small'>{% trans "A is a duplicate of B" %}</th>
<th class='small'>{% trans "Is not duplicate" %}</th>
</tr>
</thead>
<tbody>
{% for form in formset %}
{% block merge_field_row %}
{% endblock %}
{% endfor %}
<tbody>
</table>
<input type="submit" value="{% trans "Validate" %}"/>
</form>
</div>
{% endblock %}
|