857f2baa16
* replace ember-cp-validations with custom validation logic for poll creation * refactor poll participation to not use ember-cp-validations * drop ember-cp-validations from create.settings route * remove unused leftovers from ember-cp-validations * fix potential leak * assertion thrown in CI tests (Firefox) indicate that listener is cleaned up automatically * synchronize translations
34 lines
No EOL
917 B
Handlebars
34 lines
No EOL
917 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}}
|
|
@form={{form}}
|
|
/>
|
|
{{else}}
|
|
<CreateOptionsDates
|
|
@options={{this.formData.options}}
|
|
@updateOptions={{this.formData.updateOptions}}
|
|
@form={{form}}
|
|
/>
|
|
{{/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={{action "previousPage"}} />
|
|
</div>
|
|
</div>
|
|
</BsForm>
|
|
</div> |