feat: Add export front page

This commit is contained in:
James Graham
2020-03-27 14:31:59 +00:00
parent af77cb39f8
commit 74aab162e1
3 changed files with 51 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
{% extends 'base.html' %}
{% block content %}
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item active" aria-current="page">Export Data</li>
</ol>
</nav>
<hr>
<table class="table table-borderless">
<thead>
<tr>
<th>Type</th>
<th>Records</th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td>People</td>
<td></td>
<td>
<a class="btn btn-info"
href="{% url 'people:person.api.list' %}?format=csv">Export</a>
</td>
</tr>
<tr>
<td>Relationships</td>
<td></td>
<td>
<a class="btn btn-info"
href="{% url 'people:relationship.api.list' %}?format=csv">Export</a>
</td>
</tr>
</tbody>
</table>
{% endblock %}