summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/views/uploads.py2
-rw-r--r--templates/scanuploadform.html7
2 files changed, 5 insertions, 4 deletions
diff --git a/core/views/uploads.py b/core/views/uploads.py
index e1ba9d1..31e7277 100644
--- a/core/views/uploads.py
+++ b/core/views/uploads.py
@@ -91,7 +91,7 @@ xlate = {"url": "description url",
"survex": "survex file",
}
-@login_required_if_public
+# @login_required_if_public
def scanupload(request, path=None):
'''Upload scanned image files into a wallet on /expofiles
Also display and edit the contents.json data in the wallet.
diff --git a/templates/scanuploadform.html b/templates/scanuploadform.html
index 8c3837f..68e6f98 100644
--- a/templates/scanuploadform.html
+++ b/templates/scanuploadform.html
@@ -18,13 +18,14 @@
<div style = "max-width:35%; margin-left:20%; text-align: center; " >
<form method ='post' enctype ="multipart/form-data">
{% csrf_token %}
- <br>
+ <br>{% if user.username %}
<input class="fancybutton" type = "file" multiple="multiple"
name = "uploadfiles" id="uploadfiles" />
<br><br><br>
<button class="fancybutton" style="padding: 0.5em 25px; margin-left: 155px" type = "submit" value = "Upload" >
Upload
</button>
+ {% endif %}
</form>
</div>
<div style = "max-width:29%; margin-left:20%; text-align: left" >
@@ -156,11 +157,11 @@
label = "survex" name = "survex" size ="{{survexsize}}"
title="List of survex files using this data"
placeholder="{{survex}}" value="{{survex}}" />
- <br><br>
+ <br><br>{% if user.username %}
<button class="fancybutton" style="padding: 0.5em 25px; margin-left: 155px; font-size: 90%; "
type = "submit" value = "Edit" >
Submit changes
- </button>
+ </button>{% endif %}
</form>
</div>
{% endif %} <!-- not create -->