47 lines
No EOL
1.2 KiB
Handlebars
47 lines
No EOL
1.2 KiB
Handlebars
<div class="box">
|
|
{{#if isMakeAPoll}}
|
|
|
|
{{#form-for controller}}
|
|
|
|
{{#input enoughOptions}}
|
|
{{label-field enoughOptions
|
|
textTranslation="create.options.options.label"
|
|
}}
|
|
{{#each option in options}}
|
|
{{#input option.title}}
|
|
{{input-field option.title}}
|
|
{{/input}}
|
|
{{/each}}
|
|
{{#if view.showError}}
|
|
{{error-field enoughOptions}}
|
|
{{/if}}
|
|
{{/input}}
|
|
{{/form-for}}
|
|
|
|
<button {{action "moreOptions" target="view"}} class="btn btn-default"> {{t 'create.options.input.moreOptions.label'}} </button>
|
|
|
|
<button {{action "submit"}} class="btn btn-default btn-primary"> {{t 'create.next'}} </button>
|
|
|
|
{{/if}}
|
|
|
|
{{#if isFindADate}}
|
|
|
|
<div id="datepicker">
|
|
{{view 'datepicker'}}
|
|
</div>
|
|
|
|
{{#form-for controller}}
|
|
{{#input enoughOptions}}
|
|
{{#if view.showError}}
|
|
{{error-field enoughOptions}}
|
|
{{/if}}
|
|
{{/input}}
|
|
{{input isDateTime as='checkbox'
|
|
labelTranslation="create.options.defineTimes.label"
|
|
}}
|
|
{{/form-for}}
|
|
|
|
<button {{action "submit"}} class="btn btn-default btn-primary"> {{t 'create.next'}} </button>
|
|
|
|
{{/if}}
|
|
</div> |