## snippet for displaying default permission box ## usage: ## <%namespace name="dpb" file="/base/default_perms_box.html"/> ## ${dpb.default_perms_box()} <%def name="default_perms_box(form_url)"> ${h.form(form_url, method='put')}
${h.checkbox('inherit_default_permissions',value=True)}
${h.literal(_('Select to inherit permissions from %s settings. ' 'With this selected below options does not apply.') % h.link_to('default', url('edit_permission', id='default')))}
${h.checkbox('create_repo_perm',value=True)}
${h.literal(_('Select this option to allow repository creation for this user'))}
${h.checkbox('create_user_group_perm',value=True)}
${h.literal(_('Select this option to allow user group creation for this user'))}
${h.checkbox('fork_repo_perm',value=True)}
${h.literal(_('Select this option to allow repository forking for this user'))}
${h.submit('save',_('Save'),class_="ui-btn large")} ${h.reset('reset',_('Reset'),class_="ui-btn large")}
${h.end_form()} ## JS