</nav>
{hascontent}
- <table class="clipboardContainer" data-type="com.woltlab.wcf.user">
+ <table data-type="com.woltlab.wcf.user" class="clipboardContainer">
<thead>
<tr class="tableHead">
<th class="columnMark"><label><input type="checkbox" class="clipboardMarkAll" /></label></th>
- <th class="columnID columnUserID{if $sortField == 'userID'} active{/if}" colspan="2"><a href="index.php?page=UserList&searchID={@$searchID}&action={@$encodedAction}&pageNo={@$pageNo}&sortField=userID&sortOrder={if $sortField == 'userID' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{@SID_ARG_2ND}">{lang}wcf.user.userID{/lang}{if $sortField == 'userID'} <img src="{@RELATIVE_WCF_DIR}icon/sort{@$sortOrder}.svg" alt="" />{/if}</a></th>
- <th class="columnTitle columnUsername{if $sortField == 'username'} active{/if}"><a href="index.php?page=UserList&searchID={@$searchID}&action={@$encodedAction}&pageNo={@$pageNo}&sortField=username&sortOrder={if $sortField == 'username' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{@SID_ARG_2ND}">{lang}wcf.user.username{/lang}{if $sortField == 'username'} <img src="{@RELATIVE_WCF_DIR}icon/sort{@$sortOrder}.svg" alt="" />{/if}</a></th>
+ <th class="columnUserID{if $sortField == 'userID'} active{/if}" colspan="2"><a href="index.php?page=UserList&searchID={@$searchID}&action={@$encodedAction}&pageNo={@$pageNo}&sortField=userID&sortOrder={if $sortField == 'userID' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{@SID_ARG_2ND}">{lang}wcf.user.userID{/lang}{if $sortField == 'userID'} <img src="{@RELATIVE_WCF_DIR}icon/sort{@$sortOrder}.svg" alt="" />{/if}</a></th>
+ <th class="columnUsername{if $sortField == 'username'} active{/if}"><a href="index.php?page=UserList&searchID={@$searchID}&action={@$encodedAction}&pageNo={@$pageNo}&sortField=username&sortOrder={if $sortField == 'username' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{@SID_ARG_2ND}">{lang}wcf.user.username{/lang}{if $sortField == 'username'} <img src="{@RELATIVE_WCF_DIR}icon/sort{@$sortOrder}.svg" alt="" />{/if}</a></th>
{foreach from=$columnHeads key=column item=columnLanguageVariable}
- <th class="columnText column{$column|ucfirst}{if $sortField == $column} active{/if}"><a href="index.php?page=UserList&searchID={@$searchID}&action={@$encodedAction}&pageNo={@$pageNo}&sortField={$column}&sortOrder={if $sortField == $column && $sortOrder == 'ASC'}DESC{else}ASC{/if}{@SID_ARG_2ND}">{lang}{$columnLanguageVariable}{/lang}{if $sortField == $column} <img src="{@RELATIVE_WCF_DIR}icon/sort{@$sortOrder}.svg" alt="" />{/if}</a></th>
+ <th class="column{$column|ucfirst}{if $sortField == $column} active{/if}"><a href="index.php?page=UserList&searchID={@$searchID}&action={@$encodedAction}&pageNo={@$pageNo}&sortField={$column}&sortOrder={if $sortField == $column && $sortOrder == 'ASC'}DESC{else}ASC{/if}{@SID_ARG_2ND}">{lang}{$columnLanguageVariable}{/lang}{if $sortField == $column} <img src="{@RELATIVE_WCF_DIR}icon/sort{@$sortOrder}.svg" alt="" />{/if}</a></th>
{/foreach}
{if $additionalColumnHeads|isset}{@$additionalColumnHeads}{/if}
{content}
{foreach from=$users item=user}
<tr id="userRow{@$user->userID}">
- <td class="columnMark"><label><input type="checkbox" data-objectID="{@$user->userID}" class="clipboardItem" /></label></td>
+ <td class="columnMark"><input type="checkbox" class="clipboardItem" data-objectID="{@$user->userID}" /></td>
<td class="columnIcon">
{if $user->editable}
<a href="index.php?form=UserEdit&userID={@$user->userID}{@SID_ARG_2ND}"><img src="{@RELATIVE_WCF_DIR}icon/edit1.svg" alt="" title="{lang}wcf.acp.user.edit{/lang}" class="balloonTooltip" /></a>
{if $additionalButtons[$user->userID]|isset}{@$additionalButtons[$user->userID]}{/if}
</td>
- <td class="columnID columnUserID"><p>{@$user->userID}</p></td>
- <td class="columnTitle columnUsername"><p>{if $user->editable}<a title="{lang}wcf.acp.user.edit{/lang}" href="index.php?form=UserEdit&userID={@$user->userID}{@SID_ARG_2ND}">{$user->username}</a>{else}{$user->username}{/if}</p></td>
+ <td class="columnUserID columnID"><p>{@$user->userID}</p></td>
+ <td class="columnUsername columnName columnText"><p>{if $user->editable}<a title="{lang}wcf.acp.user.edit{/lang}" href="index.php?form=UserEdit&userID={@$user->userID}{@SID_ARG_2ND}">{$user->username}</a>{else}{$user->username}{/if}</p></td>
{foreach from=$columnHeads key=column item=columnLanguageVariable}
- <td class="columnText column{$column|ucfirst}"><p>{if $columnValues[$user->userID][$column]|isset}{@$columnValues[$user->userID][$column]}{/if}</p></td>
+ <td class="column{$column|ucfirst}"><p>{if $columnValues[$user->userID][$column]|isset}{@$columnValues[$user->userID][$column]}{/if}</p></td>
{/foreach}
{if $additionalColumns[$user->userID]|isset}{@$additionalColumns[$user->userID]}{/if}
<div class="contentFooter">
{@$pagesLinks}
- <div class="clipboardEditor" data-type="com.woltlab.wcf.user"></div>
+ <div data-types="[ 'com.woltlab.wcf.user' ]" class="clipboardEditor"></div>
<nav class="largeButtons">
<ul>
var $containers = {};
$('.clipboardEditor').each(function(index, container) {
var $container = $(container);
- var $typeName = $container.data('type');
- if ($typeName) {
+ var $types = eval($container.data('types'));
+ for (var $i = 0, $length = $types.length; $i < $length; $i++) {
+ var $typeName = $types[$i];
$containers[$typeName] = $container;
}
// create container
var $container = $containers[$typeName];
+ var $list = $container.children('ul');
+ if ($list.length == 0) {
+ $list = $('<ul></ul>').appendTo($container);
+ }
+
var $editor = data.items[$typeName];
- var $label = $('<span>' + $editor.label + '</span>').appendTo($container).click(function(event) {
- var $span = $(event.target);
- $span.next().toggle();
+ var $label = $('<li><span>' + $editor.label + '</span></li>').appendTo($list).click(function(event) {
+ $(event.target).next().toggle();
});
- var $list = $('<ol></ol>').appendTo($container).hide();
+ var $itemList = $('<ol></ol>').appendTo($label).hide();
// create editor items
for (var $itemIndex in $editor.items) {
var $item = $editor.items[$itemIndex];
- var $listItem = $('<li>' + $item.label + '</li>').appendTo($list);
+ var $listItem = $('<li>' + $item.label + '</li>').appendTo($itemList);
$listItem.data('actionName', $item.actionName).data('parameters', $item.parameters);
$listItem.data('internalData', $item.internalData).data('url', $item.url).data('type', $typeName);