From: Alexander Ebert Date: Thu, 8 Sep 2011 13:01:50 +0000 (+0200) Subject: Updated userList-template to use new clipboard API X-Git-Tag: 2.0.0_Beta_1~1765^2~45 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2c04fc49fd471f2dbd3144f6c9825f4a83e27dae;p=GitHub%2FWoltLab%2FWCF.git Updated userList-template to use new clipboard API @Luzifr: Added some CSS to testing.css, please remove or convert them. --- diff --git a/wcfsetup/install/files/acp/style/testing.css b/wcfsetup/install/files/acp/style/testing.css index 10b6c88901..b65f6ffe2d 100644 --- a/wcfsetup/install/files/acp/style/testing.css +++ b/wcfsetup/install/files/acp/style/testing.css @@ -1,7 +1,7 @@ /** * ACP Testing Styles * - * @author Harald Szekely, Alexander Ebert, Marcel Werk + * @author Harald Szekely, Alexander Ebert, Marcel Werk * @copyright 2011 WoltLab GmbH */ @@ -2093,6 +2093,44 @@ div.ui-widget-overlay { /* CSS Experiments (active) */ +/* Clipboard API - TESTING ONLY / TODO */ +.clipboardEditor { + position: relative; +} + +.clipboardEditor span { + background-color: rgb(224, 224, 224); + border: 1px solid rgb(192, 192, 192); + border-radius: 3px; + cursor: pointer; + padding: 3px; +} + +.clipboardEditor ol { + border: 1px solid rgba(192, 192, 192, 0.9); + border-radius: 3px; + display: inline-block; + left: 0px; + margin-top: 19px; + position: absolute; + top: 0px; +} + +.clipboardEditor li { + background-color: rgba(224, 224, 224, 0.9); + border-top: 1px solid rgba(192, 192, 192, 0.9); + cursor: pointer; + padding: 3px; +} + +.clipboardEditor li:hover { + background-color: rgb(207, 207, 207); + text-shadow: 0 0 3px #999; +} + +.clipboardEditor li:first-child { + border-top-width: 0; +} /* -- -- -- -- -- EOF -- -- -- -- -- */ diff --git a/wcfsetup/install/files/acp/templates/userList.tpl b/wcfsetup/install/files/acp/templates/userList.tpl index 178ee8d91f..26a59cf2a9 100644 --- a/wcfsetup/install/files/acp/templates/userList.tpl +++ b/wcfsetup/install/files/acp/templates/userList.tpl @@ -1,41 +1,11 @@ {include file='header'} - - - - @@ -71,11 +41,11 @@ - {if $users|count} - + {hascontent} +
- + @@ -88,49 +58,44 @@ - {foreach from=$users item=user} - - - + + - - + {if $additionalButtons[$user->userID]|isset}{@$additionalButtons[$user->userID]}{/if} + + + - {foreach from=$columnHeads key=column item=columnLanguageVariable} - - {/foreach} + {foreach from=$columnHeads key=column item=columnLanguageVariable} + + {/foreach} - {if $additionalColumns[$user->userID]|isset}{@$additionalColumns[$user->userID]}{/if} - - {/foreach} + {if $additionalColumns[$user->userID]|isset}{@$additionalColumns[$user->userID]}{/if} + + {/foreach} + {/content}
{lang}wcf.user.userID{/lang}{if $sortField == 'userID'} {/if} {lang}wcf.user.username{/lang}{if $sortField == 'username'} {/if}
- + {content} + {foreach from=$users item=user} +
+ {if $user->editable} + + {else} + + {/if} + {if $user->deletable} + + {else} + + {/if} - {if $user->editable} - - {else} - - {/if} - {if $user->deletable} - - {else} - - {/if} - - {if $additionalButtons[$user->userID]|isset}{@$additionalButtons[$user->userID]}{/if} -

{@$user->userID}

{if $user->editable}{$user->username}{else}{$user->username}{/if}

{@$user->userID}

{if $user->editable}{$user->username}{else}{$user->username}{/if}

{if $columnValues[$user->userID][$column]|isset}{@$columnValues[$user->userID][$column]}{/if}

{if $columnValues[$user->userID][$column]|isset}{@$columnValues[$user->userID][$column]}{/if}

- {@$pagesLinks}
+ {@$pagesLinks} + +
-{else} -
-

{lang}wcf.acp.user.search.error.noMatches{/lang}

-
-{/if} +{hascontentelse} + + +

{lang}wcf.acp.user.search.error.noMatches{/lang}

+{/hascontent} {include file='footer'} diff --git a/wcfsetup/install/files/lib/system/package/plugin/ClipboardActionPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/ClipboardActionPackageInstallationPlugin.class.php index f9b922ff8f..161b252210 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/ClipboardActionPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/ClipboardActionPackageInstallationPlugin.class.php @@ -71,7 +71,7 @@ class ClipboardActionPackageInstallationPlugin extends AbstractXMLPackageInstall $showOrder = $this->getShowOrder($showOrder); return array( - 'actionClassName' => $data['elements']['actionClassName'], + 'actionClassName' => $data['elements']['actionclassname'], 'actionName' => $data['attributes']['name'], 'showOrder' => $showOrder );