2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-01-31 07:22:32 +00:00

enable wallet view even if not logged in

This commit is contained in:
Philip Sargent 2022-03-24 20:45:15 +00:00
parent a514355e5e
commit 1589188988
2 changed files with 5 additions and 4 deletions

View File

@ -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.

View File

@ -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 -->