2014-09-25 17:36:42 +02:00
|
|
|
{% 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 %}
|
2014-09-29 13:40:07 +02:00
|
|
|
<h3>Project</h3>
|
2014-09-25 17:36:42 +02:00
|
|
|
<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>
|
|
|
|
|
2014-09-29 13:40:07 +02:00
|
|
|
<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>
|
2014-09-25 17:36:42 +02:00
|
|
|
{% 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>
|
2014-09-29 13:40:07 +02:00
|
|
|
<h3>List of mapped citavi persons in project</h3>
|
2014-09-25 17:36:42 +02:00
|
|
|
{% 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>
|
2014-09-29 13:40:07 +02:00
|
|
|
<th>Citavi_UUID</th>
|
|
|
|
<th>Features</th>
|
2014-09-25 17:36:42 +02:00
|
|
|
<th>Features</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2014-09-29 13:40:07 +02:00
|
|
|
{% for person_id, person in mapped_persons.items %}
|
2014-09-25 17:36:42 +02:00
|
|
|
<tr>
|
2014-09-29 13:40:07 +02:00
|
|
|
<td>{{person.citavi_uuid}}</td>
|
|
|
|
<td>{{person.global_identity}}</td>
|
2014-09-25 17:36:42 +02:00
|
|
|
<td>
|
2014-09-29 13:40:07 +02:00
|
|
|
<a href="#TODO" title="Enter mapping wizard starting here.">Delete Mapping</a>
|
2014-09-25 17:36:42 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|