From: Alexander Ebert Date: Sat, 23 Sep 2023 17:49:35 +0000 (+0200) Subject: Replace the legacy category binding of label groups X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1da30c15027e45db34dd47a43632d44b0ec88019;p=GitHub%2FWoltLab%2FWCF.git Replace the legacy category binding of label groups --- diff --git a/com.woltlab.wcf/templates/articleAdd.tpl b/com.woltlab.wcf/templates/articleAdd.tpl index 5450ad8a7c..25396a0789 100644 --- a/com.woltlab.wcf/templates/articleAdd.tpl +++ b/com.woltlab.wcf/templates/articleAdd.tpl @@ -87,7 +87,7 @@ {/if} @@ -591,14 +597,9 @@ @@ -163,45 +169,23 @@ {event name='categoryFields'} - {if $labelGroups|count} - {foreach from=$labelGroups item=labelGroup} - {if $labelGroup|count} - groupID]|isset} class="formError"{/if}> -
-
-
    - -
- - {if $errorField == 'label' && $errorType[$labelGroup->groupID]|isset} - - {if $errorType[$labelGroup->groupID] == 'missing'} - {lang}wcf.label.error.missing{/lang} - {else} - {lang}wcf.label.error.invalid{/lang} - {/if} - + {foreach from=$labelPickers item=labelPicker} +
+
+
+ {@$labelPicker->toHtml()} + {if $errorField == 'label' && $errorType[$labelPicker->labelGroup->groupID]|isset} + + {if $errorType[$labelPicker->labelGroup->groupID] == 'missing'} + {lang}wcf.label.error.missing{/lang} + {else} + {lang}wcf.label.error.invalid{/lang} {/if} -
-
- {/if} - {/foreach} - {/if} + + {/if} +
+ + {/foreach}
@@ -614,14 +598,9 @@