mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 06:49:14 +08:00
FIX: add classes to input groups and move tips
This commit is contained in:
parent
ec7f597274
commit
733ffc4bbf
|
@ -1,6 +1,6 @@
|
|||
{{#d-modal-body title="poll.ui_builder.title" class="poll-ui-builder"}}
|
||||
<form class="poll-ui-builder-form form-horizontal">
|
||||
<div class="input-group">
|
||||
<div class="input-group poll-select">
|
||||
<label class="input-group-label">{{i18n 'poll.ui_builder.poll_type.label'}}</label>
|
||||
{{combo-box content=pollTypes
|
||||
value=pollType
|
||||
|
@ -9,17 +9,17 @@
|
|||
</div>
|
||||
|
||||
{{#if showMinMax}}
|
||||
<div class="input-group">
|
||||
<div class="input-group poll-number">
|
||||
{{input-tip validation=minMaxValueValidation}}
|
||||
<label class="input-group-label">{{i18n 'poll.ui_builder.poll_config.min'}}</label>
|
||||
{{input type='number'
|
||||
value=pollMin
|
||||
valueAttribute="value"
|
||||
class="poll-options-min"}}
|
||||
{{input-tip validation=minMaxValueValidation}}
|
||||
</div>
|
||||
|
||||
|
||||
<div class="input-group">
|
||||
<div class="input-group poll-number">
|
||||
<label class="input-group-label">{{i18n 'poll.ui_builder.poll_config.max'}}</label>
|
||||
{{input type='number'
|
||||
value=pollMax
|
||||
|
@ -28,7 +28,7 @@
|
|||
</div>
|
||||
|
||||
{{#if isNumber}}
|
||||
<div class="input-group">
|
||||
<div class="input-group poll-number">
|
||||
<label class="input-group-label">{{i18n 'poll.ui_builder.poll_config.step'}}</label>
|
||||
{{input type='number'
|
||||
value=pollStep
|
||||
|
@ -41,21 +41,21 @@
|
|||
{{/if}}
|
||||
|
||||
{{#unless isNumber}}
|
||||
<div class="input-group">
|
||||
<div class="input-group poll-textarea">
|
||||
<label>{{i18n 'poll.ui_builder.poll_options.label'}}</label>
|
||||
{{input-tip validation=minNumOfOptionsValidation}}
|
||||
{{textarea value=pollOptions}}
|
||||
{{input-tip validation=minNumOfOptionsValidation}}
|
||||
</div>
|
||||
{{/unless}}
|
||||
|
||||
<div class="input-group">
|
||||
<div class="input-group poll-checkbox">
|
||||
<label>
|
||||
{{input type='checkbox' checked=publicPoll}}
|
||||
{{i18n "poll.ui_builder.poll_public.label"}}
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="input-group">
|
||||
<div class="input-group poll-checkbox">
|
||||
<label>
|
||||
{{input type="checkbox" checked=autoClose}}
|
||||
{{i18n "poll.ui_builder.automatic_close.label"}}
|
||||
|
|
Loading…
Reference in New Issue
Block a user