4a31aaa616
ToDo: Label validation state should not be bound to validation state of first element (option) but to validation state of all elements. If any element has an error label validation state should be error. Only if all elements are fine, label validation state should also be fine.
29 lines
574 B
Handlebars
29 lines
574 B
Handlebars
<div class="box">
|
|
{{#bs-form
|
|
action='submit'
|
|
formLayout='horizontal'
|
|
model=this
|
|
}}
|
|
{{#if isMakeAPoll}}
|
|
{{create-options-text
|
|
options=options
|
|
addOption='addOption'
|
|
deleteOption='deleteOption'
|
|
submit='submit'
|
|
}}
|
|
{{else}}
|
|
{{create-options-dates
|
|
options=options
|
|
submit='submit'
|
|
}}
|
|
{{/if}}
|
|
|
|
{{#bs-form-element}}
|
|
{{bs-button
|
|
buttonType='submit'
|
|
defaultText=(t 'create.next')
|
|
type='primary'
|
|
}}
|
|
{{/bs-form-element}}
|
|
{{/bs-form}}
|
|
</div>
|