mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-03-03 19:37:06 +00:00
@@ -1,36 +1,71 @@
|
|||||||
<h2>People I've Answered Questions About</h2>
|
<div class="row">
|
||||||
|
<div class="col-lg-6">
|
||||||
|
<h2>People I've Answered Questions About</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>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for relationship in person.relationships_as_source.all %}
|
{% for relationship in person.relationships_as_source.all %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ relationship.target }}</td>
|
<td>{{ relationship.target }}</td>
|
||||||
<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>
|
||||||
<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>
|
||||||
<a class="btn btn-sm btn-success"
|
<a class="btn btn-sm btn-success"
|
||||||
href="{% url 'people:relationship.update' relationship_pk=relationship.pk %}">Update</a>
|
href="{% url 'people:relationship.update' relationship_pk=relationship.pk %}">Update</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
{% empty %}
|
{% empty %}
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">No known relationships</td>
|
<td colspan="2">No known relationships</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
<a class="btn btn-success"
|
<div class="col-lg-6">
|
||||||
href="{% url 'people:person.relationship.create' person_pk=person.pk %}">New Relationship
|
<h2>Organisations I've Answered Questions About</h2>
|
||||||
</a>
|
|
||||||
|
<table class="table table-borderless">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Organisation Name</th>
|
||||||
|
<th></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
|
||||||
|
<tbody>
|
||||||
|
{% for relationship in person.organisation_relationships_as_source.all %}
|
||||||
|
<tr>
|
||||||
|
<td>{{ relationship.target }}</td>
|
||||||
|
<td>
|
||||||
|
<a class="btn btn-sm btn-info"
|
||||||
|
href="{% url 'people:organisation.detail' pk=relationship.target.pk %}">Profile</a>
|
||||||
|
<a class="btn btn-sm btn-info"
|
||||||
|
href="{% url 'people:organisation.relationship.detail' pk=relationship.pk %}">Relationship Detail</a>
|
||||||
|
<a class="btn btn-sm btn-success"
|
||||||
|
href="{% url 'people:organisation.relationship.update' relationship_pk=relationship.pk %}">Update</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
{% empty %}
|
||||||
|
<tr>
|
||||||
|
<td colspan="2">No known relationships</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
Reference in New Issue
Block a user