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