mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-03-03 03:17:07 +00:00
@@ -14,61 +14,70 @@
|
|||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
<dl>
|
{% if person.user == request.user or request.user.is_superuser %}
|
||||||
{% if person.gender %}
|
{% if person.user != request.user and request.user.is_superuser %}
|
||||||
<dt>Gender</dt>
|
<div class="alert alert-warning">
|
||||||
<dd>{{ person.get_gender_display }}</dd>
|
<strong>NB:</strong> You are able to see the details of this person because you are an admin.
|
||||||
|
Regular users are not able to see this information for people other than themselves.
|
||||||
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if person.age_group %}
|
<dl>
|
||||||
<dt>Age Group</dt>
|
{% if person.gender %}
|
||||||
<dd>{{ person.get_age_group_display }}</dd>
|
<dt>Gender</dt>
|
||||||
{% endif %}
|
<dd>{{ person.get_gender_display }}</dd>
|
||||||
|
|
||||||
{% if person.nationality %}
|
|
||||||
<dt>Nationality</dt>
|
|
||||||
<dd>{{ person.nationality.name }}</dd>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if person.country_of_residence %}
|
|
||||||
<dt>Country of Residence</dt>
|
|
||||||
<dd>{{ person.country_of_residence.name }}</dd>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if person.organisation %}
|
|
||||||
<dt>Organisation</dt>
|
|
||||||
<dd>{{ person.organisation }}</dd>
|
|
||||||
|
|
||||||
{% if person.organisation_started_date %}
|
|
||||||
<dt>Started Date</dt>
|
|
||||||
<dd>{{ person.organisation_started_date }}</dd>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if person.job_title %}
|
{% if person.age_group %}
|
||||||
<dt>Job Title</dt>
|
<dt>Age Group</dt>
|
||||||
<dd>{{ person.job_title }}</dd>
|
<dd>{{ person.get_age_group_display }}</dd>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if person.role %}
|
{% if person.nationality %}
|
||||||
<dt>Role</dt>
|
<dt>Nationality</dt>
|
||||||
<dd>{{ person.role }}</dd>
|
<dd>{{ person.nationality.name }}</dd>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if person.disciplines %}
|
{% if person.country_of_residence %}
|
||||||
<dt>Discipline(s)</dt>
|
<dt>Country of Residence</dt>
|
||||||
<dd>{{ person.disciplines }}</dd>
|
<dd>{{ person.country_of_residence.name }}</dd>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if person.themes.exists %}
|
{% if person.organisation %}
|
||||||
<dt>Project Themes</dt>
|
<dt>Organisation</dt>
|
||||||
<dd>
|
<dd>{{ person.organisation }}</dd>
|
||||||
{% for theme in person.themes.all %}
|
|
||||||
{{ theme }}{% if not forloop.last %}, {% endif %}
|
{% if person.organisation_started_date %}
|
||||||
{% endfor %}
|
<dt>Started Date</dt>
|
||||||
</dd>
|
<dd>{{ person.organisation_started_date }}</dd>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</dl>
|
{% endif %}
|
||||||
|
|
||||||
|
{% if person.job_title %}
|
||||||
|
<dt>Job Title</dt>
|
||||||
|
<dd>{{ person.job_title }}</dd>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if person.role %}
|
||||||
|
<dt>Role</dt>
|
||||||
|
<dd>{{ person.role }}</dd>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if person.disciplines %}
|
||||||
|
<dt>Discipline(s)</dt>
|
||||||
|
<dd>{{ person.disciplines }}</dd>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if person.themes.exists %}
|
||||||
|
<dt>Project Themes</dt>
|
||||||
|
<dd>
|
||||||
|
{% for theme in person.themes.all %}
|
||||||
|
{{ theme }}{% if not forloop.last %}, {% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
</dd>
|
||||||
|
{% endif %}
|
||||||
|
</dl>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<a class="btn btn-success"
|
<a class="btn btn-success"
|
||||||
href="{% url 'people:person.update' pk=person.pk %}">Update</a>
|
href="{% url 'people:person.update' pk=person.pk %}">Update</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user