+{* @deprecated 6.1 Use the new `__labelPickerGroup` template instead. *}
{foreach from=$labelGroups item=labelGroup}
{if $labelGroup|count}
<dt><label>{$labelGroup->getTitle()}</label></dt>
<div class="boxContent">
<dl>
- {include file='__labelSelection'}
+ {include file='__labelPickerGroup'}
</dl>
<div class="formSubmit">
<input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s">
</div>
</section>
</form>
-
- <script data-relocate="true">
- $(function() {
- WCF.Language.addObject({
- 'wcf.label.none': '{jslang}wcf.label.none{/jslang}',
- 'wcf.label.withoutSelection': '{jslang}wcf.label.withoutSelection{/jslang}'
- });
-
- new WCF.Label.Chooser({ {implode from=$labelIDs key=groupID item=labelID}{@$groupID}: {@$labelID}{/implode} }, '#sidebarForm', undefined, true);
- });
- </script>
{/if}
{/capture}
<div class="boxContent">
<dl>
- {include file='__labelSelection'}
+ {include file='__labelPickerGroup'}
</dl>
<div class="formSubmit">
<input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s">
</div>
</section>
</form>
-
- <script data-relocate="true">
- $(function() {
- WCF.Language.addObject({
- 'wcf.label.none': '{jslang}wcf.label.none{/jslang}',
- 'wcf.label.withoutSelection': '{jslang}wcf.label.withoutSelection{/jslang}'
- });
-
- new WCF.Label.Chooser({ {implode from=$labelIDs key=groupID item=labelID}{@$groupID}: {@$labelID}{/implode} }, '#sidebarForm', undefined, true);
- });
- </script>
{/if}
{/capture}
<div class="boxContent">
<dl>
- {include file='__labelSelection'}
+ {include file='__labelPickerGroup'}
</dl>
<div class="formSubmit">
<input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s">
</div>
</section>
</form>
-
- <script data-relocate="true">
- $(function() {
- WCF.Language.addObject({
- 'wcf.label.none': '{jslang}wcf.label.none{/jslang}',
- 'wcf.label.withoutSelection': '{jslang}wcf.label.withoutSelection{/jslang}'
- });
-
- new WCF.Label.Chooser({ {implode from=$labelIDs key=groupID item=labelID}{@$groupID}: {@$labelID}{/implode} }, '#sidebarForm', undefined, true);
- });
- </script>
{/if}
{/capture}
* @param string containerSelector
* @param string submitButtonSelector
* @param boolean showWithoutSelection
+ * @deprecated 6.1 Use the new `LabelPicker` PHP API
*/
WCF.Label.Chooser = Class.extend({
/**