UX: Display number combobox as an input group so it looks nice on mobile too.

This commit is contained in:
Guo Xiang Tan 2016-06-16 17:01:35 +08:00
parent 1ca52615a6
commit adecdbee56
No known key found for this signature in database
GPG Key ID: 19C321C8952B0F72
1 changed files with 14 additions and 7 deletions

View File

@ -11,29 +11,36 @@
value=pollType
valueAttribute="value"
none="poll.ui_builder.poll_type.regular"}}
</div>
{{#if showMinMax}}
<label>{{i18n 'poll.ui_builder.poll_config.min'}}</label>
<div class="input-group">
<label class="input-group-label">{{i18n 'poll.ui_builder.poll_config.min'}}</label>
{{combo-box content=pollMinOptions
value=pollMin
valueAttribute="value"
class="poll-options-min"}}
</div>
<label>{{i18n 'poll.ui_builder.poll_config.max'}}</label>
<div class="input-group">
<label class="input-group-label">{{i18n 'poll.ui_builder.poll_config.max'}}</label>
{{combo-box content=pollMaxOptions
value=pollMax
valueAttribute="value"
class="poll-options-max"}}
</div>
{{#if isNumber}}
<label>{{i18n 'poll.ui_builder.poll_config.step'}}</label>
<div class="input-group">
<label class="input-group-label">{{i18n 'poll.ui_builder.poll_config.step'}}</label>
{{combo-box content=pollStepOptions
value=pollStep
valueAttribute="value"
class="poll-options-step"}}
{{/if}}
{{/if}}
</div>
{{/if}}
{{/if}}
<div class="input-group">
<label>