decide.nolog.cz/app/templates/create/index.hbs
jelhan 67cc41973f Ember.ObjectController is deprecated since ember 1.11
Ember.ObjectController was proxying model properties to controller. Ember.Controller which should be used is not.
Therefore we have to define if it's a property of controller or model.

Also added two more tests:
* anonymous participation
* do not force an answer for all options
2015-07-01 16:21:18 +02:00

13 lines
415 B
Handlebars

<div class="box">
{{#form-wrapper}}
{{input pollType as='select'
collection="pollTypes"
value="model.pollType"
optionValuePath="content.id"
optionLabelPath="content.label"
labelTranslation='create.index.input.pollType.label'
}}
{{/form-wrapper}}
<button {{action "submit"}} class="btn btn-default btn-primary button-next"> {{t 'create.next'}} </button>
</div>