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

85 lines
2.3 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 %}
<h3>Project</h3>
<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>Stats</h3>
<p>
<strong>Mapped:</strong> {{mapped_persons|length}}<br>
<strong>Unmapped:</strong> {{unmapped_persons|length}}<br>
</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>Citavi_UUID</th>
<th>Features</th>
<th>Features</th>
</tr>
</thead>
<tbody>
{% for person_id, person in mapped_persons.items %}
<tr>
<td>{{person.citavi_uuid}}</td>
<td>{{person.global_identity}}</td>
<td>
<a href="#TODO" title="Enter mapping wizard starting here.">Delete Mapping</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
{% endblock %}