Author: david
Date: Tue Sep 15 15:46:56 2009
New Revision: 3322

Log:
Show aclUserGroup relations on user/show page. Remove 'reset password' link.

Modified:
   trunk/apps/qubit/modules/user/templates/showSuccess.php

Modified: trunk/apps/qubit/modules/user/templates/showSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/user/templates/showSuccess.php     Tue Sep 15 
15:34:49 2009        (r3321)
+++ trunk/apps/qubit/modules/user/templates/showSuccess.php     Tue Sep 15 
15:46:56 2009        (r3322)
@@ -8,25 +8,27 @@
   <?php else: ?>
     <?php echo $user.' Profile' ?>
   <?php endif; ?>
-</td></tr>
-<tr>
-<th><?php echo __('user name'); ?></th>
-<td><?php echo $user->username ?></td>
+</td>
 </tr>
 <tr>
-<th><?php echo __('email'); ?></th>
-<td><?php echo $user->getEmail() ?></td>
+  <th><?php echo __('user name'); ?></th>
+  <td><?php echo $user->username ?></td>
 </tr>
 <tr>
-<th><?php echo __('password'); ?></th>
-<td><?php echo link_to(__('reset password'), 
'user/passwordEdit?id='.$user->getId()) ?></td></tr>
+  <th><?php echo __('email'); ?></th>
+  <td><?php echo $user->getEmail() ?></td>
+</tr>
+
+<?php if (0 < count($userGroups = $user->getAclUserGroups())): ?>
 <tr>
-<th><?php echo __('user roles'); ?></th>
+<th><?php echo __('user groups'); ?></th>
 <td>
-      <?php foreach ($user->getRoles() as $role): ?>
-        <?php echo $role ?><br />
-      <?php endforeach; ?>
+  <?php foreach ($userGroups as $userGroup): ?>
+    <?php echo $userGroup->group->getName(array('cultureFallback' => true)) 
?><br />
+  <?php endforeach; ?>
 </td>
+</tr>
+<?php endif; ?>
 
 </tbody>
 </table>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to