permissions.html
68 lines
| 2.1 KiB
| text/html
|
HtmlLexer
r230 | ## -*- coding: utf-8 -*- | |||
<%inherit file="/base/base.html"/> | ||||
<%def name="title()"> | ||||
${_('Permissions administration')} | ||||
</%def> | ||||
r362 | ||||
<%def name="breadcrumbs_links()"> | ||||
${h.link_to(_('Admin'),h.url('admin_home'))} | ||||
» | ||||
r384 | ${_('Permissions')} | |||
r230 | </%def> | |||
r384 | ||||
r230 | <%def name="page_nav()"> | |||
${self.menu('admin')} | ||||
</%def> | ||||
r384 | ||||
r230 | <%def name="main()"> | |||
r362 | <div class="box"> | |||
<!-- box / title --> | ||||
<div class="title"> | ||||
${self.breadcrumbs()} | ||||
r230 | </div> | |||
r417 | <h3>${_('Default permissions')}</h3> | |||
${h.form(url('permission', id='default'),method='put')} | ||||
r384 | <div class="form"> | |||
<!-- fields --> | ||||
<div class="fields"> | ||||
<div class="field"> | ||||
<div class="label"> | ||||
r417 | <label for="default_perm">${_('Default repository permission')}:</label> | |||
r384 | </div> | |||
<div class="select"> | ||||
r417 | ${h.select('default_perm','',c.perms_choices)} | |||
r418 | ||||
${h.checkbox('overwrite_default','true')} | ||||
<label for="overwrite_default"> | ||||
<span class="tooltip" | ||||
tooltip_title="${h.tooltip(_('All default permissions on each repository will be reset to choosen permission, note that all custom default permission on repositories will be lost'))}"> | ||||
${_('overwrite existing settings')}</span> </label> | ||||
</div> | ||||
r417 | </div> | |||
<div class="field"> | ||||
<div class="label"> | ||||
<label for="default_register">${_('Registration')}:</label> | ||||
</div> | ||||
<div class="select"> | ||||
${h.select('default_register','',c.register_choices)} | ||||
r384 | </div> | |||
r417 | </div> | |||
<div class="field"> | ||||
<div class="label"> | ||||
<label for="default_create">${_('Allow repository creation')}:</label> | ||||
</div> | ||||
<div class="select"> | ||||
${h.select('default_create','',c.create_choices)} | ||||
</div> | ||||
</div> | ||||
r384 | <div class="buttons"> | |||
${h.submit('set','set',class_="ui-button ui-widget ui-state-default ui-corner-all")} | ||||
r417 | </div> | |||
r384 | </div> | |||
</div> | ||||
${h.end_form()} | ||||
r362 | </div> | |||
r230 | </%def> | |||