Commit | Line | Data |
---|---|---|
345d9273 | 1 | <dl id="{@$container->getPrefixedId()}Container"{* |
e1da1b79 | 2 | *}{if !$container->getClasses()|empty} class="{implode from=$container->getClasses() item='class' glue=' '}{$class}{/implode}"{/if}{* |
345d9273 MS |
3 | *}{foreach from=$container->getAttributes() key='attributeName' item='attributeValue'} {$attributeName}="{$attributeValue}"{/foreach}{* |
4 | *}{if !$container->checkDependencies()} style="display: none;"{/if}{* | |
5 | *}> | |
6 | <dt>{if $container->getLabel() !== null}<label for="{@$container->getPrefixedId()}">{@$container->getLabel()}</label>{/if}</dt> | |
7 | <dd> | |
8 | <div class="row rowColGap formGrid"> | |
9 | {foreach from=$container item='field'} | |
10 | {if $field->isAvailable()} | |
11 | <div id="{@$field->getPrefixedId()}Container" {if !$field->getClasses()|empty} class="{implode from=$field->getClasses() item='class' glue=' '}{$class}{/implode}"{/if}{foreach from=$field->getAttributes() key='attributeName' item='attributeValue'} {$attributeName}="{$attributeValue}"{/foreach}{if !$field->checkDependencies()} style="display: none;"{/if}> | |
12 | {@$field->getFieldHtml()} | |
13 | ||
14 | {include file='__formFieldErrors'} | |
15 | {include file='__formFieldDependencies'} | |
16 | {include file='__formFieldDataHandler'} | |
17 | </div> | |
18 | {/if} | |
19 | {/foreach} | |
20 | </div> | |
21 | {if $container->getDescription() !== null} | |
22 | <small>{@$container->getDescription()}</small> | |
23 | {/if} | |
24 | </dd> | |
25 | </dl> | |
26 | ||
27 | {include file='__formContainerDependencies'} | |
28 | ||
29 | <script data-relocate="true"> | |
30 | require(['WoltLabSuite/Core/Form/Builder/Field/Dependency/Container/Default'], function(DefaultContainerDependency) { | |
31 | new DefaultContainerDependency('{@$container->getPrefixedId()}Container'); | |
32 | }); | |
33 | </script> |