Changeset - 355fcdd2c027
[Not reviewed]
beta
0 2 0
Marcin Kuzminski - 13 years ago 2013-04-08 23:57:14
marcin@python-works.com
use the same edit button in admin pages for user groups as in repos and repo groups
2 files changed with 7 insertions and 2 deletions:
0 comments (0 inline, 0 general)
rhodecode/templates/admin/users_groups/users_group_edit.html
Show inline comments
 
@@ -139,7 +139,7 @@ ${h.end_form()}
 
<div class="box box-right">
 
    <!-- box / title -->
 
    <div class="title">
 
        <h5>${_('Permissions summary')}</h5>
 
        <h5>${_('Global Permissions')}</h5>
 
    </div>
 
    ${h.form(url('users_group_perm', id=c.users_group.users_group_id), method='put')}
 
    <div class="form">
rhodecode/templates/admin/users_groups/users_groups.html
Show inline comments
 
@@ -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+"');")}
0 comments (0 inline, 0 general)