diff rhodecode/templates/admin/users_groups/users_groups.html @ 3716:355fcdd2c027 beta

use the same edit button in admin pages for user groups as in repos and repo groups
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 08 Apr 2013 23:57:14 +0200
parents ec6354949623
children a8f520540ab0
line wrap: on
line diff
--- a/rhodecode/templates/admin/users_groups/users_groups.html	Mon Apr 08 23:49:08 2013 +0200
+++ b/rhodecode/templates/admin/users_groups/users_groups.html	Mon Apr 08 23:57:14 2013 +0200
@@ -34,7 +34,7 @@
             <th class="left">${_('Group name')}</th>
             <th class="left">${_('Members')}</th>
             <th class="left">${_('Active')}</th>
-            <th class="left">${_('Action')}</th>
+            <th class="left" colspan="2">${_('Action')}</th>
         </tr>
             %for cnt,u_group in enumerate(c.users_groups_list):
                 <tr class="parity${cnt%2}">
@@ -42,6 +42,11 @@
                     <td><span class="tooltip" title="${h.tooltip(', '.join(map(h.safe_unicode,[x.user.username for x in u_group.members[:50]])))}">${len(u_group.members)}</span></td>
                     <td>${h.boolicon(u_group.users_group_active)}</td>
                     <td>
+                     <a href="${h.url('edit_users_group', id=u_group.users_group_id)}" title="${_('Edit')}">
+                       ${h.submit('edit_%s' % u_group.users_group_name,_('edit'),class_="edit_icon action_button")}
+                     </a>
+                    </td>
+                    <td>
                         ${h.form(url('users_group', id=u_group.users_group_id),method='delete')}
                             ${h.submit('remove_',_('delete'),id="remove_group_%s" % u_group.users_group_id,
                             class_="delete_icon action_button",onclick="return  confirm('"+_('Confirm to delete this user group: %s') % u_group.users_group_name+"');")}