</dl>
<dl>
- <dt><label for="pageIDs">{lang}wcf.acp.box.pageIDs{/lang}</label></dt>
+ <dt>{lang}wcf.acp.box.pageIDs{/lang}</dt>
<dd>
- <select name="pageIDs[]" id="pageIDs" multiple="multiple" size="20">
+ <ul class="scrollableCheckboxList">
{foreach from=$pageNodeList item=pageNode}
- <option value="{@$pageNode->getPage()->pageID}"{if $pageNode->getPage()->pageID|in_array:$pageIDs} selected="selected"{/if}>{if $pageNode->getDepth() > 1}{@" "|str_repeat:($pageNode->getDepth() - 1)}{/if}{$pageNode->getPage()->name}</option>
+ <li{if $pageNode->getDepth() > 1} style="padding-left: {$pageNode->getDepth()*20-20}px"{/if}>
+ <label><input type="checkbox" name="pageIDs[]" value="{@$pageNode->getPage()->pageID}"{if $pageNode->getPage()->pageID|in_array:$pageIDs} checked="checked"{/if} /> {$pageNode->getPage()->name}</label>
+ </li>
{/foreach}
- </select>
+ </ul>
</dd>
</dl>
</dl>
<dl{if $errorField == 'boxIDs'} class="formError"{/if}>
- <dt><label for="boxIDs">{lang}wcf.acp.page.boxIDs{/lang}</label></dt>
+ <dt>{lang}wcf.acp.page.boxIDs{/lang}</dt>
<dd>
- <select name="boxIDs[]" id="boxIDs" multiple="multiple" size="20">
+ <ul class="scrollableCheckboxList">
{foreach from=$availableBoxes item=availableBox}
- <option value="{@$availableBox->boxID}"{if $availableBox->boxID|in_array:$boxIDs} selected="selected"{/if}>{$availableBox->name}</option>
+ <li>
+ <label><input type="checkbox" name="boxIDs[]" value="{@$availableBox->boxID}"{if $availableBox->boxID|in_array:$boxIDs} checked="checked"{/if} /> {$availableBox->name}</label>
+ </li>
{/foreach}
- </select>
+ </ul>
{if $errorField == 'boxIDs'}
<small class="innerError">
{if $errorType == 'empty'}
--- /dev/null
+.scrollableCheckboxList {
+ background-color: $wcfInputBackground;
+ border: 1px solid $wcfInputBorder;
+ color: $wcfInputText;
+ max-height: 250px;
+ max-width: 400px;
+ overflow: auto;
+ padding: 5px;
+
+ li {
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ }
+}