home · contact · privacy
Add basic deck print view.
authorChristian Heller <c.heller@plomlompom.de>
Fri, 13 Nov 2020 16:35:35 +0000 (17:35 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Fri, 13 Nov 2020 16:35:35 +0000 (17:35 +0100)
views/cards_print.tpl [new file with mode: 0644]

diff --git a/views/cards_print.tpl b/views/cards_print.tpl
new file mode 100644 (file)
index 0000000..a649ac6
--- /dev/null
@@ -0,0 +1,24 @@
+<!DOCTYPE HTML>
+<html>
+<style>
+  .card {
+      page-break-before: always;
+      box-sizing: border-box;
+      border: 30px solid #aaaaaa;
+      width: 200px;
+      height: 400px; }
+</style>
+<body>
+% for card in cards:
+  <div class="card">
+    <h1 class="title">{{ card["title"] }}</h1>
+    <p class="prompt">{{ card["prompt"] }}</p>
+    <ul class="answers">
+    % for answer in card["answers"]:
+      <li>{{ answer }}</li>
+    % end
+    <ul/>
+  </div>
+% end
+</body>
+</html>