## -*- coding: utf-8 -*- <%inherit file="/base/base.html"/> <%def name="title()"> ${_('Edit user group')} ${c.users_group.users_group_name} · ${c.rhodecode_name} <%def name="breadcrumbs_links()"> ${h.link_to(_('Admin'),h.url('admin_home'))} » ${h.link_to(_('UserGroups'),h.url('users_groups'))} » ${_('edit')} "${c.users_group.users_group_name}" <%def name="page_nav()"> ${self.menu('admin')} <%def name="main()">
${self.breadcrumbs()}
${h.form(url('users_group', id=c.users_group.users_group_id),method='put', id='edit_users_group')}
${h.text('users_group_name',class_='small')}
${h.checkbox('users_group_active',value=True)}
${_('Chosen group members')}
${h.select('users_group_members',[x[0] for x in c.group_members],c.group_members,multiple=True,size=8,style="min-width:210px")}
${_('Remove all elements')} remove
add
remove
${_('Available members')}
${h.select('available_members',[],c.available_members,multiple=True,size=8,style="min-width:210px")}
add ${_('Add all elements')}
${h.submit('save',_('save'),class_="ui-btn large")}
${h.end_form()}
${_('Permissions')}
${h.form(url('users_group_perm', id=c.users_group.users_group_id), method='put')}
${h.checkbox('inherit_default_permissions',value=True)}
${h.literal(_('Select to inherit permissions from %s settings. ' 'With this selected below options does not have any action') % h.link_to('default', url('edit_permission', id='default')))}
${h.checkbox('create_repo_perm',value=True)}
${h.checkbox('fork_repo_perm',value=True)}
${h.submit('save',_('Save'),class_="ui-btn large")} ${h.reset('reset',_('Reset'),class_="ui-btn large")}
${h.end_form()}
${_('Group members')}
% if c.group_members_obj: %else: ${_('No members yet')} %endif
${_('Permissions defined for this group')}
## permissions overview
%for section in sorted(c.users_group.permissions.keys()):
${section.replace("_"," ").capitalize()}
%if not c.users_group.permissions: ${_('No permissions set yet')} %else:
%for k in c.users_group.permissions[section]: <% section_perm = c.users_group.permissions[section].get(k) _perm = section_perm.split('.')[-1] %> %endfor
${_('Name')} ${_('Permission')} ${_('Edit Permission')}
%if section == 'repositories': ${k} %elif section == 'repositories_groups': ${k} %endif ${section_perm} %if section == 'repositories': ${_('edit')} %elif section == 'repositories_groups': ${_('edit')} %else: -- %endif
%endif %endfor