b5a5acbf2c
- Added dataTable function for group overview table. - Added default form help text for groups and an explanation for group overview table. - Updated translation. - Translate group name in form. - Username: FirstName instead of First_Name - Hide group 'registered' from UserForm - Linked persons/candidates/submitter etc. to UserView - Fixed permissions in template Translation
78 lines
2.8 KiB
HTML
78 lines
2.8 KiB
HTML
{% extends "base.html" %}
|
||
|
||
{% load i18n %}
|
||
{% load tags %}
|
||
|
||
{% block title %}{{ block.super }} – {{ shown_user }}{% endblock %}
|
||
|
||
{% block content %}
|
||
|
||
<h1>
|
||
{{ shown_user.clean_name }}
|
||
<small class="pull-right">
|
||
<a href="{% url 'user_overview' %}" class="btn btn-mini"><i class="icon-chevron-left"></i> {% trans "Back to overview" %}</a>
|
||
<!-- activate projector -->
|
||
{% if perms.projector.can_manage_projector %}
|
||
<a href="{% url 'projector_activate_slide' shown_user.sid %}" class="activate_link btn {% if shown_user.active %}btn-primary{% endif %} btn-mini" rel="tooltip" data-original-title="{% trans 'Show participant' %}">
|
||
<i class="icon-facetime-video {% if shown_user.active %}icon-white{% endif %}"></i>
|
||
</a>
|
||
{% endif %}
|
||
{% if perms.participant.can_manage_participant %}
|
||
<div class="btn-group">
|
||
<a data-toggle="dropdown" class="btn btn-mini dropdown-toggle">
|
||
{% trans 'More actions' %} <span class="caret"></span>
|
||
</a>
|
||
<ul class="dropdown-menu pull-right">
|
||
<!-- edit -->
|
||
<li><a href="{% url 'user_edit' shown_user.id %}"><i class="icon-pencil"></i> {% trans 'Edit participant' %}</a></li>
|
||
<!-- delete -->
|
||
<li><a href="{% url 'user_delete' shown_user.id %}"><i class="icon-remove"></i> {% trans 'Delete participant' %}</a></li>
|
||
</ul>
|
||
</div>
|
||
{% endif %}
|
||
</small>
|
||
</h1>
|
||
|
||
|
||
<div class="user_details">
|
||
<fieldset>
|
||
<legend>{% trans "Personal data" %}</legend>
|
||
<label>{% trans "Gender" %}</label>
|
||
{{ shown_user.get_gender_display }}
|
||
<label>{% trans "Email" %}</label>
|
||
{{ shown_user.email }}
|
||
<label>{% trans "About me" %}</label>
|
||
{{ shown_user.about_me|linebreaks }}
|
||
</fieldset>
|
||
|
||
<fieldset>
|
||
<legend>{% trans "Event data" %}</legend>
|
||
<label>{% trans "Structure level" %}</label>
|
||
{{ shown_user.structure_level }}
|
||
<label>{% trans "Committee" %}</label>
|
||
{{ shown_user.committee }}
|
||
<label>{% trans "Groups" %}</label>
|
||
{% if shown_user.groups.all %}
|
||
{{ shown_user.groups.all|join:", " }}
|
||
{% else %}
|
||
{% trans "The participant is not member of any group." %}
|
||
{% endif %}
|
||
</fieldset>
|
||
|
||
{% if perms.participant.can_manage_participant %}
|
||
<fieldset>
|
||
<legend>{% trans "Administrative data" %}</legend>
|
||
<label>{% trans "Username" %}</label>
|
||
{{ shown_user.username }}
|
||
<label>{% trans "Comment" %}</label>
|
||
{{ shown_user.comment|linebreaks }}
|
||
<label>{% trans "Last Login" %}</label>
|
||
{% if shown_user.last_login > shown_user.date_joined %}
|
||
{{ shown_user.last_login }}
|
||
{% else %}
|
||
{% trans "The participant has not logged in yet." %}
|
||
{% endif %}
|
||
{% endif %}
|
||
</div>
|
||
{% endblock %}
|