{% extends 'staff_base.html' %} {% load evaluation_filters %} {% block breadcrumb %} {{ block.super }} {% endblock %} {% block content %} {{ block.super }}

{% translate 'Merge users' %}

{% translate 'Swap users' %}
{{ main_user.title|default_if_none:"" }} {{ other_user.title|default_if_none:"" }} {{ merged_user.title|default_if_none:"" }} {{ main_user.first_name_given|default_if_none:"" }} {{ other_user.first_name_given|default_if_none:"" }} {{ merged_user.first_name_given|default_if_none:"" }} {{ main_user.first_name_chosen|default_if_none:"" }} {{ other_user.first_name_chosen|default_if_none:"" }} {{ merged_user.first_name_chosen|default_if_none:"" }} {{ main_user.last_name|default_if_none:"" }} {{ other_user.last_name|default_if_none:"" }} {{ merged_user.last_name|default_if_none:"" }} {{ main_user.email|default_if_none:"" }} {{ other_user.email|default_if_none:"" }} {{ merged_user.email|default_if_none:"" }} {% for group in main_user.groups.all %} {{ group.name }} {% endfor %} {% for group in other_user.groups.all %} {{ group.name }} {% endfor %} {% for group in merged_user.groups %} {{ group }} {% endfor %} {% for user in main_user.delegates.all %} {{ user.full_name }}{% if not forloop.last %},{% endif %} {% endfor %} {% for user in other_user.delegates.all %} {{ user.full_name }}{% if not forloop.last %},{% endif %} {% endfor %} {% for user in merged_user.delegates %} {{ user }}{% if not forloop.last %},{% endif %} {% endfor %} {% for user in main_user.represented_users.all %} {{ user.full_name }}{% if not forloop.last %},{% endif %} {% endfor %} {% for user in other_user.represented_users.all %} {{ user.full_name }}{% if not forloop.last %},{% endif %} {% endfor %} {% for user in merged_user.represented_users %} {{ user }}{% if not forloop.last %},{% endif %} {% endfor %} {% for user in main_user.cc_users.all %} {{ user.full_name }}{% if not forloop.last %},{% endif %} {% endfor %} {% for user in other_user.cc_users.all %} {{ user.full_name }}{% if not forloop.last %},{% endif %} {% endfor %} {% for user in merged_user.cc_users %} {{ user }}{% if not forloop.last %},{% endif %} {% endfor %} {% for user in main_user.ccing_users.all %} {{ user.full_name }}{% if not forloop.last %},{% endif %} {% endfor %} {% for user in other_user.ccing_users.all %} {{ user.full_name }}{% if not forloop.last %},{% endif %} {% endfor %} {% for user in merged_user.ccing_users %} {{ user }}{% if not forloop.last %},{% endif %} {% endfor %} {% regroup main_user.get_sorted_courses_responsible_for by semester as course_list %} 0 %} class="table-info"{% endif %}> {% include "staff_user_merge_grouped_list.html" with grouped_list=course_list %} {% regroup other_user.get_sorted_courses_responsible_for by semester as course_list %} 0 %} class="table-info"{% endif %}> {% include "staff_user_merge_grouped_list.html" with grouped_list=course_list %} {% regroup merged_user.courses_responsible_for by semester as course_list %} 0 %} class="table-success"{% endif %}> {% include "staff_user_merge_grouped_list.html" with grouped_list=course_list %} {% regroup main_user.get_sorted_contributions by evaluation.course.semester as contribution_list %} 0 %} class="table-info"{% endif %}> {% include "staff_user_merge_grouped_list.html" with grouped_list=contribution_list %} {% regroup other_user.get_sorted_contributions by evaluation.course.semester as contribution_list %} 0 %} class="table-info"{% endif %}> {% include "staff_user_merge_grouped_list.html" with grouped_list=contribution_list %} {% regroup merged_user.contributions by evaluation.course.semester as contribution_list %} 0 %} class="table-success"{% endif %}> {% include "staff_user_merge_grouped_list.html" with grouped_list=contribution_list %} {% regroup main_user.get_sorted_evaluations_participating_in by course.semester as participation_list %} 0 %} class="table-info"{% endif %}> {% include "staff_user_merge_grouped_list.html" with grouped_list=participation_list %} {% regroup other_user.get_sorted_evaluations_participating_in by course.semester as participation_list %} 0 %} class="table-info"{% endif %}> {% include "staff_user_merge_grouped_list.html" with grouped_list=participation_list %} {% regroup merged_user.evaluations_participating_in by course.semester as participation_list %} 0 %} class="table-success"{% endif %}> {% include "staff_user_merge_grouped_list.html" with grouped_list=participation_list %} {% regroup main_user.get_sorted_evaluations_voted_for by course.semester as voting_list %} 0 %} class="table-info"{% endif %}> {% include "staff_user_merge_grouped_list.html" with grouped_list=voting_list %} {% regroup other_user.get_sorted_evaluations_voted_for by course.semester as voting_list %} 0 %} class="table-info"{% endif %}> {% include "staff_user_merge_grouped_list.html" with grouped_list=voting_list %} {% regroup merged_user.evaluations_voted_for by course.semester as voting_list %} 0 %} class="table-success"{% endif %}> {% include "staff_user_merge_grouped_list.html" with grouped_list=voting_list %} {% include "staff_user_merge_reward_points_list.html" with user=main_user %} {% if 'rewards' in warnings %} {% translate 'The rewards of this user will be deleted and not be merged into the other user.' %}

{% endif %} {% include "staff_user_merge_reward_points_list.html" with user=other_user %} {% include "staff_user_merge_reward_points_list.html" with user=merged_user %}
{% translate 'Main user' %} {% translate 'Other user' %} {% translate 'Merged user' %}
{% translate 'Title' %}
{% translate 'First name' %}
{% translate 'Display name' %}
{% translate 'Last name' %}
{% translate 'Email' %}
{% translate 'Groups' %}
{% translate 'Delegates' %}
{% translate 'Represented users' %}
{% translate 'CC users' %}
{% blocktranslate %}CC'ing users{% endblocktranslate %}
{% translate 'Courses responsible for' %}
{% translate 'Contributions' %}
{% translate 'Participated in' %}
{% translate 'Voted for' %}
{% translate 'Reward points' %}
{% csrf_token %}
{% if errors %} {% blocktranslate %}The users can't be merged, because either contributions or participations for the same evaluation exist or the users are responsible for the same courses.{% endblocktranslate %} {% elif warnings %} {% else %} {% endif %}
{% endblock %}