Move the prompt wrapper into each block partial so that those which don't need it can leave it out
This commit is contained in:
parent
40820988da
commit
7796c82962
4 changed files with 30 additions and 28 deletions
|
|
@ -5,8 +5,6 @@
|
||||||
</p>
|
</p>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#each inputs as | i |}}
|
{{#each inputs as | i |}}
|
||||||
<div class="prompt">
|
|
||||||
{{> (concat (systemFilePath "templates/Ask/inputs/" ) i.type ".hbs") i}}
|
{{> (concat (systemFilePath "templates/Ask/inputs/" ) i.type ".hbs") i}}
|
||||||
</div>
|
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,14 @@
|
||||||
<label
|
<div class="prompt">
|
||||||
|
<label
|
||||||
for="{{id}}"
|
for="{{id}}"
|
||||||
>
|
>
|
||||||
{{ label }}
|
{{ label }}
|
||||||
</label>
|
</label>
|
||||||
<input
|
<input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
id="{{ id }}"
|
id="{{ id }}"
|
||||||
name="{{ key }}"
|
name="{{ key }}"
|
||||||
{{ checked defaultValue }}
|
{{ checked defaultValue }}
|
||||||
{{#if autofocus}}autofocus{{/if}}
|
{{#if autofocus}}autofocus{{/if}}
|
||||||
>
|
>
|
||||||
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
<p class="prompt__details">
|
<p>
|
||||||
{{{ details }}}
|
{{{ details }}}
|
||||||
</p>
|
</p>
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,14 @@
|
||||||
<label
|
<div class="prompt">
|
||||||
|
<label
|
||||||
for="{{id}}"
|
for="{{id}}"
|
||||||
>
|
>
|
||||||
{{ label }}
|
{{ label }}
|
||||||
</label>
|
</label>
|
||||||
<input
|
<input
|
||||||
type="{{ inputType }}"
|
type="{{ inputType }}"
|
||||||
id="{{ id }}"
|
id="{{ id }}"
|
||||||
name="{{ key }}"
|
name="{{ key }}"
|
||||||
{{ valueAttribute }}="{{ defaultValue }}"
|
{{ valueAttribute }}="{{ defaultValue }}"
|
||||||
{{#if autofocus}}autofocus{{/if}}
|
{{#if autofocus}}autofocus{{/if}}
|
||||||
>
|
>
|
||||||
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue