annotate rhodecode/templates/admin/users_groups/users_group_edit.html @ 3415:b8f929bff7e3 beta

fixed tests and missing replacements from 5f1850e4712a
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 27 Feb 2013 02:27:09 +0100
parents b4daef4cc26d
children fa6ba6727475
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
972
2c8fd84935a4 #56 implemented users groups editing,
Marcin Kuzminski <marcin@python-works.com>
parents: 956
diff changeset
1 ## -*- coding: utf-8 -*-
2c8fd84935a4 #56 implemented users groups editing,
Marcin Kuzminski <marcin@python-works.com>
parents: 956
diff changeset
2 <%inherit file="/base/base.html"/>
2c8fd84935a4 #56 implemented users groups editing,
Marcin Kuzminski <marcin@python-works.com>
parents: 956
diff changeset
3
2c8fd84935a4 #56 implemented users groups editing,
Marcin Kuzminski <marcin@python-works.com>
parents: 956
diff changeset
4 <%def name="title()">
3415
b8f929bff7e3 fixed tests and missing replacements from 5f1850e4712a
Marcin Kuzminski <marcin@python-works.com>
parents: 3222
diff changeset
5 ${_('Edit user group')} ${c.users_group.users_group_name} - ${c.rhodecode_name}
972
2c8fd84935a4 #56 implemented users groups editing,
Marcin Kuzminski <marcin@python-works.com>
parents: 956
diff changeset
6 </%def>
2c8fd84935a4 #56 implemented users groups editing,
Marcin Kuzminski <marcin@python-works.com>
parents: 956
diff changeset
7
2c8fd84935a4 #56 implemented users groups editing,
Marcin Kuzminski <marcin@python-works.com>
parents: 956
diff changeset
8 <%def name="breadcrumbs_links()">
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1701
diff changeset
9 ${h.link_to(_('Admin'),h.url('admin_home'))}
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1701
diff changeset
10 &raquo;
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1701
diff changeset
11 ${h.link_to(_('UsersGroups'),h.url('users_groups'))}
972
2c8fd84935a4 #56 implemented users groups editing,
Marcin Kuzminski <marcin@python-works.com>
parents: 956
diff changeset
12 &raquo;
2c8fd84935a4 #56 implemented users groups editing,
Marcin Kuzminski <marcin@python-works.com>
parents: 956
diff changeset
13 ${_('edit')} "${c.users_group.users_group_name}"
2c8fd84935a4 #56 implemented users groups editing,
Marcin Kuzminski <marcin@python-works.com>
parents: 956
diff changeset
14 </%def>
2c8fd84935a4 #56 implemented users groups editing,
Marcin Kuzminski <marcin@python-works.com>
parents: 956
diff changeset
15
2c8fd84935a4 #56 implemented users groups editing,
Marcin Kuzminski <marcin@python-works.com>
parents: 956
diff changeset
16 <%def name="page_nav()">
2c8fd84935a4 #56 implemented users groups editing,
Marcin Kuzminski <marcin@python-works.com>
parents: 956
diff changeset
17 ${self.menu('admin')}
2c8fd84935a4 #56 implemented users groups editing,
Marcin Kuzminski <marcin@python-works.com>
parents: 956
diff changeset
18 </%def>
2c8fd84935a4 #56 implemented users groups editing,
Marcin Kuzminski <marcin@python-works.com>
parents: 956
diff changeset
19
2c8fd84935a4 #56 implemented users groups editing,
Marcin Kuzminski <marcin@python-works.com>
parents: 956
diff changeset
20 <%def name="main()">
1124
c52de8aa10e0 template fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 1051
diff changeset
21 <div class="box box-left">
972
2c8fd84935a4 #56 implemented users groups editing,
Marcin Kuzminski <marcin@python-works.com>
parents: 956
diff changeset
22 <!-- box / title -->
2c8fd84935a4 #56 implemented users groups editing,
Marcin Kuzminski <marcin@python-works.com>
parents: 956
diff changeset
23 <div class="title">
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1701
diff changeset
24 ${self.breadcrumbs()}
972
2c8fd84935a4 #56 implemented users groups editing,
Marcin Kuzminski <marcin@python-works.com>
parents: 956
diff changeset
25 </div>
2c8fd84935a4 #56 implemented users groups editing,
Marcin Kuzminski <marcin@python-works.com>
parents: 956
diff changeset
26 <!-- end box / title -->
2c8fd84935a4 #56 implemented users groups editing,
Marcin Kuzminski <marcin@python-works.com>
parents: 956
diff changeset
27 ${h.form(url('users_group', id=c.users_group.users_group_id),method='put', id='edit_users_group')}
2c8fd84935a4 #56 implemented users groups editing,
Marcin Kuzminski <marcin@python-works.com>
parents: 956
diff changeset
28 <div class="form">
2c8fd84935a4 #56 implemented users groups editing,
Marcin Kuzminski <marcin@python-works.com>
parents: 956
diff changeset
29 <!-- fields -->
3197
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
30 <div class="fields">
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
31 <div class="field">
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
32 <div class="label">
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
33 <label for="users_group_name">${_('Group name')}:</label>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
34 </div>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
35 <div class="input">
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
36 ${h.text('users_group_name',class_='small')}
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
37 </div>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
38 </div>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1701
diff changeset
39
3197
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
40 <div class="field">
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
41 <div class="label label-checkbox">
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
42 <label for="users_group_active">${_('Active')}:</label>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
43 </div>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
44 <div class="checkboxes">
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
45 ${h.checkbox('users_group_active',value=True)}
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
46 </div>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
47 </div>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
48 <div class="field">
985
4e38b2bc8835 extended functionality on users groups select box
Marcin Kuzminski <marcin@python-works.com>
parents: 972
diff changeset
49 <div class="label">
972
2c8fd84935a4 #56 implemented users groups editing,
Marcin Kuzminski <marcin@python-works.com>
parents: 956
diff changeset
50 <label for="users_group_active">${_('Members')}:</label>
2c8fd84935a4 #56 implemented users groups editing,
Marcin Kuzminski <marcin@python-works.com>
parents: 956
diff changeset
51 </div>
985
4e38b2bc8835 extended functionality on users groups select box
Marcin Kuzminski <marcin@python-works.com>
parents: 972
diff changeset
52 <div class="select">
3197
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
53 <table>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
54 <tr>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
55 <td>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
56 <div>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
57 <div style="float:left">
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
58 <div class="text" style="padding: 0px 0px 6px;">${_('Choosen group members')}</div>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
59 ${h.select('users_group_members',[x[0] for x in c.group_members],c.group_members,multiple=True,size=8,style="min-width:210px")}
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
60 <div id="remove_all_elements" style="cursor:pointer;text-align:center">
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
61 ${_('Remove all elements')}
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
62 <img alt="remove" style="vertical-align:text-bottom" src="${h.url('/images/icons/arrow_right.png')}"/>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
63 </div>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
64 </div>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
65 <div style="float:left;width:20px;padding-top:50px">
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
66 <img alt="add" id="add_element"
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
67 style="padding:2px;cursor:pointer"
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
68 src="${h.url('/images/icons/arrow_left.png')}"/>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
69 <br />
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
70 <img alt="remove" id="remove_element"
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
71 style="padding:2px;cursor:pointer"
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
72 src="${h.url('/images/icons/arrow_right.png')}"/>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
73 </div>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
74 <div style="float:left">
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
75 <div class="text" style="padding: 0px 0px 6px;">${_('Available members')}</div>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
76 ${h.select('available_members',[],c.available_members,multiple=True,size=8,style="min-width:210px")}
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
77 <div id="add_all_elements" style="cursor:pointer;text-align:center">
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
78 <img alt="add" style="vertical-align:text-bottom" src="${h.url('/images/icons/arrow_left.png')}"/>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
79 ${_('Add all elements')}
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
80 </div>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
81 </div>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
82 </div>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
83 </td>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
84 </tr>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3029
diff changeset
85 </table>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1701
diff changeset
86 </div>
972
2c8fd84935a4 #56 implemented users groups editing,
Marcin Kuzminski <marcin@python-works.com>
parents: 956
diff changeset
87
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1701
diff changeset
88 </div>
972
2c8fd84935a4 #56 implemented users groups editing,
Marcin Kuzminski <marcin@python-works.com>
parents: 956
diff changeset
89 <div class="buttons">
2607
7ae36df760ce removed deprecated ui-button
Marcin Kuzminski <marcin@python-works.com>
parents: 2394
diff changeset
90 ${h.submit('save',_('save'),class_="ui-btn large")}
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1701
diff changeset
91 </div>
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1701
diff changeset
92 </div>
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1701
diff changeset
93 </div>
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1701
diff changeset
94 ${h.end_form()}
972
2c8fd84935a4 #56 implemented users groups editing,
Marcin Kuzminski <marcin@python-works.com>
parents: 956
diff changeset
95 </div>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1701
diff changeset
96
1952
4a7de41dc22a show members in user groups with avatars
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
97 <div class="box box-right">
4a7de41dc22a show members in user groups with avatars
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
98 <!-- box / title -->
4a7de41dc22a show members in user groups with avatars
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
99 <div class="title">
4a7de41dc22a show members in user groups with avatars
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
100 <h5>${_('Permissions')}</h5>
4a7de41dc22a show members in user groups with avatars
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
101 </div>
4a7de41dc22a show members in user groups with avatars
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
102 ${h.form(url('users_group_perm', id=c.users_group.users_group_id), method='put')}
4a7de41dc22a show members in user groups with avatars
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
103 <div class="form">
4a7de41dc22a show members in user groups with avatars
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
104 <!-- fields -->
4a7de41dc22a show members in user groups with avatars
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
105 <div class="fields">
4a7de41dc22a show members in user groups with avatars
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
106 <div class="field">
4a7de41dc22a show members in user groups with avatars
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
107 <div class="label label-checkbox">
2709
d2d35cf2b351 RhodeCode now has a option to explicitly set forking permissions. ref #508
Marcin Kuzminski <marcin@python-works.com>
parents: 2607
diff changeset
108 <label for="inherit_permissions">${_('Inherit default permissions')}:</label>
d2d35cf2b351 RhodeCode now has a option to explicitly set forking permissions. ref #508
Marcin Kuzminski <marcin@python-works.com>
parents: 2607
diff changeset
109 </div>
d2d35cf2b351 RhodeCode now has a option to explicitly set forking permissions. ref #508
Marcin Kuzminski <marcin@python-works.com>
parents: 2607
diff changeset
110 <div class="checkboxes">
d2d35cf2b351 RhodeCode now has a option to explicitly set forking permissions. ref #508
Marcin Kuzminski <marcin@python-works.com>
parents: 2607
diff changeset
111 ${h.checkbox('inherit_default_permissions',value=True)}
d2d35cf2b351 RhodeCode now has a option to explicitly set forking permissions. ref #508
Marcin Kuzminski <marcin@python-works.com>
parents: 2607
diff changeset
112 </div>
d2d35cf2b351 RhodeCode now has a option to explicitly set forking permissions. ref #508
Marcin Kuzminski <marcin@python-works.com>
parents: 2607
diff changeset
113 <span class="help-block">${h.literal(_('Select to inherit permissions from %s settings. '
d2d35cf2b351 RhodeCode now has a option to explicitly set forking permissions. ref #508
Marcin Kuzminski <marcin@python-works.com>
parents: 2607
diff changeset
114 'With this selected below options does not have any action') % h.link_to('default', url('edit_permission', id='default')))}</span>
2815
acc05c33cc0c White space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 2709
diff changeset
115 </div>
2709
d2d35cf2b351 RhodeCode now has a option to explicitly set forking permissions. ref #508
Marcin Kuzminski <marcin@python-works.com>
parents: 2607
diff changeset
116 <div id="inherit_overlay" style="${'opacity:0.3' if c.users_group.inherit_default_permissions else ''}" >
d2d35cf2b351 RhodeCode now has a option to explicitly set forking permissions. ref #508
Marcin Kuzminski <marcin@python-works.com>
parents: 2607
diff changeset
117 <div class="field">
d2d35cf2b351 RhodeCode now has a option to explicitly set forking permissions. ref #508
Marcin Kuzminski <marcin@python-works.com>
parents: 2607
diff changeset
118 <div class="label label-checkbox">
1952
4a7de41dc22a show members in user groups with avatars
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
119 <label for="create_repo_perm">${_('Create repositories')}:</label>
4a7de41dc22a show members in user groups with avatars
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
120 </div>
4a7de41dc22a show members in user groups with avatars
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
121 <div class="checkboxes">
4a7de41dc22a show members in user groups with avatars
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
122 ${h.checkbox('create_repo_perm',value=True)}
4a7de41dc22a show members in user groups with avatars
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
123 </div>
4a7de41dc22a show members in user groups with avatars
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
124 </div>
2709
d2d35cf2b351 RhodeCode now has a option to explicitly set forking permissions. ref #508
Marcin Kuzminski <marcin@python-works.com>
parents: 2607
diff changeset
125 <div class="field">
d2d35cf2b351 RhodeCode now has a option to explicitly set forking permissions. ref #508
Marcin Kuzminski <marcin@python-works.com>
parents: 2607
diff changeset
126 <div class="label label-checkbox">
d2d35cf2b351 RhodeCode now has a option to explicitly set forking permissions. ref #508
Marcin Kuzminski <marcin@python-works.com>
parents: 2607
diff changeset
127 <label for="fork_repo_perm">${_('Fork repositories')}:</label>
d2d35cf2b351 RhodeCode now has a option to explicitly set forking permissions. ref #508
Marcin Kuzminski <marcin@python-works.com>
parents: 2607
diff changeset
128 </div>
d2d35cf2b351 RhodeCode now has a option to explicitly set forking permissions. ref #508
Marcin Kuzminski <marcin@python-works.com>
parents: 2607
diff changeset
129 <div class="checkboxes">
d2d35cf2b351 RhodeCode now has a option to explicitly set forking permissions. ref #508
Marcin Kuzminski <marcin@python-works.com>
parents: 2607
diff changeset
130 ${h.checkbox('fork_repo_perm',value=True)}
d2d35cf2b351 RhodeCode now has a option to explicitly set forking permissions. ref #508
Marcin Kuzminski <marcin@python-works.com>
parents: 2607
diff changeset
131 </div>
d2d35cf2b351 RhodeCode now has a option to explicitly set forking permissions. ref #508
Marcin Kuzminski <marcin@python-works.com>
parents: 2607
diff changeset
132 </div>
2815
acc05c33cc0c White space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 2709
diff changeset
133 </div>
1952
4a7de41dc22a show members in user groups with avatars
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
134 <div class="buttons">
2607
7ae36df760ce removed deprecated ui-button
Marcin Kuzminski <marcin@python-works.com>
parents: 2394
diff changeset
135 ${h.submit('save',_('Save'),class_="ui-btn large")}
7ae36df760ce removed deprecated ui-button
Marcin Kuzminski <marcin@python-works.com>
parents: 2394
diff changeset
136 ${h.reset('reset',_('Reset'),class_="ui-btn large")}
1952
4a7de41dc22a show members in user groups with avatars
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
137 </div>
4a7de41dc22a show members in user groups with avatars
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
138 </div>
4a7de41dc22a show members in user groups with avatars
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
139 </div>
4a7de41dc22a show members in user groups with avatars
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
140 ${h.end_form()}
4a7de41dc22a show members in user groups with avatars
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
141 </div>
4a7de41dc22a show members in user groups with avatars
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
142
4a7de41dc22a show members in user groups with avatars
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
143 <div class="box box-right">
4a7de41dc22a show members in user groups with avatars
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
144 <!-- box / title -->
4a7de41dc22a show members in user groups with avatars
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
145 <div class="title">
4a7de41dc22a show members in user groups with avatars
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
146 <h5>${_('Group members')}</h5>
4a7de41dc22a show members in user groups with avatars
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
147 </div>
2987
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
148
1952
4a7de41dc22a show members in user groups with avatars
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
149 <div class="group_members_wrap">
2987
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
150 % if c.group_members_obj:
1952
4a7de41dc22a show members in user groups with avatars
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
151 <ul class="group_members">
4a7de41dc22a show members in user groups with avatars
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
152 %for user in c.group_members_obj:
4a7de41dc22a show members in user groups with avatars
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
153 <li>
4a7de41dc22a show members in user groups with avatars
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
154 <div class="group_member">
4a7de41dc22a show members in user groups with avatars
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
155 <div class="gravatar"><img alt="gravatar" src="${h.gravatar_url(user.email,24)}"/> </div>
2987
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
156 <div>${h.link_to(user.username, h.url('edit_user',id=user.user_id))}</div>
1952
4a7de41dc22a show members in user groups with avatars
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
157 <div>${user.full_name}</div>
4a7de41dc22a show members in user groups with avatars
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
158 </div>
4a7de41dc22a show members in user groups with avatars
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
159 </li>
4a7de41dc22a show members in user groups with avatars
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
160 %endfor
4a7de41dc22a show members in user groups with avatars
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
161 </ul>
2987
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
162 %else:
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
163 <span class="empty_data">${_('No members yet')}</span>
3029
685ebc84c2e9 White space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 2987
diff changeset
164 %endif
1952
4a7de41dc22a show members in user groups with avatars
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
165 </div>
4a7de41dc22a show members in user groups with avatars
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
166 </div>
2987
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
167
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
168 <div class="box box-left">
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
169 <!-- box / title -->
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
170 <div class="title">
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
171 <h5>${_('Permissions defined for this group')}</h5>
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
172 </div>
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
173 ## permissions overview
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
174 <div id="perms" class="table">
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
175 %for section in sorted(c.users_group.permissions.keys()):
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
176 <div class="perms_section_head">${section.replace("_"," ").capitalize()}</div>
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
177 %if not c.users_group.permissions:
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
178 <span class="empty_data">${_('No permissions set yet')}</span>
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
179 %else:
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
180 <div id='tbl_list_wrap_${section}' class="yui-skin-sam">
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
181 <table id="tbl_list_repository">
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
182 <thead>
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
183 <tr>
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
184 <th class="left">${_('Name')}</th>
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
185 <th class="left">${_('Permission')}</th>
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
186 <th class="left">${_('Edit Permission')}</th>
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
187 </thead>
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
188 <tbody>
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
189 %for k in c.users_group.permissions[section]:
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
190 <%
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
191 section_perm = c.users_group.permissions[section].get(k)
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
192 _perm = section_perm.split('.')[-1]
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
193 %>
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
194 <tr>
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
195 <td>
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
196 %if section == 'repositories':
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
197 <a href="${h.url('summary_home',repo_name=k)}">${k}</a>
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
198 %elif section == 'repositories_groups':
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
199 <a href="${h.url('repos_group_home',group_name=k)}">${k}</a>
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
200 %endif
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
201 </td>
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
202 <td>
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
203 <span class="perm_tag ${_perm}">${section_perm}</span>
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
204 </td>
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
205 <td>
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
206 %if section == 'repositories':
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
207 <a href="${h.url('edit_repo',repo_name=k,anchor='permissions_manage')}">${_('edit')}</a>
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
208 %elif section == 'repositories_groups':
3222
b4daef4cc26d Group management delegation:
Marcin Kuzminski <marcin@python-works.com>
parents: 3197
diff changeset
209 <a href="${h.url('edit_repos_group',group_name=k,anchor='permissions_manage')}">${_('edit')}</a>
2987
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
210 %else:
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
211 --
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
212 %endif
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
213 </td>
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
214 </tr>
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
215 %endfor
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
216 </tbody>
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
217 </table>
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
218 </div>
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
219 %endif
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
220 %endfor
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
221 </div>
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
222 </div>
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
223
4150c45b5f7f Implemented #638 permissions overview to groups
Marcin Kuzminski <marcin@python-works.com>
parents: 2815
diff changeset
224
972
2c8fd84935a4 #56 implemented users groups editing,
Marcin Kuzminski <marcin@python-works.com>
parents: 956
diff changeset
225 <script type="text/javascript">
2394
6776f4e569d7 Moved select widget to rhodecode.js
Marcin Kuzminski <marcin@python-works.com>
parents: 1961
diff changeset
226 MultiSelectWidget('users_group_members','available_members','edit_users_group');
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1701
diff changeset
227 </script>
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1701
diff changeset
228 </%def>