##// END OF EJS Templates
fixed compare view for git (by changed to use raw_id)
fixed compare view for git (by changed to use raw_id)

File last commit:

r2394:6776f4e5 codereview
r2512:8ece6d04 beta
Show More
users_group_edit.html
145 lines | 5.9 KiB | text/html | HtmlLexer
#56 implemented users groups editing,...
r972 ## -*- coding: utf-8 -*-
<%inherit file="/base/base.html"/>
<%def name="title()">
${_('Edit users group')} ${c.users_group.users_group_name} - ${c.rhodecode_name}
</%def>
<%def name="breadcrumbs_links()">
White-space cleanup
r1888 ${h.link_to(_('Admin'),h.url('admin_home'))}
&raquo;
${h.link_to(_('UsersGroups'),h.url('users_groups'))}
#56 implemented users groups editing,...
r972 &raquo;
${_('edit')} "${c.users_group.users_group_name}"
</%def>
<%def name="page_nav()">
${self.menu('admin')}
</%def>
<%def name="main()">
template fixes
r1124 <div class="box box-left">
#56 implemented users groups editing,...
r972 <!-- box / title -->
<div class="title">
White-space cleanup
r1888 ${self.breadcrumbs()}
#56 implemented users groups editing,...
r972 </div>
<!-- end box / title -->
${h.form(url('users_group', id=c.users_group.users_group_id),method='put', id='edit_users_group')}
<div class="form">
<!-- fields -->
<div class="fields">
<div class="field">
<div class="label">
<label for="users_group_name">${_('Group name')}:</label>
</div>
<div class="input">
${h.text('users_group_name',class_='small')}
</div>
</div>
White-space cleanup
r1888
#56 implemented users groups editing,...
r972 <div class="field">
<div class="label label-checkbox">
<label for="users_group_active">${_('Active')}:</label>
</div>
<div class="checkboxes">
${h.checkbox('users_group_active',value=True)}
</div>
</div>
<div class="field">
extended functionality on users groups select box
r985 <div class="label">
#56 implemented users groups editing,...
r972 <label for="users_group_active">${_('Members')}:</label>
</div>
extended functionality on users groups select box
r985 <div class="select">
White-space cleanup
r1888 <table>
#56 implemented users groups editing,...
r972 <tr>
<td>
<div>
<div style="float:left">
extended functionality on users groups select box
r985 <div class="text" style="padding: 0px 0px 6px;">${_('Choosen group members')}</div>
#56 implemented users groups editing,...
r972 ${h.select('users_group_members',[x[0] for x in c.group_members],c.group_members,multiple=True,size=8,style="min-width:210px")}
extended functionality on users groups select box
r985 <div id="remove_all_elements" style="cursor:pointer;text-align:center">
${_('Remove all elements')}
fixed inline comment indicator....
r1701 <img alt="remove" style="vertical-align:text-bottom" src="${h.url('/images/icons/arrow_right.png')}"/>
extended functionality on users groups select box
r985 </div>
#56 implemented users groups editing,...
r972 </div>
<div style="float:left;width:20px;padding-top:50px">
White-space cleanup
r1888 <img alt="add" id="add_element"
style="padding:2px;cursor:pointer"
fixed inline comment indicator....
r1701 src="${h.url('/images/icons/arrow_left.png')}"/>
#56 implemented users groups editing,...
r972 <br />
White-space cleanup
r1888 <img alt="remove" id="remove_element"
style="padding:2px;cursor:pointer"
fixed inline comment indicator....
r1701 src="${h.url('/images/icons/arrow_right.png')}"/>
#56 implemented users groups editing,...
r972 </div>
<div style="float:left">
extended functionality on users groups select box
r985 <div class="text" style="padding: 0px 0px 6px;">${_('Available members')}</div>
#56 implemented users groups editing,...
r972 ${h.select('available_members',[],c.available_members,multiple=True,size=8,style="min-width:210px")}
extended functionality on users groups select box
r985 <div id="add_all_elements" style="cursor:pointer;text-align:center">
fixed inline comment indicator....
r1701 <img alt="add" style="vertical-align:text-bottom" src="${h.url('/images/icons/arrow_left.png')}"/>
extended functionality on users groups select box
r985 ${_('Add all elements')}
White-space cleanup
r1888 </div>
#56 implemented users groups editing,...
r972 </div>
</div>
White-space cleanup
r1888 </td>
</tr>
</table>
</div>
#56 implemented users groups editing,...
r972
White-space cleanup
r1888 </div>
#56 implemented users groups editing,...
r972 <div class="buttons">
Augusto Herrmann
Added pt_BR localization, added i18n wrappers on some places missing, fixed css in settings screen for longer labels.
r1472 ${h.submit('save',_('save'),class_="ui-button")}
White-space cleanup
r1888 </div>
</div>
</div>
${h.end_form()}
#56 implemented users groups editing,...
r972 </div>
White-space cleanup
r1888
show members in user groups with avatars
r1952 <div class="box box-right">
<!-- box / title -->
<div class="title">
<h5>${_('Permissions')}</h5>
</div>
${h.form(url('users_group_perm', id=c.users_group.users_group_id), method='put')}
<div class="form">
<!-- fields -->
<div class="fields">
<div class="field">
<div class="label label-checkbox">
<label for="create_repo_perm">${_('Create repositories')}:</label>
</div>
<div class="checkboxes">
${h.checkbox('create_repo_perm',value=True)}
</div>
</div>
<div class="buttons">
${h.submit('save',_('Save'),class_="ui-button")}
${h.reset('reset',_('Reset'),class_="ui-button")}
</div>
</div>
</div>
${h.end_form()}
</div>
<div class="box box-right">
<!-- box / title -->
<div class="title">
<h5>${_('Group members')}</h5>
</div>
<div class="group_members_wrap">
<ul class="group_members">
%for user in c.group_members_obj:
<li>
<div class="group_member">
<div class="gravatar"><img alt="gravatar" src="${h.gravatar_url(user.email,24)}"/> </div>
<div>${user.username}</div>
<div>${user.full_name}</div>
</div>
</li>
%endfor
</ul>
</div>
</div>
#56 implemented users groups editing,...
r972 <script type="text/javascript">
Moved select widget to rhodecode.js
r2394 MultiSelectWidget('users_group_members','available_members','edit_users_group');
White-space cleanup
r1888 </script>
</%def>