## -*- 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')}

${h.form(url('repo', id=c.repo_info.repo_name),method='put')}
${_('Name')} ${h.text('repo_name')} ${self.get_form_error('repo_name')}
${_('Description')} ${h.textarea('description',cols=23,rows=5)} ${self.get_form_error('description')}
${_('Private')} ${h.checkbox('private')} ${self.get_form_error('private')}
${_('Owner')} ${h.text('user')} ${self.get_form_error('user')}
${_('Permissions')} %for r2p in c.repo_info.repo2perm: %endfor <% if not hasattr(c,'form_errors'): d = 'display:none;' else: d='' %>
${_('none')} ${_('read')} ${_('write')} ${_('admin')} ${_('user')}
${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}
${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',size=10)} ${self.get_form_error('perm_new_user_name')}
${_('Add another user')}
${h.submit('update','update')}
${h.end_form()}