diff --git a/rhodecode/templates/base/default_perms_box.html b/rhodecode/templates/base/default_perms_box.html new file mode 100644 --- /dev/null +++ b/rhodecode/templates/base/default_perms_box.html @@ -0,0 +1,86 @@ +## 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 + + +