{{#d-modal-body title="poll.ui_builder.title" class="poll-ui-builder"}}
{{combo-box content=pollTypes value=pollType valueProperty="value" class="poll-type" onChange=(action (mut pollType)) }}
{{combo-box content=pollResults value=pollResult class="poll-result" valueProperty="value" }}
{{combo-box content=siteGroups value=pollGroups options=(hash clearable=true) valueAttribute="value"}}
{{#unless isNumber}}
{{combo-box class="poll-chart-type" content=pollChartTypes value=chartType valueAttribute="value" }}
{{/unless}} {{#if showMinMax}}
{{input type='number' value=pollMin valueProperty="value" class="poll-options-min"}}
{{input-tip validation=minMaxValueValidation}}
{{input type='number' value=pollMax valueProperty="value" class="poll-options-max"}}
{{#if isNumber}}
{{input type='number' value=pollStep valueProperty="value" min="1" class="poll-options-step"}}
{{input-tip validation=minStepValueValidation}} {{/if}} {{/if}} {{#unless isNumber}}
{{textarea value=pollOptions autocomplete="discourse"}}
{{input-tip validation=minNumOfOptionsValidation}} {{/unless}} {{#unless isPie}}
{{/unless}}
{{#if autoClose}}
{{date-picker-future value=date containerId="date-container"}} {{input type="time" value=time}}
{{/if}}
{{cook-text this.pollOutput}}
{{/d-modal-body}}