mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-03-03 11:27:09 +00:00
@@ -50,16 +50,13 @@
|
|||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
<div class="row">
|
<h2>People I've Answered Questions About</h2>
|
||||||
<div class="col-md-6">
|
|
||||||
<h2>Relationships As Source</h2>
|
|
||||||
|
|
||||||
<table class="table table-borderless">
|
<table class="table table-borderless">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Contact Name</th>
|
<th>Contact Name</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
<th></th>
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
@@ -70,10 +67,12 @@
|
|||||||
<td>
|
<td>
|
||||||
<a class="btn btn-sm btn-info"
|
<a class="btn btn-sm btn-info"
|
||||||
href="{% url 'people:person.detail' pk=relationship.target.pk %}">Profile</a>
|
href="{% url 'people:person.detail' pk=relationship.target.pk %}">Profile</a>
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<a class="btn btn-sm btn-info"
|
<a class="btn btn-sm btn-info"
|
||||||
href="{% url 'people:relationship.detail' pk=relationship.pk %}">Relationship Detail</a>
|
href="{% url 'people:relationship.detail' pk=relationship.pk %}">Relationship Detail</a>
|
||||||
|
{% if person.user == request.user or request.user.is_superuser %}
|
||||||
|
<a class="btn btn-sm btn-success"
|
||||||
|
href="{% url 'people:relationship.update' relationship_pk=relationship.pk %}">Update</a>
|
||||||
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
@@ -86,48 +85,9 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<a class="btn btn-success btn-block"
|
<a class="btn btn-success"
|
||||||
href="{% url 'people:person.relationship.create' person_pk=person.pk %}">New Relationship
|
href="{% url 'people:person.relationship.create' person_pk=person.pk %}">New Relationship
|
||||||
</a>
|
</a>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-md-6">
|
|
||||||
<h2>Relationships As Target</h2>
|
|
||||||
|
|
||||||
<table class="table table-borderless">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Contact Name</th>
|
|
||||||
<th></th>
|
|
||||||
<th></th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
|
|
||||||
<tbody>
|
|
||||||
{% for relationship in person.relationships_as_target.all %}
|
|
||||||
<tr>
|
|
||||||
<td>{{ relationship.source }}</td>
|
|
||||||
<td>
|
|
||||||
<a class="btn btn-sm btn-info"
|
|
||||||
href="{% url 'people:person.detail' pk=relationship.source.pk %}">Profile</a>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<a class="btn btn-sm btn-info"
|
|
||||||
href="{% url 'people:relationship.detail' pk=relationship.pk %}">Relationship Detail</a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
{% empty %}
|
|
||||||
<tr>
|
|
||||||
<td colspan="2">No known relationships</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
{% endfor %}
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user