citavi_mapper/frontend/templates/project/view-person.html

97 lines
2.6 KiB
HTML
Raw Normal View History

{% extends "layout/base.html" %}
{% block head%}
{% load crispy_forms_tags %}
{% endblock %}
{% block navbar-header %}
<li><a href="{% url 'frontend-projects' %}">Back to projects</a></li>
{% endblock %}
{% block content %}
<p><strong>Name:</strong> {{project.name}}</h3>
<p><strong>Description:</strong> {{project.description}}</h3>
<p><strong>Current uploaded database filename:</strong> {{project.associated_filename}}</p>
<!--
<h3>Upload the new database version</h3>
<p>{% crispy form %}</p>
-->
<h3>List of unmapped citavi persons in project:</h3>
{% if not unmapped_persons %}
<p><strong>No unmapped persons in this project. Congratulations!</strong></p>
{% else %}
<table class="table table-hover table-bordered">
<thead>
<tr>
<th>ID</th>
<th>Prefix</th>
<th>Title</th>
<th>First Name</th>
<th>Middle Name</th>
<th>Last Name</th>
<th>Suffix</th>
<th>Sex</th>
<th>Abv.</th>
<th>Features</th>
</tr>
</thead>
<tbody>
{% for person_uuid, person in unmapped_persons.items %}
<tr>
<td>{{person.ID}}</td>
<td>{{person.Prefix}}</td>
<td>{{person.Title}}</td>
<td>{{person.FirstName}}</td>
<td>{{person.MiddleName}}</td>
<td>{{person.LastName}}</td>
<td>{{person.Suffix}}</td>
<td>{{person.Sex}}</td>
<td>{{person.Abbreviation}}</td>
<td>
<a href="{% url 'frontend-project-map-person' project.id person.ID %}" title="Enter mapping wizard starting here.">Map</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
<hr>
<h3>List of mapped citavi persons in project:</h3>
{% if not mapped_persons %}
<p><strong>No mapped persons in this project. Work harder!</strong></p>
{% else %}
<table class="table table-hover table-bordered">
<thead>
<tr>
<th>ID</th>
<th>Prefix</th>
<th>Title</th>
<th>First Name</th>
<th>Middle Name</th>
<th>Last Name</th>
<th>Suffix</th>
<th>Sex</th>
<th>Abv.</th>
<th>Features</th>
</tr>
</thead>
<tbody>
{% for person in mapped_persons.items %}
<tr>
<td>{{person.ID}}</td>
<td>{{person.Prefix}}</td>
<td>{{person.Title}}</td>
<td>{{person.FirstName}}</td>
<td>{{person.MiddleName}}</td>
<td>{{person.LastName}}</td>
<td>{{person.Suffix}}</td>
<td>{{person.Sex}}</td>
<td>{{person.Abbreviation}}</td>
<td>
<a href="{% url 'frontend-project-map-person' project.id person.ID %}" title="Enter mapping wizard starting here.">Map</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
{% endblock %}