##// END OF EJS Templates
added user group to perm table
added user group to perm table

File last commit:

r956:83d35d71 beta
r958:7d1483f3 beta
Show More
users_groups.html
54 lines | 1.8 KiB | text/html | HtmlLexer
## -*- coding: utf-8 -*-
<%inherit file="/base/base.html"/>
<%def name="title()">
${_('Users groups administration')} - ${c.rhodecode_name}
</%def>
<%def name="breadcrumbs_links()">
${h.link_to(_('Admin'),h.url('admin_home'))} &raquo; ${_('Users groups')}
</%def>
<%def name="page_nav()">
${self.menu('admin')}
</%def>
<%def name="main()">
<div class="box">
<!-- box / title -->
<div class="title">
${self.breadcrumbs()}
<ul class="links">
<li>
<span>${h.link_to(u'ADD NEW USER GROUP',h.url('new_users_group'))}</span>
</li>
</ul>
</div>
<!-- end box / title -->
<div class="table">
<table class="table_disp">
<tr class="header">
<th></th>
<th class="left">${_('group name')}</th>
<th class="left">${_('members')}</th>
<th class="left">${_('active')}</th>
<th class="left">${_('action')}</th>
</tr>
%for cnt,u_group in enumerate(c.users_groups_list):
<tr class="parity${cnt%2}">
<td>${h.link_to(u_group.groupname,h.url('edit_user_group', id=u_group.group_id))}</td>
<td>${u_group.members}</td>
<td>${h.bool2icon(u_group.active)}</td>
<td>
${h.form(url('users_group', id=group.group_id),method='delete')}
${h.submit('remove_','delete',id="remove_group_%s" % group.group_id,
class_="delete_icon action_button",onclick="return confirm('Confirm to delete this user group');")}
${h.end_form()}
</td>
</tr>
%endfor
</table>
</div>
</div>
</%def>