forked from expo/troggle
enable wallet view even if not logged in
This commit is contained in:
@@ -91,7 +91,7 @@ xlate = {"url": "description url",
|
|||||||
"survex": "survex file",
|
"survex": "survex file",
|
||||||
}
|
}
|
||||||
|
|
||||||
@login_required_if_public
|
# @login_required_if_public
|
||||||
def scanupload(request, path=None):
|
def scanupload(request, path=None):
|
||||||
'''Upload scanned image files into a wallet on /expofiles
|
'''Upload scanned image files into a wallet on /expofiles
|
||||||
Also display and edit the contents.json data in the wallet.
|
Also display and edit the contents.json data in the wallet.
|
||||||
|
|||||||
@@ -18,13 +18,14 @@
|
|||||||
<div style = "max-width:35%; margin-left:20%; text-align: center; " >
|
<div style = "max-width:35%; margin-left:20%; text-align: center; " >
|
||||||
<form method ='post' enctype ="multipart/form-data">
|
<form method ='post' enctype ="multipart/form-data">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<br>
|
<br>{% if user.username %}
|
||||||
<input class="fancybutton" type = "file" multiple="multiple"
|
<input class="fancybutton" type = "file" multiple="multiple"
|
||||||
name = "uploadfiles" id="uploadfiles" />
|
name = "uploadfiles" id="uploadfiles" />
|
||||||
<br><br><br>
|
<br><br><br>
|
||||||
<button class="fancybutton" style="padding: 0.5em 25px; margin-left: 155px" type = "submit" value = "Upload" >
|
<button class="fancybutton" style="padding: 0.5em 25px; margin-left: 155px" type = "submit" value = "Upload" >
|
||||||
Upload
|
Upload
|
||||||
</button>
|
</button>
|
||||||
|
{% endif %}
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div style = "max-width:29%; margin-left:20%; text-align: left" >
|
<div style = "max-width:29%; margin-left:20%; text-align: left" >
|
||||||
@@ -156,11 +157,11 @@
|
|||||||
label = "survex" name = "survex" size ="{{survexsize}}"
|
label = "survex" name = "survex" size ="{{survexsize}}"
|
||||||
title="List of survex files using this data"
|
title="List of survex files using this data"
|
||||||
placeholder="{{survex}}" value="{{survex}}" />
|
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%; "
|
<button class="fancybutton" style="padding: 0.5em 25px; margin-left: 155px; font-size: 90%; "
|
||||||
type = "submit" value = "Edit" >
|
type = "submit" value = "Edit" >
|
||||||
Submit changes
|
Submit changes
|
||||||
</button>
|
</button>{% endif %}
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{% endif %} <!-- not create -->
|
{% endif %} <!-- not create -->
|
||||||
|
|||||||
Reference in New Issue
Block a user