From: Christian Heller Date: Sun, 15 Nov 2020 18:15:55 +0000 (+0100) Subject: More refactor, and include previously forgotten decks.tpl. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/%7B%7Bdb.prefix%7D%7D/%7B%7Bprefix%7D%7D/balance?a=commitdiff_plain;h=189479074094707440d4d0a240b75fb0ffb7bb7f;p=guiltcards More refactor, and include previously forgotten decks.tpl. --- diff --git a/views/_card.css b/views/_card.css new file mode 100644 index 0000000..9e71295 --- /dev/null +++ b/views/_card.css @@ -0,0 +1,5 @@ +.card { + box-sizing: border-box; + border: 30px solid #aaaaaa; + width: 200px; + height: 400px; } diff --git a/views/_card.tpl b/views/_card.tpl new file mode 100644 index 0000000..d5a541a --- /dev/null +++ b/views/_card.tpl @@ -0,0 +1,17 @@ +
+ % if card["type"] == 'guilt': +

GUILT CARD

+

Choose at least one of these guilts as your own:

+
diff --git a/views/_meta_foot.tpl b/views/_meta_foot.tpl new file mode 100644 index 0000000..5f85cab --- /dev/null +++ b/views/_meta_foot.tpl @@ -0,0 +1 @@ + diff --git a/views/_meta_head.tpl b/views/_meta_head.tpl new file mode 100644 index 0000000..2fe56b9 --- /dev/null +++ b/views/_meta_head.tpl @@ -0,0 +1,2 @@ + + diff --git a/views/card.tpl b/views/card.tpl index 31749f4..f946b21 100644 --- a/views/card.tpl +++ b/views/card.tpl @@ -1,30 +1,9 @@ - - +% include('_meta_head.tpl') -
- % if card["type"] == 'guilt': -

GUILT CARD

-

Choose at least one of these guilts as your own:

-
+% include('_card.tpl') back to overview - +% include('_meta_foot.tpl') diff --git a/views/card_form.tpl b/views/card_form.tpl index 9e1e687..2454df5 100644 --- a/views/card_form.tpl +++ b/views/card_form.tpl @@ -1,5 +1,4 @@ - - +% include('_meta_head.tpl')

Edit {{ card["type"] }} card

@@ -35,4 +34,4 @@ Or would you rather type: back to decks overview

- +% include('_meta_foot.tpl') diff --git a/views/cards_print.tpl b/views/cards_print.tpl index 99f88b0..b7b63a1 100644 --- a/views/cards_print.tpl +++ b/views/cards_print.tpl @@ -1,32 +1,13 @@ - - +% include('_meta_head.tpl') % for card in cards: -
- % if card["type"] == 'guilt': -

GUILT CARD

-

Choose at least one of these guilts as your own:

-
    - % for answer in card["answers"]: -
  • {{ answer }}
  • - % end -
      - % end - % if card["type"] == 'action': -

      ACTION CARD
      {{ card["title"] }}

      - % for paragraph in card["paragraphs"]: -

      {{ paragraph }}

      - % end - % end -
+% include('_card.tpl') % end - - + +% include('_meta_foot.tpl') diff --git a/views/decks.tpl b/views/decks.tpl new file mode 100644 index 0000000..9cbae2c --- /dev/null +++ b/views/decks.tpl @@ -0,0 +1,12 @@ +% include('_meta_head.tpl') + + + +add another deck? name: +
+ +% include('_meta_foot.tpl') diff --git a/views/delete_card.tpl b/views/delete_card.tpl index c9c0677..2d75375 100644 --- a/views/delete_card.tpl +++ b/views/delete_card.tpl @@ -1,9 +1,8 @@ - - +% include('_meta_head.tpl')
Nah, better not … - +% include('_meta_foot.tpl')