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>
{{/if}}
{{#each inputs as | i |}}
<div class="prompt">
{{> (concat (systemFilePath "templates/Ask/inputs/" ) i.type ".hbs") i}}
</div>
{{/each}}
</div>

View file

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

View file

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

View file

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