{% extends 'staff_base.html' %} {% load evaluation_filters %} {% block breadcrumb %} {{ block.super }}
| {% trans 'Main user' %} | {% trans 'Other user' %} | {% trans 'Merged user' %} | |
|---|---|---|---|
| {% trans 'Title' %} | {{ main_user.title|default_if_none:"" }} | {{ other_user.title|default_if_none:"" }} | {{ merged_user.title|default_if_none:"" }} |
| {% trans 'First name' %} | {{ main_user.first_name|default_if_none:"" }} | {{ other_user.first_name|default_if_none:"" }} | {{ merged_user.first_name|default_if_none:"" }} |
| {% trans 'Last name' %} | {{ main_user.last_name|default_if_none:"" }} | {{ other_user.last_name|default_if_none:"" }} | {{ merged_user.last_name|default_if_none:"" }} |
| {% trans 'Email' %} | {{ main_user.email|default_if_none:"" }} | {{ other_user.email|default_if_none:"" }} | {{ merged_user.email|default_if_none:"" }} |
| {% trans 'Groups' %} | {% 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 %} |
| {% trans 'Delegates' %} | {% 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 %} |
| {% trans 'Represented users' %} | {% 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 %} |
| {% trans 'CC users' %} | {% 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 %} |
| {% blocktrans %}CC'ing users{% endblocktrans %} | {% 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 %} |
| {% trans 'Courses responsible for' %} | {% 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 %} |
| {% trans 'Contributions' %} | {% 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 %} |
| {% trans 'Participated in' %} | {% 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 %} |
| {% trans 'Voted for' %} | {% 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 %} |
| {% trans 'Reward points' %} | {% include "staff_user_merge_reward_points_list.html" with user=main_user %} |
{% if 'rewards' in warnings %}
{% trans '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 %} |