29 lines
No EOL
1.2 KiB
Handlebars
29 lines
No EOL
1.2 KiB
Handlebars
<div class="box">
|
|
{{#if isMakeAPoll}}
|
|
<form role="form">
|
|
<div class="form-group">
|
|
<label class="control-label">options</label>
|
|
<fieldset>
|
|
{{#each option in options}}
|
|
{{view Ember.TextField valueBinding="option.title" class="form-control"}}<br/>
|
|
{{/each}}
|
|
{{em-form-control-help text="You have to enter at least two options."}}
|
|
</fieldset>
|
|
</div>
|
|
<div class="form-group">
|
|
<button {{action "moreOptions" target="view"}} class="btn btn-default"> add another option </button>
|
|
<button {{action "submitMakeAPoll"}} class="btn btn-default" {{bind-attr disabled=isNotValid}}> next </button>
|
|
</div>
|
|
</form>
|
|
{{/if}}
|
|
|
|
{{#if isFindADate}}
|
|
<div id="datepicker">
|
|
{{view App.Datepicker}}
|
|
{{em-form-control-help text="You have to select at least two dates."}}
|
|
<div class="form-group">
|
|
<button {{action "submitFindADate"}} class="btn btn-default" {{bind-attr disabled=isNotValid}}> next </button>
|
|
</div>
|
|
</div>
|
|
{{/if}}
|
|
</div> |