Author: david
Date: Fri Sep 18 18:29:19 2009
New Revision: 3422

Log:
Grey out 'authenticated' group on user list and edit pages.

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

Modified: trunk/apps/qubit/modules/user/templates/listSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/user/templates/listSuccess.php     Fri Sep 18 
18:16:25 2009        (r3421)
+++ trunk/apps/qubit/modules/user/templates/listSuccess.php     Fri Sep 18 
18:29:19 2009        (r3422)
@@ -15,9 +15,16 @@
 <tr>
   <td><?php echo link_to($user->getUsername(), array('module' => 'user', 
'action' => 'show', 'id' => $user->getId())) ?></td>
   <td><?php echo $user->getEmail() ?></td>
-  <td><?php foreach ($user->getAclGroups() as $group): ?>
-        <?php echo $group ?><br />
-      <?php endforeach; ?>
+  <td>
+    <ul>
+    <?php foreach ($user->getAclGroups() as $group): ?>
+    <?php if (100 <= $group->id): ?> 
+    <li><?php echo $group->getName(array('cultureFallback' => true)) ?></li>
+    <?php else: ?>
+    <li><span class="note2"><?php echo $group->getName(array('cultureFallback' 
=> true)) ?></li>
+    <?php endif; ?>
+    <?php endforeach; ?>
+    </ul>
   </td>
 </tr>
 <?php endforeach; ?>
@@ -42,4 +49,4 @@
 
 <div class="result-count">
 <?php echo __('displaying %1% to %2% of %3% results', array('%1%' => 
$users->getFirstIndice(), '%2%' => $users->getLastIndice(), '%3%' => 
$users->getNbResults())) ?>
-</div>
\ No newline at end of file
+</div>

Modified: trunk/apps/qubit/modules/user/templates/showSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/user/templates/showSuccess.php     Fri Sep 18 
18:16:25 2009        (r3421)
+++ trunk/apps/qubit/modules/user/templates/showSuccess.php     Fri Sep 18 
18:29:19 2009        (r3422)
@@ -22,13 +22,19 @@
 </tr>
 <?php endif; ?>
 
-<?php if (0 < count($userGroups = $user->getAclUserGroups())): ?>
+<?php if (0 < count($groups = $user->getAclGroups())): ?>
 <tr>
 <th><?php echo __('user groups'); ?></th>
 <td>
-  <?php foreach ($userGroups as $userGroup): ?>
-    <?php echo $userGroup->group->getName(array('cultureFallback' => true)) 
?><br />
+  <ul>
+  <?php foreach ($groups as $group): ?>
+    <?php if (100 <= $group->id): ?> 
+    <li><?php echo $group->getName(array('cultureFallback' => true)) ?></li>
+    <?php else: ?>
+    <li><span class="note2"><?php echo $group->getName(array('cultureFallback' 
=> true)) ?></li>
+    <?php endif; ?>
   <?php endforeach; ?>
+  </ul>
 </td>
 </tr>
 <?php endif; ?>

--~--~---------~--~----~------------~-------~--~----~
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