Working on an update for DialogManager#ask that allows multiple inputs in the Dialog
This commit is contained in:
parent
7a6fa6d10d
commit
7b1db343ce
5 changed files with 124 additions and 45 deletions
|
|
@ -1,12 +1,27 @@
|
|||
<div>
|
||||
<div class="ask-dialog">
|
||||
<p>
|
||||
{{question}}
|
||||
{{ question }}
|
||||
</p>
|
||||
<input
|
||||
type="{{inputType}}"
|
||||
value="{{initialValue}}"
|
||||
checked="{{initialValue}}"
|
||||
class="user-input"
|
||||
autofocus
|
||||
>
|
||||
{{#each inputs as | i | }}
|
||||
<div class="prompt">
|
||||
<label
|
||||
for="{{i.id}}"
|
||||
class="prompt__label"
|
||||
>
|
||||
{{ i.label }}
|
||||
</label>
|
||||
<input
|
||||
type="{{i.inputType}}"
|
||||
id="{{i.id}}"
|
||||
class="patrons__input"
|
||||
{{i.valueAttribute}}="{{i.defaultValue}}"
|
||||
{{#if i.autofocus}}autofocus{{/if}}
|
||||
>
|
||||
{{#if i.details}}
|
||||
<p class="prompt__details">
|
||||
{{{ i.details }}}
|
||||
</p>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue