From 75c92056e742fc2d3066c7e239e1b718ddf5fd26 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sun, 15 Nov 2020 19:18:26 +0100 Subject: [PATCH] Add editing option to single-card view. --- guiltcards.py | 1 + views/card.tpl | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/guiltcards.py b/guiltcards.py index 7d900df..00f02f8 100755 --- a/guiltcards.py +++ b/guiltcards.py @@ -84,6 +84,7 @@ def show_card(deck_id, card_id): data = get_card_data(deck_id, card_id, None) return dict(web_path=web_path, deck_id=deck_id, + card_id=card_id, card=data) @post(web_path + '/decks//cards/') diff --git a/views/card.tpl b/views/card.tpl index f946b21..a4eb7b8 100644 --- a/views/card.tpl +++ b/views/card.tpl @@ -4,6 +4,14 @@ % include('_card.tpl') +

+

+Change? +

+

+Delete? +

back to overview +

% include('_meta_foot.tpl') -- 2.30.2