For consistency with the rest of the admin UI, display User list as table, not list. Apply cursor: move to jQuery UI draggable and sortable. Clean up admin table styles a bit.

This commit is contained in:
Chad Kieffer
2009-02-01 18:37:45 +00:00
parent 78106bcaea
commit 8a4eb9eed2
2 changed files with 51 additions and 49 deletions

View File

@@ -52,27 +52,34 @@
</h2>
<div class="gBlockContent">
<ul id="gUserAdminList">
<li class="gHeaderRow">
<strong><?= t("Username") ?></strong> <?= t("(Full name)") ?>
<span class="understate"><?= t("last login") ?></span>
</li>
<table id="gUserAdminList">
<tr>
<th></th>
<th><?= t("Username") ?></th>
<th><?= t("Full name") ?></th>
<th class="understate"><?= t("last login") ?></th>
<th>Actions</th>
</tr>
<? foreach ($users as $i => $user): ?>
<li class="<?= text::alternate("gOddRow", "gEvenRow") ?> user">
<div id="user-<?= $user->id ?>" class="core-info" style="display: inline">
<tr class="<?= text::alternate("gOddRow", "gEvenRow") ?> user">
<td id="user-<?= $user->id ?>" class="core-info">
<img src="<?= $user->avatar_url(20, $theme->url("images/avatar.jpg", true)) ?>"
title="<?= t("Drag user onto group below to add as a new member") ?>"
alt="<?= $user->name ?>"
width="20"
height="20" />
<strong><?= $user->name ?></strong>
</div>
(<?= $user->full_name ?>)
<span class="understate">
</td>
<td>
<?= $user->name ?>
</td>
<td>
<?= $user->full_name ?>
</td>
<td class="understate">
<?= ($user->last_login == 0) ? "" : date("m j, y", $user->last_login) ?>
</span>
<span class="gActions">
</td>
<td class="gActions">
<a href="<?= url::site("admin/users/edit_user_form/$user->id") ?>" class="gPanelLink"><?= t("edit") ?></a>
<? if (user::active()->id != $user->id && !$user->guest): ?>
<a href="<?= url::site("admin/users/delete_user_form/$user->id") ?>" class="gDialogLink"><?= t("delete") ?></a>
@@ -81,10 +88,10 @@
<?= t("delete") ?>
</span>
<? endif ?>
</span>
</li>
</td>
</tr>
<? endforeach ?>
</ul>
</table>
<p>
<a href="<?= url::site("admin/users/add_user_form") ?>"
class="gDialogLink gButtonLink"