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:
Oliver-Akins 2025-07-26 10:52:55 -06:00
parent 40820988da
commit 7796c82962
4 changed files with 30 additions and 28 deletions

View file

@ -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>

View file

@ -1,12 +1,14 @@
<label <div class="prompt">
for="{{id}}" <label
> for="{{id}}"
{{ label }} >
</label> {{ label }}
<input </label>
type="checkbox" <input
id="{{ id }}" type="checkbox"
name="{{ key }}" id="{{ id }}"
{{ checked defaultValue }} name="{{ key }}"
{{#if autofocus}}autofocus{{/if}} {{ checked defaultValue }}
> {{#if autofocus}}autofocus{{/if}}
>
</div>

View file

@ -1,3 +1,3 @@
<p class="prompt__details"> <p>
{{{ details }}} {{{ details }}}
</p> </p>

View file

@ -1,12 +1,14 @@
<label <div class="prompt">
for="{{id}}" <label
> for="{{id}}"
{{ label }} >
</label> {{ label }}
<input </label>
type="{{ inputType }}" <input
id="{{ id }}" type="{{ inputType }}"
name="{{ key }}" id="{{ id }}"
{{ valueAttribute }}="{{ defaultValue }}" name="{{ key }}"
{{#if autofocus}}autofocus{{/if}} {{ valueAttribute }}="{{ defaultValue }}"
> {{#if autofocus}}autofocus{{/if}}
>
</div>