From: Marcel Werk Date: Wed, 27 Apr 2016 16:34:32 +0000 (+0200) Subject: Added scrollable checkbox lists to replace multiselects in page/box management X-Git-Tag: 3.0.0_Beta_1~1806 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8f6b9ef60d2ea6b25c0b1164ca47c0ae0b9f5343;p=GitHub%2FWoltLab%2FWCF.git Added scrollable checkbox lists to replace multiselects in page/box management --- diff --git a/wcfsetup/install/files/acp/templates/boxAdd.tpl b/wcfsetup/install/files/acp/templates/boxAdd.tpl index 42d7f3f892..57ef98a87c 100644 --- a/wcfsetup/install/files/acp/templates/boxAdd.tpl +++ b/wcfsetup/install/files/acp/templates/boxAdd.tpl @@ -151,13 +151,15 @@
-
+
{lang}wcf.acp.box.pageIDs{/lang}
- getPage()->pageID|in_array:$pageIDs} checked="checked"{/if} /> {$pageNode->getPage()->name} + {/foreach} - +
diff --git a/wcfsetup/install/files/acp/templates/pageAdd.tpl b/wcfsetup/install/files/acp/templates/pageAdd.tpl index c37c5fa308..bcf74ab7b2 100644 --- a/wcfsetup/install/files/acp/templates/pageAdd.tpl +++ b/wcfsetup/install/files/acp/templates/pageAdd.tpl @@ -179,13 +179,15 @@ -
+
{lang}wcf.acp.page.boxIDs{/lang}
- boxID|in_array:$boxIDs} checked="checked"{/if} /> {$availableBox->name} + {/foreach} - + {if $errorField == 'boxIDs'} {if $errorType == 'empty'} diff --git a/wcfsetup/install/files/style/ui/scrollableCheckboxList.scss b/wcfsetup/install/files/style/ui/scrollableCheckboxList.scss new file mode 100644 index 0000000000..f21f352a81 --- /dev/null +++ b/wcfsetup/install/files/style/ui/scrollableCheckboxList.scss @@ -0,0 +1,15 @@ +.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; + } +}