{% extends "base.html" %}
{% load i18n %}

{% block head %}
    {{ block.super }}
    <script type="text/javascript" src="{{ STATIC_URL }}common/js/ajax-modal.js"></script>
    <style>
        .show-duplicates .fa.fa-caret-right {
            display: none;
        }
    </style>
    {{ search_duplicate_form.media }}
{% endblock %}

{% block subtitle %}
    {% trans 'Manage duplicates of user' %} "{{ mtpuser.username }}"
{% endblock %}

{% block actions %}
    <a href="{% url 'accounts:user-merge-list' %}" class="btn btn-default">
        {% trans 'Back to the user merge list' %}
    </a>
{% endblock %}

{% block main %}
    {% include 'cms/accounts/mtpuser_merge_info_modals.html' %}
    <div class="panel panel-default">
        <table class="table table-bordered table-stripped" id="duplicates-table">
            <thead>
                <tr>
                    <th></th>
                    <th>{% trans 'Username' %}</th>
                    <th>{% trans 'First name' %}</th>
                    <th>{% trans 'Last name' %}</th>
                    <th>{% trans 'Email' %}</th>
                    <th>{% trans 'Origin' %}</th>
                    <th>{% trans 'Creation date' %}</th>
                    <th>
                        {% trans 'Users to merge' %}
                        <a href="" class="text-primary" data-toggle="modal" data-target="#info-merge-count">
                            <i class="fa fa-info-circle"></i>
                        </a>
                    </th>
                </tr>
            </thead>
            <tbody>
                {% include 'cms/accounts/mtpuser_merge_item.html' %}
            </tbody>
        </table>
    </div>
{% endblock %}
