From: Christian Heller <c.heller@plomlompom.de> Date: Fri, 13 Nov 2020 16:35:35 +0000 (+0100) Subject: Add basic deck print view. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%7B%7Bprefix%7D%7D/booking/%7B%7Btodo.date%7D%7D?a=commitdiff_plain;h=24797d71438592647bd6f759536adf6d58e76b66;p=guiltcards Add basic deck print view. --- diff --git a/views/cards_print.tpl b/views/cards_print.tpl new file mode 100644 index 0000000..a649ac6 --- /dev/null +++ b/views/cards_print.tpl @@ -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>