summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2021-04-22 02:45:28 +0100
committerPhilip Sargent <philip.sargent@klebos.com>2021-04-22 02:45:28 +0100
commit8f89b022c78a6d2d5e1f87cd6d0127fefde7a27f (patch)
tree0334d72890765dc849ed368181965f03207951ad /templates
parent74403d28e9fc5aca83705c3cb749ba932bcce259 (diff)
downloadtroggle-8f89b022c78a6d2d5e1f87cd6d0127fefde7a27f.tar.gz
troggle-8f89b022c78a6d2d5e1f87cd6d0127fefde7a27f.tar.bz2
troggle-8f89b022c78a6d2d5e1f87cd6d0127fefde7a27f.zip
drawing file upload form working
Diffstat (limited to 'templates')
-rw-r--r--templates/cavemillenial.html32
-rw-r--r--templates/simpleupload.html50
2 files changed, 50 insertions, 32 deletions
diff --git a/templates/cavemillenial.html b/templates/cavemillenial.html
deleted file mode 100644
index 6c96ed8..0000000
--- a/templates/cavemillenial.html
+++ /dev/null
@@ -1,32 +0,0 @@
-{% extends "cavebase.html" %}
-
-
-{% block title %}Cave Index{% endblock %}
-
-{% block content %}
-
-<h1>Cave Index</h1>
-
-<h3>1623</h3>
-
-<table class="searchable">
-{% for cave in caves1623 %}
-
- <tr><td> <a href="{{ cave.url }}">{% if cave.kataster_number %}{{ cave.kataster_number }}{% else %}{{cave.unofficial_number }}{%endif %} {{cave.official_name|safe}}</a> </td></tr>
-
-{% endfor %}
-</table>
-
-<h3>1626</h3>
-
-<ul class="searchable">
-{% for cave in caves1626 %}
-
- <li> <a href="{{ cave.url }}">{% if cave.kataster_number %}{{ cave.kataster_number }}{% else %}{{cave.unofficial_number }}{%endif %} {{cave.official_name|safe}}</a> </li>
-
-{% endfor %}
-</ul>
-
-<a href="{% url "newcave" %}">New Cave</a>
-
-{% endblock %}
diff --git a/templates/simpleupload.html b/templates/simpleupload.html
new file mode 100644
index 0000000..d97234c
--- /dev/null
+++ b/templates/simpleupload.html
@@ -0,0 +1,50 @@
+{% extends "base.html" %}
+
+{% block title %}Simple Fileupload{% endblock %}
+
+{% block content %}
+
+<h2>Survey Scan upload into Wallet</h2>
+
+<div style = "max-width:470px; " >
+
+
+{% if filesaved %}
+<p style="margin-left:20%;">
+<b>The file was saved as <em>'{{actual_saved}}'</em> <br><br>Upload another?</b>
+</p>
+<br>
+{% endif %}
+
+
+<form method ='post' enctype ="multipart/form-data">
+ {% csrf_token %}
+
+
+ <br>
+
+
+ <input type = "file" style = "margin-left:20%;"
+ placeholder = "Simplefile" name = "simplefile" />
+
+ <br> <br>
+
+
+ <input type = "text" style = "margin-left:20%;"
+ placeholder = "Wallet id e.g. 2021#23" name = "title" value='2021#99' label="Wallet id"/>
+
+ </div>
+
+ <div style = "max-width:470px;">
+ <center>
+
+ <button style = "color: #fff; border:1px; background-color:#999; margin-top:8%;
+ height:35px; width:80%; margin-left:19%;" type = "submit" value = "Upload" >
+ <strong>Upload</strong>
+ </button>
+
+ </center>
+ </div>
+</form>
+</div>
+ {% endblock %}