40 lines
No EOL
1.3 KiB
Handlebars
40 lines
No EOL
1.3 KiB
Handlebars
<div class="box">
|
|
{{#form-for controller}}
|
|
{{#input enoughTimes}}
|
|
{{label-field enoughTimes
|
|
textTranslation="create.options-datetime.datetimes.label"
|
|
}}
|
|
<table class="table">
|
|
<tbody>
|
|
{{#each datetime in optionsDateTimes}}
|
|
<tr>
|
|
<td>
|
|
{{formattedDate datetime.title}}
|
|
</td>
|
|
{{#each time in datetime.times}}
|
|
<td>
|
|
{{#input time.value}}
|
|
{{input-field time.value as='time'
|
|
step='900'
|
|
}}
|
|
{{/input}}
|
|
</td>
|
|
{{/each}}
|
|
</tr>
|
|
{{/each}}
|
|
</tbody>
|
|
</table>
|
|
{{error-field enoughTimes}}
|
|
{{/input}}
|
|
|
|
{{#input correctTimeFormat}}
|
|
{{error-field correctTimeFormat}}
|
|
{{/input}}
|
|
{{/form-for}}
|
|
|
|
<button {{action "moreTimes"}} class="btn btn-default button-more-times">{{t "create.options-datetime.more-inputs"}}</button>
|
|
|
|
<button {{action "copyFirstLine"}} class="btn btn-default button-copy-first-line">{{t "create.options-datetime.copy-first-line"}}</button>
|
|
|
|
<button {{action "submit"}} class="btn btn-default btn-primary button-next"> {{t 'create.next'}} </button>
|
|
</div> |