1 % include('_meta_head.tpl')
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 />
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 />
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 />
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 />
25 <input type="submit" value="OK" />
28 (leave specific fields empty to have them not appear on the card)
32 Or would you rather <a href="{{ web_path }}/decks/{{deck_id}}/cards/{{ card_id }}/delete">DELETE</a> this card?
37 % include('_meta_foot.tpl')