2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-02-08 14:28:09 +00:00

extending logbook entry edit

This commit is contained in:
2023-08-10 23:17:03 +03:00
parent da8e22c856
commit d3c1736119
4 changed files with 89 additions and 26 deletions

View File

@@ -67,6 +67,7 @@
{% for personlogentry in logbookentry.personlogentry_set.all %}{% if personlogentry.is_logbook_entry_author %}<br />{{personlogentry.personexpedition.person}}{% endif %}{% endfor %}
<p>{{logbookentry.text|safe}}</p>
</div>
<p><a href="/logbookedit/{{logbookentry.slug|safe}}">Edit this entry</a>.
</div>
</div>

View File

@@ -40,10 +40,10 @@
<br /><br />
<label for="others">Other names (comma separated) <a href="/aliases/{{year}}">[valid aliases]</a></label>
<input {% if not user.username %} disabled{% endif %}
label = "others" name = "others" size="20"
label = "others" name = "others" size="{% if lenothers %}{{lenothers}}{% else %}20{% endif %}"
title="Everyone else involved"
{% if others %}value="{{others}}"{% else %}placeholder="Phil T, Chas, Planc" {% endif %}
required />
/>
<br /><br />
<label for="place">Place: cave name, or 'plateau', 'topcamp' etc.</label>
<input {% if not user.username %} disabled{% endif %}
@@ -60,7 +60,7 @@
required />
<br /><br />
<textarea {% if not user.username %} disabled{% endif %}
rows="5" cols="60"
rows="{% if textrows%}{{textrows}}{% else %}5{% endif %}" cols="70"
label = "" name = "text"
required />{% if entry %}{{entry}}{% else %}We had a lot of fun...{% endif %}
</textarea>