Show More
@@ -130,11 +130,13 b' class UsersGroupsController(BaseControll' | |||
|
130 | 130 | c.users_group.permissions['repositories_groups'][gr.group.group_name] \ |
|
131 | 131 | = gr.permission.permission_name |
|
132 | 132 | |
|
133 |
c.group_members_obj = |
|
|
133 | c.group_members_obj = sorted((x.user for x in c.users_group.members), | |
|
134 | key=lambda u: u.username.lower()) | |
|
134 | 135 | c.group_members = [(x.user_id, x.username) for x in |
|
135 | 136 | c.group_members_obj] |
|
136 |
c.available_members = |
|
|
137 |
User.query().all() |
|
|
137 | c.available_members = sorted(((x.user_id, x.username) for x in | |
|
138 | User.query().all()), | |
|
139 | key=lambda u: u[1].lower()) | |
|
138 | 140 | |
|
139 | 141 | def update(self, id): |
|
140 | 142 | """PUT /users_groups/id: Update an existing item""" |
@@ -57,7 +57,7 b'' | |||
|
57 | 57 | <div style="float:left"> |
|
58 | 58 | <div class="text" style="padding: 0px 0px 6px;">${_('Chosen group members')}</div> |
|
59 | 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")} |
|
60 |
<div |
|
|
60 | <div id="remove_all_elements" style="cursor:pointer;text-align:center"> | |
|
61 | 61 | ${_('Remove all elements')} |
|
62 | 62 | <img alt="remove" style="vertical-align:text-bottom" src="${h.url('/images/icons/arrow_right.png')}"/> |
|
63 | 63 | </div> |
@@ -87,7 +87,7 b'' | |||
|
87 | 87 | |
|
88 | 88 | </div> |
|
89 | 89 | <div class="buttons"> |
|
90 |
${h.submit(' |
|
|
90 | ${h.submit('Save',_('save'),class_="ui-btn large")} | |
|
91 | 91 | </div> |
|
92 | 92 | </div> |
|
93 | 93 | </div> |
General Comments 0
You need to be logged in to leave comments.
Login now