--- /dev/null
+{if $includeAclJavaScript}
+ {include file='aclPermissions'}
+{/if}
+
+{include file='shared_aclPermissionJavaScript' containerID=$field->getPrefixedId()|concat:'Container' categoryName=$field->getCategoryName() objectID=$field->getObjectID() objectTypeID=$field->getObjectType()->objectTypeID aclFormBuilderMode=$field->getDocument()->isAjax() aclValuesFieldName=$field->getPrefixedId()}
--- /dev/null
+{if $field->isImmutable()}
+ <span class="colorPickerButton">
+ <span{if $field->getValue()} style="background-color: {$field->getValue()}"{/if}></span>
+ </span>
+{else}
+ <a href="#" class="colorPickerButton jsTooltip" id="{$field->getPrefixedId()}_colorPickerButton" title="{lang}wcf.style.colorPicker.button.changeColor{/lang}" data-store="{$field->getPrefixedId()}">
+ <span{if $field->getValue()} style="background-color: {$field->getValue()}"{/if}></span>
+ </a>
+ <input type="hidden" {*
+ *}id="{$field->getPrefixedId()}" {*
+ *}name="{$field->getPrefixedId()}" {*
+ *}value="{$field->getValue()}"{*
+ *}>
+ {include file='shared_colorPickerJavaScript'}
+
+ <script data-relocate="true">
+ require(['WoltLabSuite/Core/Ui/Color/Picker'], (UiColorPicker) => {
+ UiColorPicker.fromSelector("#{@$field->getPrefixedId()|encodeJS}_colorPickerButton");
+ });
+ </script>
+{/if}
--- /dev/null
+{include file='shared_formError'}
+
+{include file='shared_formSuccess'}
+++ /dev/null
-{if $includeAclJavaScript}
- {include file='aclPermissions'}
-{/if}
-
-{include file='shared_aclPermissionJavaScript' containerID=$field->getPrefixedId()|concat:'Container' categoryName=$field->getCategoryName() objectID=$field->getObjectID() objectTypeID=$field->getObjectType()->objectTypeID aclFormBuilderMode=$field->getDocument()->isAjax() aclValuesFieldName=$field->getPrefixedId()}
+++ /dev/null
-{if $field->isImmutable()}
- <span class="colorPickerButton">
- <span{if $field->getValue()} style="background-color: {$field->getValue()}"{/if}></span>
- </span>
-{else}
- <a href="#" class="colorPickerButton jsTooltip" id="{$field->getPrefixedId()}_colorPickerButton" title="{lang}wcf.style.colorPicker.button.changeColor{/lang}" data-store="{$field->getPrefixedId()}">
- <span{if $field->getValue()} style="background-color: {$field->getValue()}"{/if}></span>
- </a>
- <input type="hidden" {*
- *}id="{$field->getPrefixedId()}" {*
- *}name="{$field->getPrefixedId()}" {*
- *}value="{$field->getValue()}"{*
- *}>
- {include file='shared_colorPickerJavaScript'}
-
- <script data-relocate="true">
- require(['WoltLabSuite/Core/Ui/Color/Picker'], (UiColorPicker) => {
- UiColorPicker.fromSelector("#{@$field->getPrefixedId()|encodeJS}_colorPickerButton");
- });
- </script>
-{/if}
+++ /dev/null
-{include file='shared_formError'}
-
-{include file='shared_formSuccess'}