home · contact · privacy
Differentiate card data processing between action and guilt cards.
[guiltcards] / views / card_form.tpl
index c4c64885436ca61db6be939ea5064f53dfc8989e..106c35f7f626b8499912bf70c11239ccf59bd9e1 100644 (file)
@@ -2,18 +2,30 @@
 <html>
 <body>
 <form action="{{ web_path }}/decks/{{deck_id}}/cards/{{ card_id }}" method="POST">
-title: <input type="text" name="title" value="{{ title }}" /><br />
-prompt: <input type="text" name="prompt" value="{{ prompt }}" /><br />
+<input type="hidden" name="type" value="{{ card_type }}" /><br />
+% if card_type == 'guilt':
 % for answer in answers:
 answer: <input type="text" name="answer" value="{{ answer }}" /><br />
 % end
-answer: <input type="text" name="answer" /><br />
-answer: <input type="text" name="answer" /><br />
-answer: <input type="text" name="answer" /><br />
+answer: <input type="text" name="answer" value="" /><br />
+answer: <input type="text" name="answer" value="" /><br />
+answer: <input type="text" name="answer" value="" /><br />
+answer: <input type="text" name="answer" value="" /><br />
+% end
+% if card_type == 'action':
+title: <input type="text" name="title" value="{{ title }}" /><br />
+% for paragraph in paragraphs:
+paragraph: <input type="text" name="paragraph" value="{{ paragraph }}" /><br />
+% end
+paragraph: <input type="text" name="paragraph" value="" /><br />
+paragraph: <input type="text" name="paragraph" value="" /><br />
+paragraph: <input type="text" name="paragraph" value="" /><br />
+paragraph: <input type="text" name="paragraph" value="" /><br />
+% end
 <input type="submit" value="OK" />
 </form>
 <p>
-(leave specific answer fields empty to remove them as answer options)
+(leave specific fields empty to have them not appear on the card)
 </p>
 % if deletable:
 <p>