summaryrefslogtreecommitdiffstats
path: root/templates/logbook2005style.html
diff options
context:
space:
mode:
authorsubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-06-18 06:53:52 +0100
committersubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-06-18 06:53:52 +0100
commitb4a63eca026a31e0f5471d7b37523e3072e2eb1d (patch)
treea3382cddd71e966807fb931d6c29a27915cb4aee /templates/logbook2005style.html
parent0306723c950296566ef6c6cf3c3add5b605e9855 (diff)
downloadtroggle-b4a63eca026a31e0f5471d7b37523e3072e2eb1d.tar.gz
troggle-b4a63eca026a31e0f5471d7b37523e3072e2eb1d.tar.bz2
troggle-b4a63eca026a31e0f5471d7b37523e3072e2eb1d.zip
[svn] Adding logbook export features. Troggle can now produce .txt or .html logbooks through the controlPanel or via an action in the LogbookEntry admin pages.
Diffstat (limited to 'templates/logbook2005style.html')
-rw-r--r--templates/logbook2005style.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/templates/logbook2005style.html b/templates/logbook2005style.html
new file mode 100644
index 0000000..39205f1
--- /dev/null
+++ b/templates/logbook2005style.html
@@ -0,0 +1,26 @@
+<html>
+<head><title>{{logbook_entries.0.expedition}} Expo Logbook</title></head>
+<link rel="stylesheet" type="text/css" href="../../css/main2.css" />
+<style type="text/css">
+.tripdate { float: left;}
+.trippeople { float: right;}
+.triptitle { font-size: 120%; text-align: center; font-weight: bold; clear: both }
+.timeug { text-align: right; font-weight: bold }
+p { clear: both }
+</style>
+<body>
+
+<h1>Expo {{logbook_entries.0.expedition}}</h1>
+
+{%for logbook_entry in logbook_entries%}
+<hr />
+
+<div class="tripdate" id="t{{logbook_entry.date}}A">{{logbook_entry.date}}</div>
+<div class="trippeople"><u>{{logbook_entry.author.person}}</u>
+{% for persontrip in logbook_entry.persontrip_set.all %}{{ persontrip.person_expedition.person }} {{ persontrip.person_expedition.time_underground }}, {% endfor %}
+</div>
+
+<div class="triptitle">{{logbook_entry.place}} - {{logbook_entry.title}}</div>
+
+{{logbook_entry.text|safe}}
+{% endfor %}