home · contact · privacy
Differentiate card data processing between action and guilt cards.
[guiltcards] / views / cards_print.tpl
index a649ac6c4d03388659d4e1ca18ac7f07d0f92e34..99f88b0fe3fc4484743ae06a3441d2639646ece1 100644 (file)
 <body>
 % for card in cards:
   <div class="card">
-    <h1 class="title">{{ card["title"] }}</h1>
-    <p class="prompt">{{ card["prompt"] }}</p>
-    <ul class="answers">
+    % if card["type"] == 'guilt':
+    <h1 id="title">GUILT CARD</h1>
+    <p id="prompt">Choose at least one of these guilts as your own:</p>
+    <ul id="answers">
     % for answer in card["answers"]:
       <li>{{ answer }}</li>
     % end
     <ul/>
+    % end
+    % if card["type"] == 'action':
+    <h1 id="title">ACTION CARD<br />{{ card["title"] }}</h1>
+    % for paragraph in card["paragraphs"]:
+    <p>{{ paragraph }}</p>
+    % end
+    % end
   </div>
 % end
 </body>