From: Matthias Schmidt Date: Sat, 5 Oct 2019 12:20:38 +0000 (+0200) Subject: Add RowFormContainer X-Git-Tag: 5.2.0_Beta_2~8 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0c00ef9ee8371cbfa1db48ce92a7c9524563dfc7;p=GitHub%2FWoltLab%2FWCF.git Add RowFormContainer Close #3084 --- diff --git a/com.woltlab.wcf/templates/__rowFormContainer.tpl b/com.woltlab.wcf/templates/__rowFormContainer.tpl new file mode 100644 index 0000000000..26e58e31c6 --- /dev/null +++ b/com.woltlab.wcf/templates/__rowFormContainer.tpl @@ -0,0 +1,15 @@ +
getClasses()|empty} class="{implode from=$container->getClasses() item='class' glue=' '}{$class}{/implode}" {/if}{* + *}{foreach from=$container->getAttributes() key='attributeName' item='attributeValue'} {$attributeName}="{$attributeValue}"{/foreach}{* + *}{if !$container->checkDependencies()} style="display: none;"{/if}{* +*}> + {include file='__formContainerChildren'} +
+ +{include file='__formContainerDependencies'} + + diff --git a/wcfsetup/install/files/acp/templates/__rowFormContainer.tpl b/wcfsetup/install/files/acp/templates/__rowFormContainer.tpl new file mode 100644 index 0000000000..26e58e31c6 --- /dev/null +++ b/wcfsetup/install/files/acp/templates/__rowFormContainer.tpl @@ -0,0 +1,15 @@ +
getClasses()|empty} class="{implode from=$container->getClasses() item='class' glue=' '}{$class}{/implode}" {/if}{* + *}{foreach from=$container->getAttributes() key='attributeName' item='attributeValue'} {$attributeName}="{$attributeValue}"{/foreach}{* + *}{if !$container->checkDependencies()} style="display: none;"{/if}{* +*}> + {include file='__formContainerChildren'} +
+ +{include file='__formContainerDependencies'} + + diff --git a/wcfsetup/install/files/lib/system/form/builder/container/RowFormContainer.class.php b/wcfsetup/install/files/lib/system/form/builder/container/RowFormContainer.class.php new file mode 100644 index 0000000000..cf6bce1a39 --- /dev/null +++ b/wcfsetup/install/files/lib/system/form/builder/container/RowFormContainer.class.php @@ -0,0 +1,28 @@ + + * @package WoltLabSuite\Core\System\Form\Builder\Container + * @since 5.2 + */ +class RowFormContainer extends FormContainer { + /** + * @inheritDoc + */ + protected $templateName = '__rowFormContainer'; + + /** + * @inheritDoc + */ + public function __construct() { + $this->addClasses(['row', 'rowColGap', 'formGrid']); + } +}