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