summaryrefslogtreecommitdiff
path: root/src/views
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-10-05 00:18:51 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-10-05 00:18:51 -0400
commit2a71bacfc5536279bbc5e238fb6a07c03e85d12d (patch)
tree77d686246a93904a7d2327bc2247dc2b95158f8d /src/views
parentf618eae020122914c1c349ece78cb755576b4105 (diff)
Edit individual.html to allow showing multiple users at once. Add
a hack to the Users.class controller to show all users for the "all" username. Mark "all" as forbiddent in the Auth.class model.
Diffstat (limited to 'src/views')
-rw-r--r--src/views/pages/users/individual.html.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/views/pages/users/individual.html.php b/src/views/pages/users/individual.html.php
index c630515..39360b7 100644
--- a/src/views/pages/users/individual.html.php
+++ b/src/views/pages/users/individual.html.php
@@ -1,6 +1,7 @@
<?php global $VARS, $CONTACT_METHODS;
$t = $VARS['template'];
-$user = $VARS['user'];
+$users = $VARS['users'];
+$username = $VARS['username'];
function inputText($user, $key, $label, $hint='') {
global $VARS; $t = $VARS['template'];
@@ -56,8 +57,14 @@ function inputField($user, $arr) {
////////////////////////////////////////////////////////////////////////////////
+if (count($users)>1) {
+ $t->header("Users: $username");
+} else {
+ $t->header("User: $username");
+}
+
+foreach($users as $user) {
$username = $user->getName();
-$t->header("User: $username");
$t->tag('h1', array(), ($user->canEdit()?'Edit':'View')." User <q>$username</q> (UID: ".$user->getUID().")");
@@ -136,4 +143,5 @@ if ($user->canEdit()) {
$t->tag('input', array('type'=>'submit', 'value'=>'Save'));
}
$t->closeTag('form');
+}
$t->footer();