view rhodecode/templates/admin/permissions/permissions_globals.html @ 4116:ffd45b185016 rhodecode-2.2.5-gpl

Imported some of the GPLv3'd changes from RhodeCode v2.2.5. This imports changes between changesets 21af6c4eab3d and 6177597791c2 in RhodeCode's original repository, including only changes to Python files and HTML. RhodeCode clearly licensed its changes to these files under GPLv3 in their /LICENSE file, which states the following: The Python code and integrated HTML are licensed under the GPLv3 license. (See: https://code.rhodecode.com/rhodecode/files/v2.2.5/LICENSE or http://web.archive.org/web/20140512193334/https://code.rhodecode.com/rhodecode/files/f3b123159901f15426d18e3dc395e8369f70ebe0/LICENSE for an online copy of that LICENSE file) Conservancy reviewed these changes and confirmed that they can be licensed as a whole to the Kallithea project under GPLv3-only. While some of the contents committed herein are clearly licensed GPLv3-or-later, on the whole we must assume the are GPLv3-only, since the statement above from RhodeCode indicates that they intend GPLv3-only as their license, per GPLv3ยง14 and other relevant sections of GPLv3.
author Bradley M. Kuhn <bkuhn@sfconservancy.org>
date Wed, 02 Jul 2014 19:03:13 -0400
parents
children
line wrap: on
line source

${h.form(url('admin_permissions'), method='post')}
    <div class="form">
        <!-- fields -->
        <div class="fields">
            <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>
                     <span class="help-block">${h.literal(_('Allow access to RhodeCode without need to log in. Anonymous users use %s user permissions' % (h.link_to('*default*',h.url('admin_permissions_perms')))))}</span>
                </div>
            </div>
            <div class="field">
                <div class="label">
                    <label for="default_repo_perm">${_('Repository')}:</label>
                </div>
                <div class="select">
                    ${h.select('default_repo_perm','',c.repo_perms_choices)}

                    ${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 chosen 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 chosen permission, note that all custom default permission on repository groups will be lost'))}">
                    ${_('Overwrite existing settings')}</span> </label>

                </div>
            </div>
            <div class="field">
                <div class="label">
                    <label for="default_group_perm">${_('User group')}:</label>
                </div>
                <div class="select">
                    ${h.select('default_user_group_perm','',c.user_group_perms_choices)}
                    ${h.checkbox('overwrite_default_user_group','true')}
                    <label for="overwrite_default_user_group">
                    <span class="tooltip"
                    title="${h.tooltip(_('All default permissions on each user group will be reset to chosen permission, note that all custom default permission on repository groups will be lost'))}">
                    ${_('Overwrite existing settings')}</span> </label>

                </div>
            </div>
             <div class="field">
                <div class="label">
                    <label for="default_repo_create">${_('Repository creation')}:</label>
                </div>
                <div class="select">
                    ${h.select('default_repo_create','',c.repo_create_choices)}
                </div>
             </div>
            <div class="field">
                <div class="label label-checkbox">
                    <label for="create_on_write">${_('Repository creation with group write access')}:</label>
                </div>
                <div class="select">
                    ${h.select('create_on_write','',c.repo_create_on_write_choices)}
                    <span class="help-block">${_('Write permission to repository groups allows creating repositories inside that group')}</span>
                </div>
            </div>
             <div class="field">
                <div class="label">
                    <label for="default_user_group_create">${_('User group creation')}:</label>
                </div>
                <div class="select">
                    ${h.select('default_user_group_create','',c.user_group_create_choices)}
                </div>
             </div>
             <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>
             <div class="field">
                <div class="label">
                    <label for="default_register">${_('Registration')}:</label>
                </div>
                <div class="select">
                    ${h.select('default_register','',c.register_choices)}
                </div>
             </div>
             <div class="field">
                <div class="label">
                    <label for="default_extern_activate">${_('External auth account activation')}:</label>
                </div>
                <div class="select">
                    ${h.select('default_extern_activate','',c.extern_activate_choices)}
                </div>
             </div>
            <div class="buttons">
              ${h.submit('save',_('Save'),class_="btn")}
              ${h.reset('reset',_('Reset'),class_="btn")}
            </div>
        </div>
    </div>
${h.end_form()}