decide.nolog.cz/app/components/create-options.hbs
2023-11-04 14:54:30 +01:00

34 lines
No EOL
945 B
Handlebars

<div class="cr-form-wrapper box">
<BsForm
@formLayout="horizontal"
@model={{this.formData}}
@onInvalid={{(scroll-first-invalid-element-into-view-port)}}
@onSubmit={{this.handleSubmit}}
novalidate
as |form|
>
{{#if @isMakeAPoll}}
<CreateOptionsText
@options={{this.formData.options}}
@addOption={{this.formData.addOption}}
@deleteOption={{this.formData.deleteOption}}
@formElement={{form.element}}
/>
{{else}}
<CreateOptionsDates
@options={{this.formData.options}}
@updateOptions={{this.formData.updateOptions}}
@formElement={{form.element}}
/>
{{/if}}
<div class="row cr-steps-bottom-nav">
<div class="col-6 col-md-8 order-12">
<NextButton />
</div>
<div class="col-6 col-md-4 order-1 text-right">
<BackButton @onClick={{this.previousPage}} />
</div>
</div>
</BsForm>
</div>