1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
|
{% extends "base.html" %}
{% block title %}Wallet upload{% endblock %}
{% block content %}
{% if user.username %}
{% if not create %}
<h2>Wallet {{wallet}} - edit settings or upload a file</h2>
{% else %}
<h2>Wallet {{wallet}} - Create a new Wallet</h2>
{% endif %}
</button>
{% else %}
<h2>Wallet {{wallet}}</h2>
{% endif %}
<style>
var {font-family: monospace;
}
</style>
<form method ='post' style="text-align: center">
{% csrf_token %}
<button class="fancybutton" style="padding: 0.5em 25px; font-size: 80%;" type = "submit" value = "Go to" >
Go directly to this wallet: →
</button>
<input
label = "WalletGoto" name = "walletgoto" size="7"
title="Wallet name to go to directly"
placeholder="{% now 'Y' %}#nn" value="{% now 'Y' %}#" />
</form>
<p style="font-family: monospace; font-weight: bold; font-size: 130%; text-align: center">
<a style="font-weight: normal;" href="/walletedit/{{prevy|urlencode}}:01">{{prevy}}</a>
...
<a href="/walletedit/{{recent_year}}:{{recent_number}}">{{recent_year}}:{{recent_number}}</a>
← {{wallet}} →
<a href="/walletedit/{{year}}:{{next}}">{{year}}:{{next}}</a>
...
<a style="font-weight: normal;" href="/walletedit/{{nexty|urlencode}}:01">{{nexty}}</a>
</p>
<div style = "max-width:35%; margin-left:20%; text-align: center; " >
<form method ='post' enctype ="multipart/form-data">
{% csrf_token %}
<br>{% if user.username %}
{% if not create %}
<input class="fancybutton" type = "file" multiple="multiple"
name = "uploadfiles" id="uploadfiles" />
<br><br><br>
{% endif %}
<button class="fancybutton" style="padding: 0.5em 25px; margin-left: 155px" name="submitbutton" type = "submit"
{% if not create %}
value = "Upload" > Upload
{% else %}
value = "Create" > Create Wallet
{% endif %}
</button>
{% endif %}
</form>
<details style="text-align: left"><summary>Troggle needs standardised filenames. Use <br />
"<var>notes1-myhole.jpg</var>", "<var>notes2-myhole.jpg</var>" etc. for in-cave notes,<br />
"<var>plan1-myhole.jpg</var>" for the first page of the <em>drawn up</em> plan, <br />
"<var>elev3-myhole.jpg</var>" for p3 of the <em>drawn up</em> elevation<br />
"<var>new-2020-XY-01.jpg</var>" for new cave sheet for cave <em>2020-XY-01</em>.
<p><u>Click</u> for more details.</summary>
<div align="left"><p>Please do NOT invent your own filenaming scheme. We have a 20-year old scheme for naming scanned files, <br><br>
Name the scanned pages <var>"notes-cavepassagename.jpg"</var> etc., or <var>notes-1.jpg</var> if you like, but self-describing filenames are better. This is important as a script detects whether these files exist (with names beginning <var>"notes..", "plan.." and "elev.."</var>) and if you name them something else it will hassle you unnecessarily. (Or you can use this format <var>cavepassagename5-notes.jpg</var> if you like.) See how this works in the Handbook: <a href="/handbook/survey/newwallet.html">Creating a Wallet</a>
<p>The '<var>plan..</var>' and '<var>elev..</var>' scans are <em>for fully drawn-up Tunnel or Therion plans or elevations</em>. If you have hand-sketches, then these are '<var>notes..</var>' as are the raw survex survey data numbers.</div></details>
<details style="text-align: left"><summary>Troggle needs ALL the digital data files. </summary>
<div align="left"><p>We need the raw data from Topodroid or whatever. All the device software-specific files (in a zip if your like)
and <em>also</em> the exported files in standard formats: svx, svg etc. See why in the Handbook: <a href="/handbook/survey/newwallet.html">Creating a Wallet</a> </div></details>
</div>
<div style = "max-width:29%; margin-left:20%; text-align: left" >
{% if filesaved %}
<p>
<b>File(s) saved as <br>
{% for f in actual_saved %}
<em>{{f}}</em> <br></b>
{% endfor %}
</p>
{% endif %}
{% if not create %}
<p>
{% for f in files %}
<a href="/expofilerename/surveyscans/{{year}}/{{wallet|urlencode}}/{{f|urlencode}}">»</a> <a href="/expofiles/surveyscans/{{year}}/{{wallet|urlencode}}/{{f|urlencode}}">{{ f}}</a> - <a href="/expofilerename/surveyscans/{{year}}/{{wallet|urlencode}}/{{f|urlencode}}"><em>Rename or Rotate</em></a><br />
{% empty %}
<p><No files in this wallet. >
{% endfor %}
<ul>
{% for d in dirs %}
<a href="/expofiles/surveyscans/{{year}}/{{wallet|urlencode}}/{{d|urlencode}}"><em>{{d}}</em></a><br />
{% endfor %}
</ul>
{% endif %}
</div>
</p>
{% if create %}
This online wallet does not yet exist.
{% if user.username %}
<br><br>It will be created when you click the Create button, <em>and then edit the date in the form and save it</em>.
{% else %}
<br><br>To create a wallet, you need to <a href=/accounts/login/>Log In </a> first and then return to this page.
{% endif %}
{% include 'wallet_new.html' %}
{% endif %}
<p><em>
<a href="/wallets/year/{{year}}">Wallet index for {{year}}</a>
<br />
<a href="/expedition/{{year}}">Logbook entries, People, Survex files for {{year}}</a>
<br /><br />
{% if user.username %}
<a href="/handbook/survey/newwallet.html#onlinew">HELP with using this form</a>
{% else %}
<a href="/handbook/survey/newwallet.html#onlinew">HELP with editing a wallet and uploading scans</a>
{% endif %}
</em>
{% if not create %}
{% if complaints %}
<h3 style="text-align: left; color: red">Complaints</h3>
<ul style="list-style-type: disc; color: red">
{% for cmp in complaints%}
<li>{{cmp}}
{% endfor %}
</ul>
{% if user.username %}
{% else %}
<p>You will need to log in to the website (top right menu bar) to be able to edit the settings on this wallet.
{% endif %}
{% endif %}
{% include 'wallet_table.html' %}
<br>
<span style="font-family: monospace; font-size: 150%; ">
{% for wallet in manywallets %}
<u>Cave IDs</u>:
{% for c in wallet.caves.all %}
<a href="/cave/scans/{{c.slug}}">{{c}}</a>
{% endfor %}<br />
{% if psg %}<u>Survey area</u>: <b>{{psg}}</b><br>{% endif %}
{% if svxfiles %}<u>Survex files</u>:
{% for svx in svxfiles %}
<a href="/survexfile/{{svx|urlencode}}">{{svx}}</a>
{% endfor %}
<br>
{% endif %}
{% endfor %}
</span>
<span style="font-family: monospace; font-size: 130%; ">
</span>
<style>
input {font-family: monospace; font-weight: bold; font-size: 100%; padding: 0.5em; }
</style>
<div style = "max-width:100%; margin-left:15%; font-family: monospace; font-weight: bold; font-size: 150%; text-align: right; " >
<form method ='post'>
{% csrf_token %}
<label for="date">Date of the survey trip</label>
<input {% if not user.username %} disabled{% endif %}
label = "Date" name = "date" size="12"
title="Date of the trip in ISO format: 2020-08-17"
placeholder="{{date}}" value="{{date}}" required />
<br>
<label for="cave">Cave ID (only needed if no survex file yet)</label>
<input {% if not user.username %} disabled{% endif %}
label = "Cave" name = "cave" size="12"
title="Single cave id or comma-separated list e.g. 2017-DM-01, 1623-256. "
placeholder="{{cave}}" value="{{cave}}" />
<br>
<label for="psg">Survey area (wallet name)</label>
<input {% if not user.username %} disabled{% endif %}
label = "Survey area" name = "psg" size ="{{psgsize}}"
title="Survey area, e.g. White Elephant or Nieder Augst Eck"
placeholder="{{psg}}" value="{{psg}}" />
<br>
<label for="freetext">Free text for comments</label>
<input {% if not user.username %} disabled{% endif %}
label = "Free text" name = "freetext" size ="{{freetextsize}}"
title="e.g. scans for plan are in another wallet #99"
placeholder="{{freetext}}" value="{{freetext}}" />
<br>
<label for="plannr">Plan not required ?</label>
<input {% if not user.username %} disabled{% endif %} type="checkbox" name="plannr" id="plannr" value=" True" {% if "plan not required" in checked %}checked{% endif %}>
<br>
<label for="elevnr">Elevation not required ?</label>
<input {% if not user.username %} disabled{% endif %} type="checkbox" name="elevnr" id="elevnr" value="True" {% if "elev not required" in checked %}checked{% endif %}>
<br>
<label for="survexnr">Survex file not required ?</label>
<input {% if not user.username %} disabled{% endif %} type="checkbox" name="survexnr" id="survexnr" value="True" {% if "survex not required" in checked %}checked{% endif %}>
<br>
<label for="pland">Plan drawn ?</label>
<input {% if not user.username %} disabled{% endif %} type="checkbox" name="pland" id="pland" value="True" {{chkpland}} {% if "plan drawn" in checked %}checked{% endif %}>
<br>
<label for="elevd">Elevation drawn ?</label>
<input {% if not user.username %} disabled{% endif %} type="checkbox" name="elevd" id="elevd" value="True" {% if "elev drawn" in checked %}checked{% endif %}>
<br>
<label for="notesnr">Notes not required ?</label>
<input {% if not user.username %} disabled{% endif %} type="checkbox" name="notesnr" id="notesnr" value=" True" {% if "notes not required" in checked %}checked{% endif %}>
<br>
<label for="descriptionw">Cave description written (or nothing recorded) ?</label>
<input {% if not user.username %} disabled{% endif %} type="checkbox" name="descriptionw" id="descriptionw" value="True" {% if "description written" in checked %}checked{% endif %}>
<br>
<label for="qmsw">QMs written (or none seen) ?</label>
<input {% if not user.username %} disabled{% endif %} type="checkbox" name="qmsw" id="qmsw" value="True" {% if "qms written" in checked %}checked{% endif %}>
<br>
<label for="websiteupt">Cave Description wepage updated ?</label>
<input {% if not user.username %} disabled{% endif %} type="checkbox" name="websiteupt" id="websiteupt" value="True" {% if "website updated" in checked %}checked{% endif %}>
<br>
<label for="electronic">Electronic survey (upload digital data files) ?</label>
<input {% if not user.username %} disabled{% endif %} type="checkbox" name="electronic" id="electronic" value="True" {% if "electronic survey" in checked %}checked{% endif %}>
<br>
<label for="people">List of people on the survey trip(s)</label>
<input {% if not user.username %} disabled{% endif %}
label = "People" name = "people" size ="{{peoplesize}}"
title="List of people on the survey trip"
placeholder="{{people}}" value="{{people}}" />
<br>
<label for="survex">List of survex files</label>
<input {% if not user.username %} disabled{% endif %}
label = "survex" name = "survex" size ="{{survexsize}}"
title="List of survex files using this data"
placeholder="['caves-1623/148/148-2007.svx']" value="{{survex}}" />
<br>
<label for="id_identified_login">Identified login:</label>
<input type="checkbox" name="identified_login" onclick="return false"
{% if identified_login %} checked{% endif %}
id="id_identified_login"><br />
<br>
<label for="who_are_you">Who are you:</label>
<input
{% if not user.username %} disabled{% endif %}
{% if identified_login %} readonly{% endif %}
value="{{who_are_you}}"
label = "Who are you" name = "who_are_you" size ="{{freetextsize}}"
title="Who are you:"
placeholder="You who are editing this page e.g. Animal <mta@gasthof.expo>" value="{{who_are_you}}" required/>
<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>{% endif %}
</form>
</div>
<span style="font-family: monospace; font-size: 150%; ">
{% include 'onthisdate.html' %}
{% if metadataurl %}<span style="font-size: 70%; "><details><summary>
JSON <br>
</summary>
<a href="{{metadataurl|urlencode}}">{{metadataurl}}</a><br>
<pre>
{{metadata}}
</pre>
</span>
</details>
{% else %}<span style="font-size: 70%; ">
<em>No JSON file yet.</em><br>
</span>
{% endif %}
{% endif %} <!-- not create -->
</span>
{% endblock %}
|