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,3 +1,4 @@
<div class="prompt">
<label <label
for="{{id}}" for="{{id}}"
> >
@ -10,3 +11,4 @@
{{ checked defaultValue }} {{ checked defaultValue }}
{{#if autofocus}}autofocus{{/if}} {{#if autofocus}}autofocus{{/if}}
> >
</div>

View file

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

View file

@ -1,3 +1,4 @@
<div class="prompt">
<label <label
for="{{id}}" for="{{id}}"
> >
@ -10,3 +11,4 @@
{{ valueAttribute }}="{{ defaultValue }}" {{ valueAttribute }}="{{ defaultValue }}"
{{#if autofocus}}autofocus{{/if}} {{#if autofocus}}autofocus{{/if}}
> >
</div>