[Fusionforge-commits] r10660 - trunk/src/www/project/admin

Roland Mas lolando at libremir.placard.fr.eu.org
Fri Sep 24 13:12:59 CEST 2010


Author: lolando
Date: 2010-09-24 13:12:59 +0200 (Fri, 24 Sep 2010)
New Revision: 10660

Modified:
   trunk/src/www/project/admin/users.php
Log:
Better UI to grant extra roles to project members

Modified: trunk/src/www/project/admin/users.php
===================================================================
--- trunk/src/www/project/admin/users.php	2010-09-24 10:59:24 UTC (rev 10659)
+++ trunk/src/www/project/admin/users.php	2010-09-24 11:12:59 UTC (rev 10660)
@@ -363,7 +363,7 @@
 echo '<table width="100%"><thead><tr>';
 echo '<th>'._('User name').'</th>';
 echo '<th>'._('Role').'</th>';
-echo '<th>'._('Remove').'</th>';
+echo '<th>'._('Action').'</th>';
 echo '</tr></thead><tbody>';
 
 foreach ($members as $user) {
@@ -380,7 +380,7 @@
 	foreach ($roles as $role) {
 		echo '<tr>' ;
 		if (!$seen) {
-			echo '<td style="white-space: nowrap;" rowspan="'.count($roles).'"><a href="/users/'.$user->getUnixName().'">';
+			echo '<td style="white-space: nowrap;" rowspan="'.(count($roles)+1).'"><a href="/users/'.$user->getUnixName().'">';
 			$display = $user->getRealName();
 			if (!empty($display)) {
 				echo $user->getRealName();
@@ -404,6 +404,18 @@
                         </td>
                 </form></tr>';
 	}
+
+	echo '
+		<form action="'.getStringFromServer('PHP_SELF').'" method="post">
+			  <input type="hidden" name="submit" value="y" />
+			  <input type="hidden" name="form_unix_name" value="'.$user->getUnixName().'" />
+			  <input type="hidden" name="group_id" value="'. $group_id .'" />' ;
+			
+	echo '<tr><td style="white-space: nowrap;">';
+	echo role_box($group_id,'role_id',$role_id);
+	echo '</td><td><input type="submit" name="adduser" value="'._("Grant extra role").'" />
+                        </td>
+                </form></tr>';
 }
 echo '</tbody></table>';
 echo $HTML->boxBottom(); 




More information about the Fusionforge-commits mailing list