mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-09 21:19:11 -04:00
toggling of user edit panel works now.
added groups to the admin_user view, so you will eventually be able to edit users, groups and memberships on one admin page.
This commit is contained in:
@@ -39,12 +39,22 @@
|
||||
position: absolute;
|
||||
left: 400px;
|
||||
}
|
||||
.gActions a {
|
||||
.gActions a, .gActions span {
|
||||
margin-right: 40px;
|
||||
}
|
||||
.gPanel {
|
||||
display: none;
|
||||
}
|
||||
|
||||
li.gGroup {
|
||||
float: left;
|
||||
display: block;
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
border: 1px solid gray;
|
||||
padding: .5em;
|
||||
margin-right: 1em;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="gBlock">
|
||||
@@ -77,8 +87,13 @@
|
||||
<!--<a href="users/edit_form/<?= $user->id ?>" class="gDialogLink"><?= t("edit") ?></a>-->
|
||||
<? if (!(user::active()->id == $user->id || user::guest()->id == $user->id)): ?>
|
||||
<a href="users/delete_form/<?= $user->id ?>" class="gDialogLink"><?= t("delete") ?></a>
|
||||
<? else: ?>
|
||||
<span class="inactive" title="<?= t("This user can't be deleted") ?>">
|
||||
<?= t("delete") ?>
|
||||
</span>
|
||||
<? endif ?>
|
||||
</span>
|
||||
|
||||
|
||||
<form id="gUserEdit-<?= $user->id ?>" class="gPanel">
|
||||
<fieldset>
|
||||
@@ -90,7 +105,7 @@
|
||||
<input type="text" />
|
||||
...
|
||||
<input type="submit" value="Save changes" />
|
||||
<a href="#">cancel</a>
|
||||
<a href="#" class="gPanelLink"><?= t("cancel") ?></a>
|
||||
</fieldset>
|
||||
</form>
|
||||
</li>
|
||||
@@ -102,3 +117,34 @@
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="gBlock">
|
||||
<h2>
|
||||
<?= t("Group Admin") ?>
|
||||
<a class="gButtonLink" href="#" title="<?= t("Create a new group") ?>">+ <?= t("Add group") ?></a>
|
||||
</h2>
|
||||
|
||||
<div id="gGroupAdmin" class="gBlockContent">
|
||||
<ul>
|
||||
<? foreach ($groups as $i => $group): ?>
|
||||
<li class="gGroup">
|
||||
<strong><?= $group->name?></strong><br />
|
||||
<ul>
|
||||
<? foreach ($group->users as $i => $user): ?>
|
||||
<li class="gUser">
|
||||
<?= $user->name ?>
|
||||
<a href="groups/remove_users/<?= $user->id ?>">X</a>
|
||||
</li>
|
||||
<? endforeach ?>
|
||||
</ul>
|
||||
</li>
|
||||
<? endforeach ?>
|
||||
|
||||
<li class="gGroup">
|
||||
<a href="groups/add_form" title="<?= t("Create a new group") ?>">
|
||||
+ <?= t("Add a new group") ?>
|
||||
</a
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user