## USERS %for r2p in c.users_group.user_user_group_to_perm: ##forbid revoking permission from yourself %if c.rhodecode_user.user_id != r2p.user.user_id or c.rhodecode_user.is_admin: %else: %endif %endfor ## USER GROUPS %for g2p in c.users_group.user_group_user_group_to_perm: %endfor <% _tmpl = h.literal("""' \ \ \ \ \ \ '""") %> ## ADD HERE DYNAMICALLY NEW INPUTS FROM THE '_tmpl'
${_('none')} ${_('read')} ${_('write')} ${_('admin')} ${_('member')}
${h.radio('u_perm_%s' % r2p.user.username,'usergroup.none')} ${h.radio('u_perm_%s' % r2p.user.username,'usergroup.read')} ${h.radio('u_perm_%s' % r2p.user.username,'usergroup.write')} ${h.radio('u_perm_%s' % r2p.user.username,'usergroup.admin')} ${r2p.user.username if r2p.user.username != 'default' else _('default')} %if r2p.user.username !='default': ${_('revoke')} %endif ${h.radio('u_perm_%s' % r2p.user.username,'usergroup.none', disabled="disabled")} ${h.radio('u_perm_%s' % r2p.user.username,'usergroup.read', disabled="disabled")} ${h.radio('u_perm_%s' % r2p.user.username,'usergroup.write', disabled="disabled")} ${h.radio('u_perm_%s' % r2p.user.username,'usergroup.admin', disabled="disabled")} ${r2p.user.username if r2p.user.username != 'default' else _('default')}
${h.radio('g_perm_%s' % g2p.user_group.users_group_name,'usergroup.none')} ${h.radio('g_perm_%s' % g2p.user_group.users_group_name,'usergroup.read')} ${h.radio('g_perm_%s' % g2p.user_group.users_group_name,'usergroup.write')} ${h.radio('g_perm_%s' % g2p.user_group.users_group_name,'usergroup.admin')} ${g2p.user_group.users_group_name} ${_('revoke')}
\
\ \ \
\
\
${_('Add another member')}