2021-04-23 03:07:21 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block title %}Simple Fileupload{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
2022-07-17 13:00:37 +01:00
|
|
|
{% if user.username %}
|
2023-02-01 21:31:07 +00:00
|
|
|
{% if not create %}
|
|
|
|
<h2>Wallet {{wallet}} - edit settings or upload a file</h2>
|
|
|
|
{% else %}
|
|
|
|
<h2>Wallet {{wallet}} - Create a new Wallet</h2>
|
|
|
|
{% endif %}
|
|
|
|
</button>
|
|
|
|
|
2022-07-17 13:00:37 +01:00
|
|
|
{% else %}
|
|
|
|
<h2>Wallet {{wallet}}</h2>
|
|
|
|
{% endif %}
|
|
|
|
|
2022-08-14 20:52:14 +01:00
|
|
|
<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"
|
2023-02-01 17:21:33 +00:00
|
|
|
placeholder="{% now 'Y' %}#nn" value="{% now 'Y' %}#" />
|
2022-08-14 20:52:14 +01:00
|
|
|
|
|
|
|
|
|
|
|
</form>
|
2021-04-30 03:44:53 +01:00
|
|
|
<p style="font-family: monospace; font-weight: bold; font-size: 130%; text-align: center">
|
2023-01-31 17:13:41 +00:00
|
|
|
<a style="font-weight: normal;" href="/walletedit/{{prevy}}:01">{{prevy}}</a>
|
2021-04-30 03:44:53 +01:00
|
|
|
...
|
2023-01-31 17:13:41 +00:00
|
|
|
<a href="/walletedit/{{year}}:{{prev}}">{{year}}:{{prev}}</a>
|
2021-04-30 03:44:53 +01:00
|
|
|
← {{wallet}} →
|
2023-01-31 17:13:41 +00:00
|
|
|
<a href="/walletedit/{{year}}:{{next}}">{{year}}:{{next}}</a>
|
2021-04-30 03:44:53 +01:00
|
|
|
...
|
2023-01-31 17:13:41 +00:00
|
|
|
<a style="font-weight: normal;" href="/walletedit/{{nexty}}:01">{{nexty}}</a>
|
2022-08-14 20:52:14 +01:00
|
|
|
</p>
|
2021-04-23 03:07:21 +01:00
|
|
|
|
2022-08-14 20:52:14 +01:00
|
|
|
|
2021-05-01 18:35:08 +01:00
|
|
|
<div style = "max-width:35%; margin-left:20%; text-align: center; " >
|
2021-04-23 03:07:21 +01:00
|
|
|
<form method ='post' enctype ="multipart/form-data">
|
|
|
|
{% csrf_token %}
|
2022-03-24 20:45:15 +00:00
|
|
|
<br>{% if user.username %}
|
2023-02-01 17:21:33 +00:00
|
|
|
{% if not create %}
|
2021-05-01 18:35:08 +01:00
|
|
|
<input class="fancybutton" type = "file" multiple="multiple"
|
2021-05-04 20:56:44 +01:00
|
|
|
name = "uploadfiles" id="uploadfiles" />
|
2021-05-01 18:35:08 +01:00
|
|
|
<br><br><br>
|
2023-02-01 17:21:33 +00:00
|
|
|
{% 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 %}
|
2021-04-23 03:07:21 +01:00
|
|
|
</button>
|
2022-03-24 20:45:15 +00:00
|
|
|
{% endif %}
|
2021-04-23 03:07:21 +01:00
|
|
|
</form>
|
2021-05-01 18:35:08 +01:00
|
|
|
</div>
|
|
|
|
<div style = "max-width:29%; margin-left:20%; text-align: left" >
|
2021-04-30 18:02:05 +01:00
|
|
|
{% if filesaved %}
|
2021-05-01 18:35:08 +01:00
|
|
|
<p>
|
|
|
|
<b>File(s) saved as <br>
|
2021-04-30 18:02:05 +01:00
|
|
|
{% for f in actual_saved %}
|
2022-03-15 17:04:43 +00:00
|
|
|
<em>{{f}}</em> <br></b>
|
2021-04-30 18:02:05 +01:00
|
|
|
{% endfor %}
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
2021-04-30 03:44:53 +01:00
|
|
|
|
2023-02-01 21:31:07 +00:00
|
|
|
{% if not create %}
|
|
|
|
<p>
|
|
|
|
{% for f in files %}
|
|
|
|
<a href="/expofiles/surveyscans/{{year}}/{{wallet|urlencode}}/{{f}}">{{ f}}</a><br />
|
|
|
|
{% empty %}
|
|
|
|
<p><No files in this wallet. >
|
|
|
|
|
|
|
|
{% endfor %}
|
|
|
|
<ul>
|
|
|
|
{% for d in dirs %}
|
|
|
|
<a href="/expofiles/surveyscans/{{year}}/{{wallet|urlencode}}/{{d}}"><em>{{d}}</em></a><br />
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
|
2023-02-01 17:21:33 +00:00
|
|
|
</div>
|
2021-04-30 03:44:53 +01:00
|
|
|
</p>
|
2022-03-15 17:04:43 +00:00
|
|
|
{% if create %}
|
2023-02-01 17:21:33 +00:00
|
|
|
This online wallet does not yet exist.
|
2022-07-17 14:07:27 +01:00
|
|
|
{% if user.username %}
|
2023-02-01 21:31:07 +00:00
|
|
|
<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>.
|
2022-07-17 14:07:27 +01:00
|
|
|
{% else %}
|
2023-02-01 17:21:33 +00:00
|
|
|
<br><br>To create a wallet, you need to <a href=/accounts/login/>Log In </a> first and then return to this page.
|
2022-07-17 14:07:27 +01:00
|
|
|
{% endif %}
|
2022-08-16 12:19:25 +01:00
|
|
|
{% include 'wallet_new.html' %}
|
2022-03-15 17:04:43 +00:00
|
|
|
{% endif %}
|
|
|
|
|
2023-02-01 17:21:33 +00:00
|
|
|
|
2022-03-15 17:04:43 +00:00
|
|
|
<p><em>
|
2022-09-12 22:08:37 +01:00
|
|
|
<a href="/wallets/year/{{year}}">Wallet index for {{year}}</a>
|
2022-03-18 12:26:32 +00:00
|
|
|
<br />
|
2023-02-01 17:21:33 +00:00
|
|
|
<a href="/expedition/{{year}}">Logbook entries, People, Survex files for {{year}}</a>
|
2022-09-13 23:20:00 +01:00
|
|
|
<br /><br />
|
2023-02-01 17:21:33 +00:00
|
|
|
{% 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 %}
|
2022-03-15 17:04:43 +00:00
|
|
|
</em>
|
|
|
|
|
2022-07-17 13:00:37 +01:00
|
|
|
|
2023-02-01 17:21:33 +00:00
|
|
|
{% if not create %}
|
2022-07-17 13:00:37 +01:00
|
|
|
|
2023-02-01 17:21:33 +00:00
|
|
|
{% 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>
|
2022-07-17 13:00:37 +01:00
|
|
|
|
2023-02-01 17:21:33 +00:00
|
|
|
{% 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 %}
|
2022-07-17 13:00:37 +01:00
|
|
|
|
2023-02-01 17:21:33 +00:00
|
|
|
{% endif %}
|
2022-12-23 22:14:00 +00:00
|
|
|
|
2023-02-01 17:21:33 +00:00
|
|
|
{% include 'wallet_table.html' %}
|
2022-12-23 22:14:00 +00:00
|
|
|
|
2022-03-18 11:28:35 +00:00
|
|
|
<br>
|
|
|
|
<span style="font-family: monospace; font-size: 150%; ">
|
2022-07-17 13:00:37 +01:00
|
|
|
{% if cave %}<u>Cave ID</u>:
|
|
|
|
{% if caveobject %}<b>{{cave}}</b></a> which implies "<a href="/{{caveobject.url}}">{{caveobject}}</a>"<br>
|
|
|
|
{% else %}
|
|
|
|
<b>{{cave}}</b><br>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
2022-03-18 11:28:35 +00:00
|
|
|
{% if psg %}<u>Survey area</u>: <b>{{psg}}</b><br>{% endif %}
|
2022-09-13 22:31:37 +01:00
|
|
|
{% if svxfiles %}<u>Survex files</u>:
|
|
|
|
{% for svx in svxfiles %}
|
2022-03-18 11:28:35 +00:00
|
|
|
<a href="/survexfile/{{svx}}">{{svx}}</a>
|
|
|
|
{% endfor %}
|
2022-09-13 22:31:37 +01:00
|
|
|
<br>
|
2022-03-18 11:28:35 +00:00
|
|
|
{% endif %}
|
2022-09-13 22:31:37 +01:00
|
|
|
|
2022-08-31 10:09:07 +01:00
|
|
|
|
2022-03-18 11:28:35 +00:00
|
|
|
</span>
|
|
|
|
<span style="font-family: monospace; font-size: 130%; ">
|
2022-09-13 22:31:37 +01:00
|
|
|
|
2022-03-18 11:28:35 +00:00
|
|
|
</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>
|
2023-02-01 17:21:33 +00:00
|
|
|
<input {% if not user.username %} disabled{% endif %}
|
2022-03-18 11:28:35 +00:00
|
|
|
label = "Date" name = "date" size="12"
|
|
|
|
title="Date of the trip in ISO format: 2020-08-17"
|
|
|
|
placeholder="{{date}}" value="{{date}}" required />
|
|
|
|
<br>
|
2022-07-31 17:33:14 +01:00
|
|
|
<label for="cave">Cave ID (only needed if no survex file yet)</label>
|
2023-02-01 17:21:33 +00:00
|
|
|
<input {% if not user.username %} disabled{% endif %}
|
2022-03-18 11:28:35 +00:00
|
|
|
label = "Cave" name = "cave" size="12"
|
2022-09-21 22:25:02 +01:00
|
|
|
title="Single cave id e.g. 2017-DM-01 or 1623-256. Not a list. "
|
2022-03-18 11:28:35 +00:00
|
|
|
placeholder="{{cave}}" value="{{cave}}" />
|
|
|
|
<br>
|
2022-08-31 07:27:14 +01:00
|
|
|
<label for="psg">Survey area (wallet name)</label>
|
2023-02-01 17:21:33 +00:00
|
|
|
<input {% if not user.username %} disabled{% endif %}
|
2022-03-18 11:28:35 +00:00
|
|
|
label = "Survey area" name = "psg" size ="{{psgsize}}"
|
|
|
|
title="Survey area, e.g. White Elephant or Nieder Augst Eck"
|
|
|
|
placeholder="{{psg}}" value="{{psg}}" />
|
2022-09-20 20:05:35 +01:00
|
|
|
<br>
|
|
|
|
<label for="freetext">Free text for comments</label>
|
2023-02-01 17:21:33 +00:00
|
|
|
<input {% if not user.username %} disabled{% endif %}
|
2022-09-20 20:05:35 +01:00
|
|
|
label = "Free text" name = "freetext" size ="{{freetextsize}}"
|
|
|
|
title="e.g. scans for plan are in another wallet #99"
|
|
|
|
placeholder="{{freetext}}" value="{{freetext}}" />
|
2022-03-18 11:28:35 +00:00
|
|
|
<br>
|
|
|
|
<label for="plannr">Plan not required ?</label>
|
2023-02-01 17:21:33 +00:00
|
|
|
<input {% if not user.username %} disabled{% endif %} type="checkbox" name="plannr" id="plannr" value=" True" {% if "plan not required" in checked %}checked{% endif %}>
|
2022-03-18 11:28:35 +00:00
|
|
|
<br>
|
|
|
|
<label for="elevnr">Elevation not required ?</label>
|
2023-02-01 17:21:33 +00:00
|
|
|
<input {% if not user.username %} disabled{% endif %} type="checkbox" name="elevnr" id="elevnr" value="True" {% if "elev not required" in checked %}checked{% endif %}>
|
2022-03-18 11:28:35 +00:00
|
|
|
<br>
|
2022-07-17 13:00:37 +01:00
|
|
|
<label for="survexnr">Survex file not required ?</label>
|
2023-02-01 17:21:33 +00:00
|
|
|
<input {% if not user.username %} disabled{% endif %} type="checkbox" name="survexnr" id="survexnr" value="True" {% if "survex not required" in checked %}checked{% endif %}>
|
2022-03-18 11:28:35 +00:00
|
|
|
<br>
|
|
|
|
<label for="pland">Plan drawn ?</label>
|
2023-02-01 17:21:33 +00:00
|
|
|
<input {% if not user.username %} disabled{% endif %} type="checkbox" name="pland" id="pland" value="True" {{chkpland}} {% if "plan drawn" in checked %}checked{% endif %}>
|
2022-03-18 11:28:35 +00:00
|
|
|
<br>
|
|
|
|
<label for="elevd">Elevation drawn ?</label>
|
2023-02-01 17:21:33 +00:00
|
|
|
<input {% if not user.username %} disabled{% endif %} type="checkbox" name="elevd" id="elevd" value="True" {% if "elev drawn" in checked %}checked{% endif %}>
|
2023-02-02 17:39:56 +00:00
|
|
|
<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 %}>
|
2022-03-18 11:28:35 +00:00
|
|
|
<br>
|
2022-08-01 00:50:19 +01:00
|
|
|
<label for="descriptionw">Cave description written (or nothing recorded) ?</label>
|
2023-02-01 17:21:33 +00:00
|
|
|
<input {% if not user.username %} disabled{% endif %} type="checkbox" name="descriptionw" id="descriptionw" value="True" {% if "description written" in checked %}checked{% endif %}>
|
2022-03-18 11:28:35 +00:00
|
|
|
<br>
|
2022-08-01 00:50:19 +01:00
|
|
|
<label for="qmsw">QMs written (or none seen) ?</label>
|
2023-02-01 17:21:33 +00:00
|
|
|
<input {% if not user.username %} disabled{% endif %} type="checkbox" name="qmsw" id="qmsw" value="True" {% if "qms written" in checked %}checked{% endif %}>
|
2022-03-18 11:28:35 +00:00
|
|
|
<br>
|
|
|
|
<label for="websiteupt">Website updated ?</label>
|
2023-02-01 17:21:33 +00:00
|
|
|
<input {% if not user.username %} disabled{% endif %} type="checkbox" name="websiteupt" id="websiteupt" value="True" {% if "website updated" in checked %}checked{% endif %}>
|
2022-03-18 11:28:35 +00:00
|
|
|
<br>
|
|
|
|
<label for="electronic">Electronic survey ?</label>
|
2023-02-01 17:21:33 +00:00
|
|
|
<input {% if not user.username %} disabled{% endif %} type="checkbox" name="electronic" id="electronic" value="True" {% if "electronic survey" in checked %}checked{% endif %}>
|
2022-03-18 11:28:35 +00:00
|
|
|
<br>
|
2022-08-31 07:27:14 +01:00
|
|
|
<label for="people">List of people on the survey trip(s)</label>
|
2023-02-01 17:21:33 +00:00
|
|
|
<input {% if not user.username %} disabled{% endif %}
|
2022-03-18 11:28:35 +00:00
|
|
|
label = "People" name = "people" size ="{{peoplesize}}"
|
|
|
|
title="List of people on the survey trip"
|
|
|
|
placeholder="{{people}}" value="{{people}}" />
|
2022-09-19 18:55:34 +01:00
|
|
|
|
2022-03-18 11:28:35 +00:00
|
|
|
<br>
|
|
|
|
<label for="survex">List of survex files</label>
|
2023-02-01 17:21:33 +00:00
|
|
|
<input {% if not user.username %} disabled{% endif %}
|
2022-03-18 11:28:35 +00:00
|
|
|
label = "survex" name = "survex" size ="{{survexsize}}"
|
|
|
|
title="List of survex files using this data"
|
2022-08-16 18:52:34 +01:00
|
|
|
placeholder="caves-1623/264/side_balkon/siriuscyberlift.svx" value="{{survex}}" />
|
2022-03-24 20:45:15 +00:00
|
|
|
<br><br>{% if user.username %}
|
2022-03-18 11:28:35 +00:00
|
|
|
<button class="fancybutton" style="padding: 0.5em 25px; margin-left: 155px; font-size: 90%; "
|
|
|
|
type = "submit" value = "Edit" >
|
|
|
|
Submit changes
|
2022-03-24 20:45:15 +00:00
|
|
|
</button>{% endif %}
|
2022-03-18 11:28:35 +00:00
|
|
|
</form>
|
|
|
|
</div>
|
2022-09-13 22:31:37 +01:00
|
|
|
<span style="font-family: monospace; font-size: 150%; ">
|
|
|
|
|
|
|
|
{% if trips %}<u>Logbook trips</u> on this date:<br>
|
|
|
|
<span style="font-size: 70%; ">
|
|
|
|
{% for item in trips %}
|
|
|
|
{% if item.isLogbookEntry %} <a href="{{item.get_absolute_url}}">{{item.title|safe}}</a><br/>{% endif %}
|
|
|
|
{% empty %}
|
|
|
|
<em>None found for this date, bit there should be..</em><br>
|
|
|
|
{% endfor %}
|
|
|
|
</span>
|
|
|
|
{% else %}
|
|
|
|
<em>No Logbook trips found for this date.</em><br>
|
|
|
|
{% endif %}
|
|
|
|
{% if svxothers %}<u>Other survex files</u> on this date:<br>
|
|
|
|
<span style="font-size: 70%; ">
|
|
|
|
{% for item in svxothers %}
|
|
|
|
{% if item.isSurvexBlock %} <a href="/survexfile/{{item.survexfile.path}}">{{item.survexfile.path|safe}}</a><br/>{% endif %}
|
|
|
|
{% empty %}
|
|
|
|
<em>None found for this date, bit there should be..</em><br>
|
|
|
|
{% endfor %}
|
|
|
|
</span>
|
|
|
|
{% else %}
|
|
|
|
<em>No other survex files found for this date.</em><br>
|
|
|
|
{% endif %}
|
|
|
|
{% if metadataurl %}<u>Debug</u>:
|
|
|
|
<span style="font-size: 70%; ">
|
|
|
|
<a href="{{metadataurl}}">json file</a><br> {% endif %}
|
|
|
|
</span>
|
|
|
|
</span>
|
2022-03-18 11:28:35 +00:00
|
|
|
{% endif %} <!-- not create -->
|
2022-03-15 17:04:43 +00:00
|
|
|
{% endblock %}
|