From: Matthias Schmidt Date: Sun, 27 Dec 2020 13:13:56 +0000 (+0100) Subject: Merge branch '5.3' X-Git-Tag: 5.4.0_Alpha_1~501 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0f5282d5787862c0164b6d7a5af332baca7bf237;p=GitHub%2FWoltLab%2FWCF.git Merge branch '5.3' --- 0f5282d5787862c0164b6d7a5af332baca7bf237 diff --cc com.woltlab.wcf/templates/__formField.tpl index e78e5d179b,0f752fcb9e..4415049764 --- a/com.woltlab.wcf/templates/__formField.tpl +++ b/com.woltlab.wcf/templates/__formField.tpl @@@ -1,5 -1,9 +1,9 @@@ -
getClasses()|empty} class="{implode from=$field->getClasses() item='class' glue=' '}{$class}{/implode}"{/if}{foreach from=$field->getAttributes() key='attributeName' item='attributeValue'} {$attributeName}="{$attributeValue}"{/foreach}{if !$field->checkDependencies()} style="display: none;"{/if}> +
getClasses()|empty} class="{implode from=$field->getClasses() item='class' glue=' '}{$class}{/implode}"{/if}{* + *}{foreach from=$field->getAttributes() key='attributeName' item='attributeValue'} {$attributeName}="{$attributeValue}"{/foreach}{* + *}{if !$field->checkDependencies()} style="display: none;"{/if}{* + *}> -
{if $field->getLabel() !== null}{if $field->isRequired()} *{/if}{/if}
+
{if $field->getLabel() !== null}{if $field->isRequired() && $form->marksRequiredFields()} *{/if}{/if}
{@$field->getFieldHtml()} diff --cc wcfsetup/install/files/acp/templates/__formField.tpl index e78e5d179b,0f752fcb9e..4415049764 --- a/wcfsetup/install/files/acp/templates/__formField.tpl +++ b/wcfsetup/install/files/acp/templates/__formField.tpl @@@ -1,5 -1,9 +1,9 @@@ -
getClasses()|empty} class="{implode from=$field->getClasses() item='class' glue=' '}{$class}{/implode}"{/if}{foreach from=$field->getAttributes() key='attributeName' item='attributeValue'} {$attributeName}="{$attributeValue}"{/foreach}{if !$field->checkDependencies()} style="display: none;"{/if}> +
getClasses()|empty} class="{implode from=$field->getClasses() item='class' glue=' '}{$class}{/implode}"{/if}{* + *}{foreach from=$field->getAttributes() key='attributeName' item='attributeValue'} {$attributeName}="{$attributeValue}"{/foreach}{* + *}{if !$field->checkDependencies()} style="display: none;"{/if}{* + *}> -
{if $field->getLabel() !== null}{if $field->isRequired()} *{/if}{/if}
+
{if $field->getLabel() !== null}{if $field->isRequired() && $form->marksRequiredFields()} *{/if}{/if}
{@$field->getFieldHtml()}