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