2011-07-11 02:10:22 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
{% if jobs_completed %}
|
|
|
|
<div class="noticeBox">
|
|
|
|
Just finished running:
|
|
|
|
<ul>
|
|
|
|
{% for job in jobs_completed %}
|
|
|
|
<li>{{ job }}</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% if settings.LOGFILE %}See the logfile at {{settings.LOGFILE}} for more information.{% endif %}
|
|
|
|
<a href="#" class="closeDiv">dismiss this message</a>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if error %}
|
|
|
|
<div class="noticeBox">
|
2020-05-31 21:03:40 +01:00
|
|
|
{{ error }}
|
2011-07-11 02:10:22 +01:00
|
|
|
<a href="#" class="closeDiv">dismiss this message</a>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
|
|
<form name="reset" method="post" action="">
|
2019-03-10 11:05:57 +00:00
|
|
|
<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>
|
|
|
|
<h3>Import (non-destructive):</h3>
|
|
|
|
<form name="import" method="post" action="">
|
2019-03-10 11:05:57 +00:00
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td>people from folk.csv using parsers\people.py</td>
|
|
|
|
<td><input type="checkbox" name="import_people"/></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>logbook entries using parsers\logbooks.py</td>
|
|
|
|
<td><input type="checkbox" name="import_logbooks"/></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>QMs using parsers\QMs.py</td>
|
|
|
|
<td><input type="checkbox" name="import_QMs" /></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>survey scans using parsers\surveys.py</td>
|
|
|
|
<td><input type="checkbox" name="import_surveys" /></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>survex data using parsers\survex.py</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">
|
|
|
|
|
|
|
|
<input type="submit" name="check_all_import" id="check_all_import" value="Check all" disabled >
|
|
|
|
</p>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
<h3>Export to legacy formats:</h3>
|
|
|
|
<table>
|
|
|
|
|
|
|
|
<th>
|
|
|
|
<td>Export onto server</td>
|
|
|
|
<td>Export and Download</td>
|
|
|
|
</th>
|
|
|
|
|
|
|
|
<tr>
|
2020-05-31 21:03:40 +01:00
|
|
|
<td>
|
|
|
|
surveys to Surveys.csv
|
2011-07-11 02:10:22 +01:00
|
|
|
</td>
|
2020-05-31 21:03:40 +01:00
|
|
|
<td>
|
2011-07-11 02:10:22 +01:00
|
|
|
|
|
|
|
</td>
|
|
|
|
<td>
|
2018-04-11 22:02:57 +01:00
|
|
|
<form name="export" method="get" action={% url "downloadlogbook" %}>
|
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="txt">.txt file with MediaWiki markup - 2008 style</option>
|
|
|
|
<option value="html">.html file - 2005 style</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>
|
|
|
|
|
2020-05-31 21:03:40 +01:00
|
|
|
|
2011-07-11 02:10:22 +01:00
|
|
|
<tr>
|
|
|
|
<td>qms to qms.csv</td><td>
|
2020-05-31 21:03:40 +01:00
|
|
|
<form name="export_qms" method="get" action="downloadqms">
|
|
|
|
|
2011-07-11 02:10:22 +01:00
|
|
|
<!--This is for choosing caves by area (drilldown).
|
|
|
|
|
|
|
|
<select id="qmcaveareachooser" class="searchable" >
|
|
|
|
</select>
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
2020-05-31 21:03:40 +01:00
|
|
|
Choose a cave.
|
2011-07-11 02:10:22 +01:00
|
|
|
<select name="cave_id" id="qmcavechooser">
|
|
|
|
|
|
|
|
{% for cave in caves %}
|
|
|
|
<option value="{{cave.kataster_number}}">{{cave}}
|
2020-05-31 21:03:40 +01:00
|
|
|
</option>
|
2011-07-11 02:10:22 +01:00
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<input type="submit" value="Download"/>
|
|
|
|
</form>
|
|
|
|
</td></tr>
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
|
2020-05-31 21:03:40 +01:00
|
|
|
{% endblock %}
|