## USERS %for r2p in c.repos_group.repo_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 ## USERS GROUPS %for g2p in c.repos_group.users_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,'group.none')} ${h.radio('u_perm_%s' % r2p.user.username,'group.read')} ${h.radio('u_perm_%s' % r2p.user.username,'group.write')} ${h.radio('u_perm_%s' % r2p.user.username,'group.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,'group.none', disabled="disabled")} ${h.radio('u_perm_%s' % r2p.user.username,'group.read', disabled="disabled")} ${h.radio('u_perm_%s' % r2p.user.username,'group.write', disabled="disabled")} ${h.radio('u_perm_%s' % r2p.user.username,'group.admin', disabled="disabled")} ${r2p.user.username if r2p.user.username != 'default' else _('default')}
${h.radio('g_perm_%s' % g2p.users_group.users_group_name,'group.none')} ${h.radio('g_perm_%s' % g2p.users_group.users_group_name,'group.read')} ${h.radio('g_perm_%s' % g2p.users_group.users_group_name,'group.write')} ${h.radio('g_perm_%s' % g2p.users_group.users_group_name,'group.admin')} ${g2p.users_group.users_group_name} ${_('revoke')}
\
\ \ \
\
\
${_('Add another member')}
${h.checkbox('recursive',value="True", label=_('apply to children'))} ${_('Set or revoke permission to all children of that group, including non-private repositories and other groups')}