summaryrefslogtreecommitdiffstats
path: root/templates/logreport.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/logreport.html')
-rw-r--r--templates/logreport.html17
1 files changed, 15 insertions, 2 deletions
diff --git a/templates/logreport.html b/templates/logreport.html
index b76b979..5db7c76 100644
--- a/templates/logreport.html
+++ b/templates/logreport.html
@@ -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>