58 PROPERTY_TYPES = tuple(CHOICE_TYPES) + tuple(TEXT_TYPES) |
58 PROPERTY_TYPES = tuple(CHOICE_TYPES) + tuple(TEXT_TYPES) |
59 |
59 |
60 _short_answer = ("Short Answer", |
60 _short_answer = ("Short Answer", |
61 "Less than 40 characters. Rendered as a text input. " |
61 "Less than 40 characters. Rendered as a text input. " |
62 "It's possible to add a free form question (Content) " |
62 "It's possible to add a free form question (Content) " |
63 "and a in-input propmt/example text.") |
63 "and a in-input prompt/example text.") |
64 _choice = ("Selection", |
64 _choice = ("Selection", |
65 "Can be set as a single choice (selection) or multiple choice " |
65 "Can be set as a single choice (selection) or multiple choice " |
66 "(pick_multi) question. Rendered as a select (single choice) " |
66 "(pick_multi) question. Rendered as a select (single choice) " |
67 "or a group of checkboxes (multiple choice). It's possible to " |
67 "or a group of checkboxes (multiple choice). It's possible to " |
68 "add a free form question (Content) and as many free form options " |
68 "add a free form question (Content) and as many free form options " |
69 "as wanted. Each option can be edited (double-click), deleted " |
69 "as wanted. Each option can be edited (double-click), deleted " |
70 "(click on (-) button) or reordered (drag and drop).") |
70 "(click on (-) button) or reordered (drag and drop).") |
71 _long_answer = ("Long Answer", |
71 _long_answer = ("Long Answer", |
72 "Unlimited length, auto-growing field. endered as a textarea. " |
72 "Unlimited length, auto-growing field. Rendered as a textarea. " |
73 "It's possible to add a free form question (Content) and " |
73 "It's possible to add a free form question (Content) and " |
74 "an in-input prompt/example text.") |
74 "an in-input prompt/example text.") |
75 QUESTION_TYPES = dict(short_answer=_short_answer, long_answer=_long_answer, |
75 QUESTION_TYPES = dict(short_answer=_short_answer, long_answer=_long_answer, |
76 choice=_choice) |
76 choice=_choice) |
77 |
77 |