## -*- coding: utf-8 -*- <%inherit file="/base/base.html"/> <%def name="title()"> ${_('Repositories administration')} <%def name="breadcrumbs()"> ${h.link_to(u'Admin',h.url('admin_home'))} / ${_('Repos')} <%def name="page_nav()"> ${self.menu('admin')} ${self.submenu('repos')} <%def name="main()">

${_('Repositories')} - ${_('edit')} "${c.repo_name}"

${h.form(url('repo', repo_name=c.repo_info.repo_name),method='put')}
${_('Name')} ${h.text('repo_name',size="28")} ${self.get_form_error('repo_name')}
${_('Description')} ${h.textarea('description',cols=32,rows=5)} ${self.get_form_error('description')}
${_('Private')} ${h.checkbox('private',value="True")} ${self.get_form_error('private')}
${_('Owner')}
${h.text('user',class_='yui-ac-input')}
${self.get_form_error('user')}
${_('Permissions')} %for r2p in c.repo_info.repo2perm: %if r2p.user.username =='default' and c.repo_info.private: %else: %endif %endfor <% if not hasattr(c,'form_errors'): d = 'display:none;' else: d='' %>
${_('none')} ${_('read')} ${_('write')} ${_('admin')} ${_('user')}
${_('disabled for private repository')} ${r2p.user.username}
${h.radio('perm_%s' % r2p.user.username,'repository.none')} ${h.radio('perm_%s' % r2p.user.username,'repository.read')} ${h.radio('perm_%s' % r2p.user.username,'repository.write')} ${h.radio('perm_%s' % r2p.user.username,'repository.admin')} ${r2p.user.username} %if r2p.user.username !='default': %endif
${h.radio('perm_new_user','repository.none')} ${h.radio('perm_new_user','repository.read')} ${h.radio('perm_new_user','repository.write')} ${h.radio('perm_new_user','repository.admin')}
${h.text('perm_new_user_name',class_='yui-ac-input')}
${self.get_form_error('perm_new_user_name')}
${_('Add another user')}
${h.submit('update','update')}
${h.end_form()}