troggle-unchained/templates/controlPanel.html

128 lines
3.5 KiB
HTML
Raw Normal View History

2011-07-11 02:10:22 +01:00
{% extends "base.html" %}
{% block content %}
{% if jobs_completed %}
<div class="noticeBox">
2021-04-27 20:44:24 +01:00
&nbsp;Just finished running:
2011-07-11 02:10:22 +01:00
<ul>
{% for job in jobs_completed %}
<li>{{ job }}</li>
{% endfor %}
</ul>
2021-04-27 20:44:24 +01:00
&nbsp;See <a href="/dataissues">Data Issues</a> report
<br>&nbsp;
2011-07-11 02:10:22 +01:00
</div>
{% endif %}
{% if error %}
<div class="noticeBox">
2020-05-31 21:03:40 +01:00
{{ error }}
2011-07-11 02:10:22 +01:00
</div>
{% endif %}
2021-04-27 20:44:24 +01:00
<div style="column-count: 2;">
{%comment%}
2011-07-11 02:10:22 +01:00
<form name="reset" method="post" action="">
2021-04-27 20:44:24 +01:00
{% csrf_token %}
<h3>Wipe:</h3>
<table>
<tr>
<td>Wipe entire database and recreate tables: </td>
<td><input type="checkbox" name="reload_db" /></td>
<td>
<input type="submit" id="Import" value="I really want to delete all information in troggle, and accept all responsibility.">
</td>
</tr>
</table>
2011-07-11 02:10:22 +01:00
</form>
2021-04-27 20:44:24 +01:00
{% endcomment %}
<h3>Import (on top of existing data):</h3>
<p>To get a fully-functioning system, all these imports must be done and in this order.
2011-07-11 02:10:22 +01:00
<form name="import" method="post" action="">
2021-04-27 20:44:24 +01:00
{% csrf_token %}
<table>
<tr>
2021-04-27 20:44:24 +01:00
<th colspan="2">Import from master files</th>
</tr>
<tr>
<td>all caves </td>
<td><input type="checkbox" name="import_caves"/></td>
</tr>
<tr>
<td>all people </td>
<td><input type="checkbox" name="import_people"/></td>
</tr>
<tr>
2021-04-27 20:44:24 +01:00
<td>all surveys scans </td>
<td><input type="checkbox" name="import_surveyscans"/></td>
</tr>
<tr>
<td>all logbooks</td>
<td><input type="checkbox" name="import_logbooks"/></td>
</tr>
<tr>
2021-04-27 20:44:24 +01:00
<td>QMs (from old csv files)</td>
<td><input type="checkbox" name="import_QMs" /></td>
</tr>
<tr>
2021-04-27 20:44:24 +01:00
<td>all drawings files</td>
<td><input type="checkbox" name="import_drawingsfiles" /></td>
</tr>
<tr>
2021-04-27 20:44:24 +01:00
<td>all survex data (10 minutes)</td>
<td><input type="checkbox" name="import_survex" /></td>
</tr>
</table>
2011-07-11 02:10:22 +01:00
<p>
<input type="submit" id="Import" value="Import">
</p>
</form>
2021-04-27 20:44:24 +01:00
<p>&nbsp;
2011-07-11 02:10:22 +01:00
2021-04-27 20:44:24 +01:00
<h3>Export to a different format:</h3>
<p>This creates 'newlogbook.html' in the years/&lt;year&gt;/ folder
<table>
2011-07-11 02:10:22 +01:00
<tr>
2021-04-27 20:44:24 +01:00
<th>Export and Download</th>
</tr>
<tr>
2011-07-11 02:10:22 +01:00
<td>
<form name="export" method="POST" action={% url "exportlogbook" %}>
2021-04-27 20:44:24 +01:00
{% csrf_token %}
2020-05-31 21:03:40 +01:00
<p>Download a logbook file which is dynamically generated by Troggle.</p>
2011-07-11 02:10:22 +01:00
<p>
Expedition year:
<select name="year">
{% for expedition in expeditions %}
2020-05-31 21:03:40 +01:00
<option value="{{expedition}}"> {{expedition}} </option>
2011-07-11 02:10:22 +01:00
{% endfor %}
</select>
</p>
<p>
Output style:
2020-05-31 21:03:40 +01:00
<select name="extension">
<option value="html">.html file - 2005 style</option>
2021-04-27 20:44:24 +01:00
<option value="txt">.txt file with MediaWiki markup</option>
2011-07-11 02:10:22 +01:00
</select>
</p>
<p>
<input name="download_logbook" type="submit" value="Download logbook" />
</p>
</form>
2020-05-31 21:03:40 +01:00
</td>
2011-07-11 02:10:22 +01:00
</tr>
</table>
</form>
2021-04-27 20:44:24 +01:00
</div>
2020-05-31 21:03:40 +01:00
{% endblock %}