From: Matthias Schmidt Date: Wed, 23 Dec 2020 14:28:22 +0000 (+0100) Subject: Add field attribute support for `CheckboxFormField` X-Git-Tag: 5.4.0_Alpha_1~507^2~12 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=05b7d81d64736e14badbe1a1c8f66304f62bffc0;p=GitHub%2FWoltLab%2FWCF.git Add field attribute support for `CheckboxFormField` --- 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}