mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-11-30 11:33:01 +00:00
78 lines
3.5 KiB
HTML
78 lines
3.5 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% load getconfig i18n django_tables2 static %}
|
|
|
|
{% block content %}
|
|
<div class="card bg-light shadow">
|
|
<div class="card-header text-center">
|
|
<h4>{{ user }}</h4>
|
|
</div>
|
|
<div class="card-body">
|
|
<dl class="row">
|
|
<dt class="col-xl-6 text-right">{% trans 'role'|capfirst %}</dt>
|
|
<dd class="col-xl-6">{{ tfjmuser.get_role_display }}</dd>
|
|
|
|
<dt class="col-xl-6 text-right">{% trans 'team'|capfirst %}</dt>
|
|
<dd class="col-xl-6"><a href="{% url "tournament:team_detail" pk=tfjmuser.team.pk %}">{{ tfjmuser.team }}</a></dd>
|
|
|
|
<dt class="col-xl-6 text-right">{% trans 'birth date'|capfirst %}</dt>
|
|
<dd class="col-xl-6">{{ tfjmuser.birth_date }}</dd>
|
|
|
|
<dt class="col-xl-6 text-right">{% trans 'gender'|capfirst %}</dt>
|
|
<dd class="col-xl-6">{{ tfjmuser.get_gender_display }}</dd>
|
|
|
|
<dt class="col-xl-6 text-right">{% trans 'address'|capfirst %}</dt>
|
|
<dd class="col-xl-6">{{ tfjmuser.address }}, {{ tfjmuser.postal_code }}, {{ tfjmuser.city }}{% if tfjmuser.country != "France" %}, {{ tfjmuser.country }}{% endif %}</dd>
|
|
|
|
<dt class="col-xl-6 text-right">{% trans 'email'|capfirst %}</dt>
|
|
<dd class="col-xl-6"><a href="mailto:{{ tfjmuser.email }}">{{ tfjmuser.email }}</a></dd>
|
|
|
|
<dt class="col-xl-6 text-right">{% trans 'phone number'|capfirst %}</dt>
|
|
<dd class="col-xl-6">{{ tfjmuser.phone_number }}</dd>
|
|
|
|
{% if tfjmuser.role == '3participant' %}
|
|
<dt class="col-xl-6 text-right">{% trans 'school'|capfirst %}</dt>
|
|
<dd class="col-xl-6">{{ tfjmuser.school }}</dd>
|
|
|
|
<dt class="col-xl-6 text-right">{% trans 'class'|capfirst %}</dt>
|
|
<dd class="col-xl-6">{{ tfjmuser.get_student_class_display }}</dd>
|
|
|
|
{% if tfjmuser.responsible_name %}
|
|
<dt class="col-xl-6 text-right">{% trans 'responsible name'|capfirst %}</dt>
|
|
<dd class="col-xl-6">{{ tfjmuser.responsible_name }}</dd>
|
|
{% endif %}
|
|
|
|
{% if tfjmuser.responsible_phone %}
|
|
<dt class="col-xl-6 text-right">{% trans 'responsible phone'|capfirst %}</dt>
|
|
<dd class="col-xl-6">{{ tfjmuser.responsible_phone }}</dd>
|
|
{% endif %}
|
|
|
|
{% if tfjmuser.responsible_email %}
|
|
<dt class="col-xl-6 text-right">{% trans 'responsible email'|capfirst %}</dt>
|
|
<dd class="col-xl-6"><a href="{{ tfjmuser.responsible_email }}">{{ tfjmuser.responsible_email }}</a></dd>
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
{% if tfjmuser.role == '2coach' %}
|
|
<dt class="col-xl-6 text-right">{% trans 'description'|capfirst %}</dt>
|
|
<dd class="col-xl-6">{{ tfjmuser.description }}</dd>
|
|
{% endif %}
|
|
</dl>
|
|
</div>
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<h4>{% trans "Documents" %}</h4>
|
|
|
|
{# TODO Display documents #}
|
|
|
|
{% if request.user.is_superuser %}
|
|
<hr>
|
|
<form method="post">
|
|
{% csrf_token %}
|
|
<button name="view_as" class="btn btn-block btn-warning">{% blocktrans %}View site as {{ tfjmuser }}{% endblocktrans %}</button>
|
|
</form>
|
|
{% endif %}
|
|
{% endblock %}
|