##// END OF EJS Templates
ip-restritions: fix issue with loading empty IP rules for non-logged not-anonymous users....
ip-restritions: fix issue with loading empty IP rules for non-logged not-anonymous users. This case won't have any IP rules set. And we accidentally loaded them becuase of no empty user filter was present. This caused some odd display warnings for users.

File last commit:

r2175:ea878558 default
r2838:d1dcf373 default
Show More
repo_group_edit_settings.mako
95 lines | 4.6 KiB | application/x-mako | MakoHtmlLexer
/ rhodecode / templates / admin / repo_groups / repo_group_edit_settings.mako
templating: use .mako as extensions for template files.
r1282 ## -*- coding: utf-8 -*-
<%namespace name="base" file="/base/base.mako"/>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">${_('Settings for Repository Group: %s') % c.repo_group.name}</h3>
</div>
<div class="panel-body">
repo-groups: moved to pyramid
r2175 ${h.secure_form(h.route_path('edit_repo_group', repo_group_name=c.repo_group.group_name), request=request)}
templating: use .mako as extensions for template files.
r1282 <div class="form">
<!-- fields -->
<div class="fields">
<div class="field">
<div class="label">
<label for="group_name">${_('Group Name')}:</label>
</div>
<div class="input">
repo-groups: moved to pyramid
r2175 ${c.form['repo_group_name'].render(css_class='medium', oid='group_name')|n}
${c.form.render_error(request, c.form['repo_group_name'])|n}
</div>
</div>
<div class="field">
<div class="label">
<label for="repo_group">${_('Group parent')}:</label>
</div>
<div class="select">
${c.form['repo_group'].render(css_class='medium', oid='repo_group')|n}
${c.form.render_error(request, c.form['repo_group'])|n}
<p class="help-block">${_('Optional select a parent group to move this repository group into.')}</p>
templating: use .mako as extensions for template files.
r1282 </div>
</div>
<div class="field badged-field">
<div class="label">
repo-groups: moved to pyramid
r2175 <label for="repo_group_owner">${_('Owner')}:</label>
templating: use .mako as extensions for template files.
r1282 </div>
<div class="input">
<div class="badge-input-container">
<div class="user-badge">
${base.gravatar_with_user(c.repo_group.user.email, show_disabled=not c.repo_group.user.active)}
</div>
<div class="badge-input-wrap">
repo-groups: moved to pyramid
r2175 ${c.form['repo_group_owner'].render(css_class='medium', oid='repo_group_owner')|n}
templating: use .mako as extensions for template files.
r1282 </div>
</div>
repo-groups: moved to pyramid
r2175 ${c.form.render_error(request, c.form['repo_group_owner'])|n}
templating: use .mako as extensions for template files.
r1282 <p class="help-block">${_('Change owner of this repository group.')}</p>
</div>
</div>
<div class="field">
<div class="label label-textarea">
repo-groups: moved to pyramid
r2175 <label for="repo_group_description">${_('Description')}:</label>
templating: use .mako as extensions for template files.
r1282 </div>
<div class="textarea text-area editor">
repo-groups: moved to pyramid
r2175 ${c.form['repo_group_description'].render(css_class='medium', oid='repo_group_description')|n}
${c.form.render_error(request, c.form['repo_group_description'])|n}
meta-tags: cleanup support for metatags....
r2091 <% metatags_url = h.literal('''<a href="#metatagsShow" onclick="$('#meta-tags-desc').toggle();return false">meta-tags</a>''') %>
<span class="help-block">${_('Plain text format with support of {metatags}').format(metatags=metatags_url)|n}</span>
<span id="meta-tags-desc" style="display: none">
<%namespace name="dt" file="/data_table/_dt_elements.mako"/>
${dt.metatags_help()}
</span>
templating: use .mako as extensions for template files.
r1282 </div>
</div>
<div class="field">
<div class="label label-checkbox">
repo-groups: moved to pyramid
r2175 <label for="repo_group_enable_locking">${_('Enable Repository Locking')}:</label>
templating: use .mako as extensions for template files.
r1282 </div>
<div class="checkboxes">
repo-groups: moved to pyramid
r2175 ${c.form['repo_group_enable_locking'].render(css_class='medium', oid='repo_group_enable_locking')|n}
${c.form.render_error(request, c.form['repo_group_enable_locking'])|n}
templating: use .mako as extensions for template files.
r1282 <span class="help-block">${_('Repository locking will be enabled on all subgroups and repositories inside this repository group. Pulling from a repository locks it, and it is unlocked by pushing back by the same user.')}</span>
</div>
</div>
repo-groups: moved to pyramid
r2175
templating: use .mako as extensions for template files.
r1282 <div class="buttons">
${h.submit('save',_('Save'),class_="btn")}
${h.reset('reset',_('Reset'),class_="btn")}
</div>
</div>
</div>
${h.end_form()}
</div>
</div>
<script>
$(document).ready(function(){
repo-groups: moved to pyramid
r2175 UsersAutoComplete('repo_group_owner', '${c.rhodecode_user.user_id}');
templating: use .mako as extensions for template files.
r1282 })
</script>