mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2026-01-18 19:12:58 +00:00
new entry deletuion capability
This commit is contained in:
@@ -19,9 +19,14 @@
|
||||
</p>
|
||||
|
||||
<p>(Hover mouse over the date to see the slug for the entry.)
|
||||
{% if logged_in %}<font color="red">Logged in as expoadmin</font>{% endif %}
|
||||
|
||||
|
||||
|
||||
<table class="expeditionlogbooks">
|
||||
<tr><th>Date</th><th>Logged trips and diary entries</th><th>Cave</th><th>Text..</th><th>Words</th><th>Author</th><th>Who else</th></tr>
|
||||
<tr><th>Date</th><th>Logged trips and diary entries</th><th>Cave</th><th>Text..</th><th>Words</th><th>Author</th><th>Who else</th>
|
||||
{% if logged_in %}<th><font color="red">Admin</font></th>{% endif %}
|
||||
</tr>
|
||||
{% regroup dateditems|dictsort:"date" by date as dates %}
|
||||
{% for date in dates %}
|
||||
{% for entry in date.list %}
|
||||
@@ -52,12 +57,20 @@
|
||||
<a href="/personexpedition/{{w.personexpedition.person}}/{{year}}">{{w.nickname_used}}</a>,
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
</td>
|
||||
{% if logged_in %}
|
||||
<form name="import" method="post" action="/logentrydelete/{{year}}">{% csrf_token %}
|
||||
<td><input type="hidden" value="{{entry.slug}}" name="entry_slug">
|
||||
<input type="submit" value="delete"></td>
|
||||
</form>
|
||||
{% endif %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<p>See also:
|
||||
<ul>
|
||||
|
||||
Reference in New Issue
Block a user