##// END OF EJS Templates
user-groups: make the group sync help text explain more what group sync does
marcink -
r1739:6691e42c default
parent child Browse files
Show More
@@ -1,87 +1,83 b''
1 <%namespace name="base" file="/base/base.mako"/>
1 <%namespace name="base" file="/base/base.mako"/>
2
2
3 <%
3 <%
4 elems = [
4 elems = [
5 (_('Owner'), lambda:base.gravatar_with_user(c.user_group.user.email), '', ''),
5 (_('Owner'), lambda:base.gravatar_with_user(c.user_group.user.email), '', ''),
6 (_('Created on'), h.format_date(c.user_group.created_on), '', '',),
6 (_('Created on'), h.format_date(c.user_group.created_on), '', '',),
7
7
8 (_('Members'), len(c.group_members_obj),'', [x for x in c.group_members_obj]),
8 (_('Members'), len(c.group_members_obj),'', [x for x in c.group_members_obj]),
9 (_('Automatic member sync'), 'Yes' if c.user_group.group_data.get('extern_type') else 'No', '', '',),
9 (_('Automatic member sync'), 'Yes' if c.user_group.group_data.get('extern_type') else 'No', '', '',),
10
10
11 (_('Assigned to repositories'), len(c.group_to_repos),'', [x for x in c.group_to_repos]),
11 (_('Assigned to repositories'), len(c.group_to_repos),'', [x for x in c.group_to_repos]),
12 (_('Assigned to repo groups'), len(c.group_to_repo_groups), '', [x for x in c.group_to_repo_groups]),
12 (_('Assigned to repo groups'), len(c.group_to_repo_groups), '', [x for x in c.group_to_repo_groups]),
13
13
14 ]
14 ]
15 %>
15 %>
16
16
17 <div class="panel panel-default">
17 <div class="panel panel-default">
18 <div class="panel-heading">
18 <div class="panel-heading">
19 <h3 class="panel-title">${_('User Group: %s') % c.user_group.users_group_name}</h3>
19 <h3 class="panel-title">${_('User Group: %s') % c.user_group.users_group_name}</h3>
20 </div>
20 </div>
21 <div class="panel-body">
21 <div class="panel-body">
22 ${base.dt_info_panel(elems)}
22 ${base.dt_info_panel(elems)}
23 </div>
23 </div>
24
24
25 </div>
25 </div>
26
26
27 <div class="panel panel-default">
27 <div class="panel panel-default">
28 <div class="panel-heading">
28 <div class="panel-heading">
29 <h3 class="panel-title">${_('Group members sync')}</h3>
29 <h3 class="panel-title">${_('Group members sync')}</h3>
30 </div>
30 </div>
31 <div class="panel-body">
31 <div class="panel-body">
32 <% sync_type = c.user_group.group_data.get('extern_type') %>
32 <% sync_type = c.user_group.group_data.get('extern_type') %>
33
33
34 % if sync_type:
34 % if sync_type:
35 <p>
35 <p>
36 ${_('This group is set to be automatically synchronised.')}<br/>
36 ${_('This group is set to be automatically synchronised.')}<br/>
37 ${_('Each member will be added or removed from this groups once they interact with RhodeCode system.')}<br/>
38 ${_('This group synchronization was set by')}: <strong>${sync_type}</strong>
37 ${_('This group synchronization was set by')}: <strong>${sync_type}</strong>
39 </p>
38 </p>
40 % else:
39 % else:
41 <p>
40 <p>
42 ${_('This group is not set to be automatically synchronised')}
41 ${_('This group is not set to be automatically synchronised')}
43 </p>
42 </p>
44 % endif
43 % endif
45
44
46 <div>
45 <div>
47 ${h.secure_form(h.url('edit_user_group_advanced_sync', user_group_id=c.user_group.users_group_id), method='post')}
46 ${h.secure_form(h.url('edit_user_group_advanced_sync', user_group_id=c.user_group.users_group_id), method='post')}
48 <div class="field">
47 <div class="field">
49 <button class="btn btn-default" type="submit">
48 <button class="btn btn-default" type="submit">
50 %if sync_type:
49 %if sync_type:
51 ${_('Disable synchronization')}
50 ${_('Disable synchronization')}
52 %else:
51 %else:
53 ${_('Enable synchronization')}
52 ${_('Enable synchronization')}
54 %endif
53 %endif
55 </button>
54 </button>
56 </div>
55 </div>
57 <div class="field">
56 <div class="field">
58 <span class="help-block">
57 <span class="help-block">
59 %if sync_type:
58 ${_('Users will be added or removed from this group when they authenticate with RhodeCode system, based on LDAP group membership. '
60 ${_('User group will no longer synchronize membership')}
59 'This requires `LDAP+User group` authentication plugin to be configured and enabled. (EE only feature)')}
61 %else:
62 ${_('User group will start to synchronize membership')}
63 %endif
64 </span>
60 </span>
65 </div>
61 </div>
66 ${h.end_form()}
62 ${h.end_form()}
67 </div>
63 </div>
68
64
69 </div>
65 </div>
70 </div>
66 </div>
71
67
72
68
73 <div class="panel panel-danger">
69 <div class="panel panel-danger">
74 <div class="panel-heading">
70 <div class="panel-heading">
75 <h3 class="panel-title">${_('Delete User Group')}</h3>
71 <h3 class="panel-title">${_('Delete User Group')}</h3>
76 </div>
72 </div>
77 <div class="panel-body">
73 <div class="panel-body">
78 ${h.secure_form(h.url('delete_users_group', user_group_id=c.user_group.users_group_id),method='delete')}
74 ${h.secure_form(h.url('delete_users_group', user_group_id=c.user_group.users_group_id),method='delete')}
79 ${h.hidden('force', 1)}
75 ${h.hidden('force', 1)}
80 <button class="btn btn-small btn-danger" type="submit"
76 <button class="btn btn-small btn-danger" type="submit"
81 onclick="return confirm('${_('Confirm to delete user group `%(ugroup)s` with all permission assignments') % {'ugroup': c.user_group.users_group_name}}');">
77 onclick="return confirm('${_('Confirm to delete user group `%(ugroup)s` with all permission assignments') % {'ugroup': c.user_group.users_group_name}}');">
82 <i class="icon-remove-sign"></i>
78 <i class="icon-remove-sign"></i>
83 ${_('Delete This User Group')}
79 ${_('Delete This User Group')}
84 </button>
80 </button>
85 ${h.end_form()}
81 ${h.end_form()}
86 </div>
82 </div>
87 </div>
83 </div>
General Comments 0
You need to be logged in to leave comments. Login now