##// END OF EJS Templates
fixed user groups layout
Liviu -
r3701:9c6aea4f new-ui
parent child Browse files
Show More
@@ -1,70 +1,76 b''
1 <%namespace name="base" file="/base/base.mako"/>
1 <%namespace name="base" file="/base/base.mako"/>
2
2
3 <div class="panel panel-default user-profile">
3 <div class="panel panel-default user-profile">
4 <div class="panel-heading">
4 <div class="panel-heading">
5 <h3 class="panel-title">${_('User group profile')}</h3>
5 <h3 class="panel-title">${_('User group profile')}</h3>
6 %if c.is_super_admin:
6 %if c.is_super_admin:
7 ${h.link_to(_('Edit'), h.route_path('edit_user_group', user_group_id=c.user_group.users_group_id), class_='panel-edit')}
7 ${h.link_to(_('Edit'), h.route_path('edit_user_group', user_group_id=c.user_group.users_group_id), class_='panel-edit')}
8 %endif
8 %endif
9 </div>
9 </div>
10
10
11 <div class="panel-body user-profile-content">
11 <div class="panel-body user-profile-content fields">
12
12 <div class="field">
13 <div class="fieldset">
13 <div class="label">
14 <div class="left-label">
15 ${_('Group Name')}:
14 ${_('Group Name')}:
16 </div>
15 </div>
17 <div class="right-content">
16 <div class="input">
17 <div class="text-as-placeholder">
18 ${c.user_group.users_group_name}
18 ${c.user_group.users_group_name}
19 </div>
19 </div>
20 </div>
20 </div>
21 <div class="fieldset">
21 </div>
22 <div class="left-label">
22 <div class="field">
23 <div class="label">
23 ${_('Owner')}:
24 ${_('Owner')}:
24 </div>
25 </div>
25 <div class="group_member">
26 <div class="group_member">
26 ${base.gravatar(c.user_group.user.email, 16)}
27 ${base.gravatar(c.user_group.user.email, 16)}
27 <span class="username user">${h.link_to_user(c.user_group.user)}</span>
28 <span class="username user">${h.link_to_user(c.user_group.user)}</span>
28
29
29 </div>
30 </div>
30 </div>
31 </div>
31 <div class="fieldset">
32 <div class="field">
32 <div class="left-label">
33 <div class="label">
33 ${_('Active')}:
34 ${_('Active')}:
34 </div>
35 </div>
35 <div class="right-content">
36 <div class="input">
37 <div class="text-as-placeholder">
36 ${c.user_group.users_group_active}
38 ${c.user_group.users_group_active}
37 </div>
39 </div>
38 </div>
40 </div>
41 </div>
39 % if not c.anonymous:
42 % if not c.anonymous:
40 <div class="fieldset">
43 <div class="field">
41 <div class="left-label">
44 <div class="label">
42 ${_('Members')}:
45 ${_('Members')}:
43 </div>
46 </div>
44 <div class="right-content">
47
48 <div class="input">
49 <div class="text-as-placeholder">
45 <table id="group_members_placeholder" class="rctable group_members">
50 <table id="group_members_placeholder" class="rctable group_members">
46 <th>${_('Username')}</th>
51 <th>${_('Username')}</th>
47 % if c.group_members:
52 % if c.group_members:
48 % for user in c.group_members:
53 % for user in c.group_members:
49 <tr>
54 <tr>
50 <td id="member_user_${user.user_id}" class="td-author">
55 <td id="member_user_${user.user_id}" class="td-author">
51 <div class="group_member">
56 <div class="group_member">
52 ${base.gravatar(user.email, 16)}
57 ${base.gravatar(user.email, 16)}
53 <span class="username user">${h.link_to(h.person(user), h.route_path('user_edit',user_id=user.user_id))}</span>
58 <span class="username user">${h.link_to(h.person(user), h.route_path('user_edit',user_id=user.user_id))}</span>
54 <input type="hidden" name="__start__" value="member:mapping">
59 <input type="hidden" name="__start__" value="member:mapping">
55 <input type="hidden" name="member_user_id" value="${user.user_id}">
60 <input type="hidden" name="member_user_id" value="${user.user_id}">
56 <input type="hidden" name="type" value="existing" id="member_${user.user_id}">
61 <input type="hidden" name="type" value="existing" id="member_${user.user_id}">
57 <input type="hidden" name="__end__" value="member:mapping">
62 <input type="hidden" name="__end__" value="member:mapping">
58 </div>
63 </div>
59 </td>
64 </td>
60 </tr>
65 </tr>
61 % endfor
66 % endfor
62 % else:
67 % else:
63 <tr><td colspan="2">${_('No members yet')}</td></tr>
68 <tr><td colspan="2">${_('No members yet')}</td></tr>
64 % endif
69 % endif
65 </table>
70 </table>
66 </div>
71 </div>
67 </div>
72 </div>
73 </div>
68 % endif
74 % endif
69 </div>
75 </div>
70 </div> No newline at end of file
76 </div>
General Comments 0
You need to be logged in to leave comments. Login now