forked from expo/troggle
make nav cope with missing wallets
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
<a href="/survexfile/">Survex</a> |
|
||||
<a href="{% url "survexcaveslist" %}">All Survex</a> |
|
||||
<a href="{% url "allscans" %}">Scans</a> |
|
||||
<a href="{% url "walletedit" '0000:01' %}">Upload Scans</a> |
|
||||
<a href="{% url "walletedit" '/' %}">Upload Scans</a> |
|
||||
<a href="{% url "dwgallfiles" %}">Drawings</a> |
|
||||
<a href="{% url "dwgupload" %}">Upload Drawings</a> |
|
||||
<a href="{% url "photoupload" %}">Upload Photos</a> |
|
||||
|
||||
@@ -6,7 +6,7 @@ Upload the survexfile using e.g.
|
||||
(for a survex file for cave 1623-290). You will cut and paste the survex file data into the window on the form.
|
||||
|
||||
|
||||
<p>While still logged-in, go to this page <a href="/walletedit/0000:00">Create Wallet</a> which will take you to the next unused wallet number page, and click the 'Create' button. This will not actually complete
|
||||
<p>While still logged-in, go to this page <a href="/walletedit/">Create Wallet</a> which will take you to the next unused wallet number page, and click the 'Create' button. This will not actually complete
|
||||
the creation of the wallet until you have also set the date for the wallet in the wallet edit form (which will appear when you press 'Create').
|
||||
<p>
|
||||
While editing the wallet you should enter in the form the url of the survexfile which you have just created at e.g. <a href="/survexfile/caves-1623/290/mynewsurvex.svx">/survexfile/caves-1623/290/mynewsurvex.svx</a> (see above).
|
||||
|
||||
@@ -5,7 +5,13 @@
|
||||
{% block content %}
|
||||
|
||||
{% if user.username %}
|
||||
<h2>Wallet {{wallet}} - edit settings or upload a file</h2>
|
||||
{% 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 %}
|
||||
@@ -63,24 +69,27 @@
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
<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>
|
||||
{% 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 %}
|
||||
|
||||
</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 below and save it</em>.
|
||||
<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 %}
|
||||
|
||||
Reference in New Issue
Block a user