| 34 | | form.addField('oneString', forms.String(), forms.widgetFactory(forms.SelectChoice, options=strings)) |
|---|
| 35 | | form.addField('anotherString', forms.String(), forms.widgetFactory(forms.SelectChoice, options=data_strings)) |
|---|
| 36 | | form.addField('oneMoreString', forms.String(required=True), forms.widgetFactory(forms.RadioChoice, options=data_strings)) |
|---|
| 37 | | form.addField('oneDate', forms.Date(), forms.widgetFactory(forms.SelectChoice, options=dates)) |
|---|
| 38 | | form.addField('multipleStrings', forms.Sequence(forms.String()), forms.widgetFactory(forms.CheckboxMultiChoice, options=strings)) |
|---|
| 39 | | form.addField('multipleDates', forms.Sequence(forms.Date()), forms.widgetFactory(forms.CheckboxMultiChoice, options=dates)) |
|---|
| 40 | | form.addField('differentNoneSelect', forms.String(), forms.widgetFactory(forms.SelectChoice, options=strings, noneOption=differentNone)) |
|---|
| 41 | | form.addField('differentNoneRadios', forms.String(), forms.widgetFactory(forms.RadioChoice, options=data_strings, noneOption=differentNone)) |
|---|
| 42 | | form.addField('selectOther', forms.String(), forms.widgetFactory(forms.SelectOtherChoice, options=['Mr', 'Mrs'])) |
|---|
| 43 | | form.addField('selectOtherRequired', forms.String(required=True), forms.widgetFactory(forms.SelectOtherChoice, options=['Mr', 'Mrs'])) |
|---|
| 44 | | form.addField('multiselect', forms.String(), forms.widgetFactory(forms.MultiselectChoice, options=strings)) |
|---|
| | 34 | form.addField('oneString', forms.String(), |
|---|
| | 35 | forms.widgetFactory(forms.SelectChoice, options=strings)) |
|---|
| | 36 | form.addField('anotherString', forms.String(), |
|---|
| | 37 | forms.widgetFactory(forms.SelectChoice, options=data_strings)) |
|---|
| | 38 | form.addField('oneMoreString', forms.String(required=True), |
|---|
| | 39 | forms.widgetFactory(forms.RadioChoice, options=data_strings)) |
|---|
| | 40 | form.addField('oneDate', forms.Date(), |
|---|
| | 41 | forms.widgetFactory(forms.SelectChoice, options=dates)) |
|---|
| | 42 | form.addField('multipleStrings', forms.Sequence(forms.String()), |
|---|
| | 43 | forms.widgetFactory(forms.CheckboxMultiChoice, options=strings)) |
|---|
| | 44 | form.addField('multipleDates', forms.Sequence(forms.Date()), |
|---|
| | 45 | forms.widgetFactory(forms.CheckboxMultiChoice, options=dates)) |
|---|
| | 46 | form.addField('differentNoneSelect', forms.String(), |
|---|
| | 47 | forms.widgetFactory(forms.SelectChoice, options=strings, |
|---|
| | 48 | noneOption=differentNone)) |
|---|
| | 49 | form.addField('differentNoneRadios', forms.String(), |
|---|
| | 50 | forms.widgetFactory(forms.RadioChoice, options=data_strings, |
|---|
| | 51 | noneOption=differentNone)) |
|---|
| | 52 | form.addField('selectOther', forms.String(), |
|---|
| | 53 | forms.widgetFactory(forms.SelectOtherChoice, options=['Mr', |
|---|
| | 54 | 'Mrs'])) |
|---|
| | 55 | form.addField('selectOtherRequired', forms.String(required=True), |
|---|
| | 56 | forms.widgetFactory(forms.SelectOtherChoice, options=['Mr', |
|---|
| | 57 | 'Mrs'])) |
|---|
| | 58 | form.addField('multiselect', forms.String(), |
|---|
| | 59 | forms.widgetFactory(forms.MultiselectChoice, options=strings)) |
|---|