better hint for svx file name input

This commit is contained in:
Philip Sargent 2022-08-16 20:47:24 +03:00
parent 41c68aef26
commit f1aa6a9794
2 changed files with 5 additions and 3 deletions

View File

@ -469,6 +469,8 @@ def scanupload(request, path=None):
if waldata[f]:
checked[f] = "checked"
survexsize = str(min(len(str(waldata["survex file"])), 35))
context = {'year': year, 'prev': prev, 'next': next, 'prevy': prevy, 'nexty': nexty,
'files': files, 'dirs': dirs, 'waldata': waldata, 'svxfiles': svxfiles,
'checked': checked,
@ -482,7 +484,7 @@ def scanupload(request, path=None):
{'form': form, 'wallet': wallet, **context,
'date': waldata["date"],
'url': waldata["description url"], 'urlsize': str(len(str(waldata["description url"]))),
'survex': waldata["survex file"], 'survexsize': str(len(str(waldata["survex file"]))),
'survex': waldata["survex file"], 'survexsize': survexsize,
'cave': cave, 'psg': psg, 'psgsize': str(max(12,len(str(psg))))})
else: # no wallet here
context = {'year': year, 'prev': prev, 'next': next, 'prevy': prevy, 'nexty': nexty,
@ -496,7 +498,7 @@ def scanupload(request, path=None):
{'form': form, 'wallet': wallet, **context,
'date': "",
'url': "", 'urlsize': 12,
'survex': "", 'survexsize': 12,
'survex': "", 'survexsize': 35,
'cave': cave, 'psg': psg, 'psgsize': 12})
@login_required_if_public

View File

@ -199,7 +199,7 @@
<input
label = "survex" name = "survex" size ="{{survexsize}}"
title="List of survex files using this data"
placeholder="{{survex}}" value="{{survex}}" />
placeholder="caves-1623/264/lower_balkon/tartarus.svx" value="{{survex}}" />
<br><br>{% if user.username %}
<button class="fancybutton" style="padding: 0.5em 25px; margin-left: 155px; font-size: 90%; "
type = "submit" value = "Edit" >