home · contact · privacy
2454df51506408019a4967366f38f22ec3056f5b
[guiltcards] / views / card_form.tpl
1 % include('_meta_head.tpl')
2 <body>
3 <h1>Edit {{ card["type"] }} card</h1>
4 <form action="{{ web_path }}/decks/{{deck_id}}/cards/{{ card_id }}" method="POST">
5 <input type="hidden" name="type" value="{{ card["type"] }}" /><br />
6 % if card["type"] == 'guilt':
7 % for answer in card["answers"]:
8 answer: <input type="text" name="answer" value="{{ answer }}" /><br />
9 % end
10 answer: <input type="text" name="answer" value="" /><br />
11 answer: <input type="text" name="answer" value="" /><br />
12 answer: <input type="text" name="answer" value="" /><br />
13 answer: <input type="text" name="answer" value="" /><br />
14 % end
15 % if card["type"] == 'action':
16 title: <input type="text" name="title" value="{{ card["title"] }}" /><br />
17 % for paragraph in card["paragraphs"]:
18 paragraph: <input type="text" name="paragraph" value="{{ paragraph }}" /><br />
19 % end
20 paragraph: <input type="text" name="paragraph" value="" /><br />
21 paragraph: <input type="text" name="paragraph" value="" /><br />
22 paragraph: <input type="text" name="paragraph" value="" /><br />
23 paragraph: <input type="text" name="paragraph" value="" /><br />
24 % end
25 <input type="submit" value="OK" />
26 </form>
27 <p>
28 (leave specific fields empty to have them not appear on the card)
29 </p>
30 % if deletable:
31 <p>
32 Or would you rather <a href="{{ web_path }}/decks/{{deck_id}}/cards/{{ card_id }}/delete">DELETE</a> this card?
33 </p>
34 % end
35 </form>
36 </body>
37 % include('_meta_foot.tpl')