From 05b7d81d64736e14badbe1a1c8f66304f62bffc0 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Wed, 23 Dec 2020 15:28:22 +0100 Subject: [PATCH] Add field attribute support for `CheckboxFormField` --- com.woltlab.wcf/templates/__checkboxFormField.tpl | 1 + wcfsetup/install/files/acp/templates/__checkboxFormField.tpl | 1 + 2 files changed, 2 insertions(+) diff --git a/com.woltlab.wcf/templates/__checkboxFormField.tpl b/com.woltlab.wcf/templates/__checkboxFormField.tpl index c9348455f5..3bb5639231 100644 --- a/com.woltlab.wcf/templates/__checkboxFormField.tpl +++ b/com.woltlab.wcf/templates/__checkboxFormField.tpl @@ -10,6 +10,7 @@ *}{if $field->isRequired()} required{/if}{* *}{if $field->isImmutable()} disabled{/if}{* *}{if $field->getValue()} checked{/if}{* + *}{foreach from=$field->getFieldAttributes() key='attributeName' item='attributeValue'} {$attributeName}="{$attributeValue}"{/foreach}{* *}> {@$field->getLabel()}{if $field->isRequired()} *{/if} diff --git a/wcfsetup/install/files/acp/templates/__checkboxFormField.tpl b/wcfsetup/install/files/acp/templates/__checkboxFormField.tpl index c9348455f5..3bb5639231 100644 --- a/wcfsetup/install/files/acp/templates/__checkboxFormField.tpl +++ b/wcfsetup/install/files/acp/templates/__checkboxFormField.tpl @@ -10,6 +10,7 @@ *}{if $field->isRequired()} required{/if}{* *}{if $field->isImmutable()} disabled{/if}{* *}{if $field->getValue()} checked{/if}{* + *}{foreach from=$field->getFieldAttributes() key='attributeName' item='attributeValue'} {$attributeName}="{$attributeValue}"{/foreach}{* *}> {@$field->getLabel()}{if $field->isRequired()} *{/if} -- 2.20.1