{% extends 'staff_base.html' %} {% load evaluation_filters %} {% block breadcrumb %} {{ block.super }}
{% translate 'Main user' %} | {% translate 'Other user' %} | {% translate 'Merged user' %} | |
---|---|---|---|
{% translate 'Title' %} | {{ main_user.title|default_if_none:"" }} | {{ other_user.title|default_if_none:"" }} | {{ merged_user.title|default_if_none:"" }} |
{% translate 'First name' %} | {{ main_user.first_name_given|default_if_none:"" }} | {{ other_user.first_name_given|default_if_none:"" }} | {{ merged_user.first_name_given|default_if_none:"" }} |
{% translate 'Display name' %} | {{ main_user.first_name_chosen|default_if_none:"" }} | {{ other_user.first_name_chosen|default_if_none:"" }} | {{ merged_user.first_name_chosen|default_if_none:"" }} |
{% translate 'Last name' %} | {{ main_user.last_name|default_if_none:"" }} | {{ other_user.last_name|default_if_none:"" }} | {{ merged_user.last_name|default_if_none:"" }} |
{% translate 'Email' %} | {{ main_user.email|default_if_none:"" }} | {{ other_user.email|default_if_none:"" }} | {{ merged_user.email|default_if_none:"" }} |
{% translate '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 %} |
{% translate '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 %} |
{% translate '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 %} |
{% translate '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 %} |
{% blocktranslate %}CC'ing users{% endblocktranslate %} | {% 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 %} |
{% translate '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 %} |
{% translate '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 %} |
{% translate '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 %} |
{% translate '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 %} |
{% translate 'Reward points' %} | {% 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 %} |