## -*- coding: utf-8 -*- <%inherit file="/base/base.html"/> <%def name="title()"> ${_('Repository settings')} <%def name="breadcrumbs()"> ${h.link_to(u'Home',h.url('/'))} / ${h.link_to(c.repo_name,h.url('shortlog_home',repo_name=c.repo_name))} / ${_('settings')} <%def name="page_nav()"> ${self.menu('settings')} <%def name="main()">
${h.form(url('repo_settings_update', 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')}
${_('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()}