summaryrefslogtreecommitdiffstats
path: root/templates/controlPanel.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/controlPanel.html')
-rw-r--r--templates/controlPanel.html32
1 files changed, 27 insertions, 5 deletions
diff --git a/templates/controlPanel.html b/templates/controlPanel.html
index d60a327..028b7f2 100644
--- a/templates/controlPanel.html
+++ b/templates/controlPanel.html
@@ -1,6 +1,6 @@
{% extends "base.html" %}
{% block content %}
-<form name="form1" method="post" action="">
+<form name="import" method="post" action="">
<h3>Dump:</h3>
@@ -14,9 +14,9 @@
<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>
<tr><td>people from folk.csv using parsers\people.py</td><td><input type="checkbox" name="import_people"/></td></tr>
-<tr><td>QMs using parsers\QMs.py</td><td><input type="checkbox" name="QMs" value="import_QMs" /></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="survex" value="import_survex" /></td></tr>
+<tr><td>survex data using parsers\survex.py</td><td><input type="checkbox" name="import_survex" /></td></tr>
</table>
@@ -28,10 +28,32 @@
</p>
</form>
+
<h3>Export to csv:</h3>
<table>
<tr>
- <td>caves to cavetab2.csv</td><td> <input name="export_cavetab" type="submit" id="export_cavetab" value="Export" disabled /></td></tr>
-</label>
+ <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>
</table>
+</form>
+
{% endblock %} \ No newline at end of file