permissions.html
98 lines
| 3.3 KiB
| text/html
|
HtmlLexer
r547 | ## -*- coding: utf-8 -*- | |||
<%inherit file="/base/base.html"/> | ||||
<%def name="title()"> | ||||
r619 | ${_('Permissions administration')} - ${c.rhodecode_name} | |||
r547 | </%def> | |||
<%def name="breadcrumbs_links()"> | ||||
r1888 | ${h.link_to(_('Admin'),h.url('admin_home'))} | |||
r547 | » | |||
r1888 | ${_('Permissions')} | |||
r547 | </%def> | |||
<%def name="page_nav()"> | ||||
${self.menu('admin')} | ||||
</%def> | ||||
<%def name="main()"> | ||||
<div class="box"> | ||||
<!-- box / title --> | ||||
<div class="title"> | ||||
r1888 | ${self.breadcrumbs()} | |||
r547 | </div> | |||
<h3>${_('Default permissions')}</h3> | ||||
${h.form(url('permission', id='default'),method='put')} | ||||
<div class="form"> | ||||
<!-- fields --> | ||||
<div class="fields"> | ||||
r673 | <div class="field"> | |||
<div class="label label-checkbox"> | ||||
<label for="anonymous">${_('Anonymous access')}:</label> | ||||
</div> | ||||
<div class="checkboxes"> | ||||
<div class="checkbox"> | ||||
${h.checkbox('anonymous',True)} | ||||
</div> | ||||
</div> | ||||
r1888 | </div> | |||
r547 | <div class="field"> | |||
r2709 | <div class="label"> | |||
r3052 | <label for="default_repo_perm">${_('Repository')}:</label> | |||
r547 | </div> | |||
<div class="select"> | ||||
r3052 | ${h.select('default_repo_perm','',c.repo_perms_choices)} | |||
r1888 | ||||
r3052 | ${h.checkbox('overwrite_default_repo','true')} | |||
<label for="overwrite_default_repo"> | ||||
<span class="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> | ||||
</div> | ||||
<div class="field"> | ||||
<div class="label"> | ||||
<label for="default_group_perm">${_('Repository group')}:</label> | ||||
</div> | ||||
<div class="select"> | ||||
${h.select('default_group_perm','',c.group_perms_choices)} | ||||
${h.checkbox('overwrite_default_group','true')} | ||||
<label for="overwrite_default_group"> | ||||
<span class="tooltip" | ||||
title="${h.tooltip(_('All default permissions on each repository group will be reset to choosen permission, note that all custom default permission on repositories group will be lost'))}"> | ||||
${_('overwrite existing settings')}</span> </label> | ||||
r3057 | ||||
r1888 | </div> | |||
</div> | ||||
r547 | <div class="field"> | |||
<div class="label"> | ||||
<label for="default_register">${_('Registration')}:</label> | ||||
</div> | ||||
<div class="select"> | ||||
${h.select('default_register','',c.register_choices)} | ||||
</div> | ||||
r1888 | </div> | |||
r547 | <div class="field"> | |||
<div class="label"> | ||||
<label for="default_create">${_('Repository creation')}:</label> | ||||
</div> | ||||
<div class="select"> | ||||
${h.select('default_create','',c.create_choices)} | ||||
</div> | ||||
r1888 | </div> | |||
r2709 | <div class="field"> | |||
<div class="label"> | ||||
<label for="default_fork">${_('Repository forking')}:</label> | ||||
</div> | ||||
<div class="select"> | ||||
${h.select('default_fork','',c.fork_choices)} | ||||
</div> | ||||
</div> | ||||
r547 | <div class="buttons"> | |||
r2607 | ${h.submit('set',_('set'),class_="ui-btn large")} | |||
r1888 | </div> | |||
r547 | </div> | |||
r1888 | </div> | |||
r547 | ${h.end_form()} | |||
</div> | ||||
r1888 | </%def> | |||