From 0c00ef9ee8371cbfa1db48ce92a7c9524563dfc7 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sat, 5 Oct 2019 14:20:38 +0200 Subject: [PATCH] Add RowFormContainer Close #3084 --- .../templates/__rowFormContainer.tpl | 15 ++++++++++ .../acp/templates/__rowFormContainer.tpl | 15 ++++++++++ .../container/RowFormContainer.class.php | 28 +++++++++++++++++++ 3 files changed, 58 insertions(+) create mode 100644 com.woltlab.wcf/templates/__rowFormContainer.tpl create mode 100644 wcfsetup/install/files/acp/templates/__rowFormContainer.tpl create mode 100644 wcfsetup/install/files/lib/system/form/builder/container/RowFormContainer.class.php 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']); + } +} -- 2.20.1