2009-05-13 06:15:48 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
2009-05-14 14:24:46 +01:00
|
|
|
<form name="import" method="post" action="">
|
2009-05-13 06:15:48 +01:00
|
|
|
|
|
|
|
<h3>Dump:</h3>
|
|
|
|
|
|
|
|
<table>
|
|
|
|
<tr><td>Dump entire database and recreate tables: </td><td><input type="checkbox" name="dump_db" /></td></tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<h3>Import (non-destructive):</h3>
|
|
|
|
|
|
|
|
<table>
|
|
|
|
<tr><td>caves from cavetab2.csv using parsers\cavetab.py</td><td> <input type="checkbox" class="parser" name="import_cavetab"/></td></tr>
|
|
|
|
<tr><td>logbook entries using parsers\logbooks.py</td><td><input type="checkbox" name="import_logbooks"/></td></tr>
|
2009-05-13 06:23:57 +01:00
|
|
|
<tr><td>people from folk.csv using parsers\people.py</td><td><input type="checkbox" name="import_people"/></td></tr>
|
2009-05-14 14:24:46 +01:00
|
|
|
<tr><td>QMs using parsers\QMs.py</td><td><input type="checkbox" name="import_QMs" /></td></tr>
|
2009-05-13 06:15:48 +01:00
|
|
|
<tr><td>survey scans using parsers\surveys.py</td><td><input type="checkbox" name="import_surveys" /></td></tr>
|
2009-05-14 14:24:46 +01:00
|
|
|
<tr><td>survex data using parsers\survex.py</td><td><input type="checkbox" name="import_survex" /></td></tr>
|
2009-05-13 06:15:48 +01:00
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<input type="submit" id="Import" value="Import">
|
|
|
|
|
|
|
|
<input type="submit" name="check_all_import" id="check_all_import" value="Check all">
|
|
|
|
</p>
|
|
|
|
</form>
|
|
|
|
|
2009-05-14 14:24:46 +01:00
|
|
|
|
2009-05-13 06:15:48 +01:00
|
|
|
<h3>Export to csv:</h3>
|
|
|
|
<table>
|
|
|
|
<tr>
|
2009-05-14 14:24:46 +01:00
|
|
|
<td>
|
|
|
|
caves to cavetab2.csv
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<form name="export" method="post" action="">
|
|
|
|
<p>Overwrite the existing CAVETAB2.CSV file with one generated by Troggle.</p>
|
|
|
|
<input name="export_cavetab" type="submit" value="Update {{settings.EXPOWEB}}noinfo/CAVETAB2.CSV" />
|
|
|
|
</form>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<form name="export" method="get" action={% url downloadcavetab %}>
|
|
|
|
<p>Download a CAVETAB2.CSV file which is dynamically generated by Troggle.</p>
|
|
|
|
<input name="download_cavetab" type="submit" value="Download CAVETAB2.CSV" />
|
|
|
|
</form>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<td>qms to qms.csv</td><td>
|
|
|
|
<input name="export_cavetab" type="submit" value="Update qms file for" disabled />
|
|
|
|
<input name="export_cavetab_view" type="submit" value="Download file" disabled />
|
|
|
|
</td></tr>
|
2009-05-13 06:15:48 +01:00
|
|
|
</table>
|
2009-05-14 14:24:46 +01:00
|
|
|
</form>
|
|
|
|
|
2009-05-13 06:15:48 +01:00
|
|
|
{% endblock %}
|