##// END OF EJS Templates
build: fix 32bit builds
build: fix 32bit builds

File last commit:

r3332:16216d98 default
r3449:7c3af07c default
Show More
user_group_edit_advanced.mako
85 lines | 3.3 KiB | application/x-mako | MakoHtmlLexer
/ rhodecode / templates / admin / user_groups / user_group_edit_advanced.mako
templating: use .mako as extensions for template files.
r1282 <%namespace name="base" file="/base/base.mako"/>
<%
elems = [
templates: expose IDs of objects in advanced views. Usefull for API or ishell.
r3332 (_('User Group ID'), c.user_group.users_group_id, '', ''),
templating: use .mako as extensions for template files.
r1282 (_('Owner'), lambda:base.gravatar_with_user(c.user_group.user.email), '', ''),
(_('Created on'), h.format_date(c.user_group.created_on), '', '',),
(_('Members'), len(c.group_members_obj),'', [x for x in c.group_members_obj]),
user-groups: added info, and new panel to control user group synchronization....
r1600 (_('Automatic member sync'), 'Yes' if c.user_group.group_data.get('extern_type') else 'No', '', '',),
templating: use .mako as extensions for template files.
r1282 (_('Assigned to repositories'), len(c.group_to_repos),'', [x for x in c.group_to_repos]),
(_('Assigned to repo groups'), len(c.group_to_repo_groups), '', [x for x in c.group_to_repo_groups]),
user/user-groups: show if users or user groups are a part of review rules....
r2054 (_('Assigned to review rules'), len(c.group_to_review_rules), '', [x for x in c.group_to_review_rules]),
templating: use .mako as extensions for template files.
r1282 ]
%>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">${_('User Group: %s') % c.user_group.users_group_name}</h3>
</div>
<div class="panel-body">
${base.dt_info_panel(elems)}
</div>
user-groups: added info, and new panel to control user group synchronization....
r1600
templating: use .mako as extensions for template files.
r1282 </div>
user-groups: added info, and new panel to control user group synchronization....
r1600 <div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">${_('Group members sync')}</h3>
</div>
<div class="panel-body">
<% sync_type = c.user_group.group_data.get('extern_type') %>
% if sync_type:
<p>
${_('This group is set to be automatically synchronised.')}<br/>
${_('This group synchronization was set by')}: <strong>${sync_type}</strong>
</p>
% else:
<p>
${_('This group is not set to be automatically synchronised')}
</p>
% endif
<div>
forms: unified usage of h.secure_form. Make sure we ALWAYS pass in...
r2105 ${h.secure_form(h.route_path('edit_user_group_advanced_sync', user_group_id=c.user_group.users_group_id), request=request)}
user-groups: added info, and new panel to control user group synchronization....
r1600 <div class="field">
<button class="btn btn-default" type="submit">
%if sync_type:
${_('Disable synchronization')}
%else:
${_('Enable synchronization')}
%endif
</button>
</div>
<div class="field">
<span class="help-block">
user-groups: make the group sync help text explain more what group sync does
r1739 ${_('Users will be added or removed from this group when they authenticate with RhodeCode system, based on LDAP group membership. '
'This requires `LDAP+User group` authentication plugin to be configured and enabled. (EE only feature)')}
user-groups: added info, and new panel to control user group synchronization....
r1600 </span>
</div>
${h.end_form()}
</div>
</div>
</div>
templating: use .mako as extensions for template files.
r1282 <div class="panel panel-danger">
<div class="panel-heading">
<h3 class="panel-title">${_('Delete User Group')}</h3>
</div>
<div class="panel-body">
forms: unified usage of h.secure_form. Make sure we ALWAYS pass in...
r2105 ${h.secure_form(h.route_path('user_groups_delete', user_group_id=c.user_group.users_group_id), request=request)}
templating: use .mako as extensions for template files.
r1282 ${h.hidden('force', 1)}
<button class="btn btn-small btn-danger" type="submit"
onclick="return confirm('${_('Confirm to delete user group `%(ugroup)s` with all permission assignments') % {'ugroup': c.user_group.users_group_name}}');">
<i class="icon-remove-sign"></i>
${_('Delete This User Group')}
</button>
${h.end_form()}
</div>
</div>