## USERS %for r2p in c.repo_info.repo_to_perm: %if r2p.user.username =='default' and c.repo_info.private: %else: %endif %endfor ## USERS GROUPS %for g2p in c.repo_info.users_group_to_perm: %endfor <% _tmpl = h.literal("""' \ \ \ \ \ \ '""") %> ## ADD HERE DYNAMICALLY NEW INPUTS FROM THE '_tmpl'
${_('none')} ${_('read')} ${_('write')} ${_('admin')} ${_('member')}
${_('private repository')} ${_('default')}
${h.radio('u_perm_%s' % r2p.user.username,'repository.none')} ${h.radio('u_perm_%s' % r2p.user.username,'repository.read')} ${h.radio('u_perm_%s' % r2p.user.username,'repository.write')} ${h.radio('u_perm_%s' % r2p.user.username,'repository.admin')} ${r2p.user.username if r2p.user.username != 'default' else _('default')} %if r2p.user.username !='default': ${_('revoke')} %endif
${h.radio('g_perm_%s' % g2p.users_group.users_group_name,'repository.none')} ${h.radio('g_perm_%s' % g2p.users_group.users_group_name,'repository.read')} ${h.radio('g_perm_%s' % g2p.users_group.users_group_name,'repository.write')} ${h.radio('g_perm_%s' % g2p.users_group.users_group_name,'repository.admin')} %if h.HasPermissionAny('hg.admin')(): ${g2p.users_group.users_group_name} %else: ${g2p.users_group.users_group_name} %endif ${_('revoke')}
\
\ \ \
\
\
${_('Add another member')}