##// END OF EJS Templates
fixed issues with form upload if settings for repo paths are blocked
fixed issues with form upload if settings for repo paths are blocked

File last commit:

r3715:25dbbdae beta
r4046:38ab60c1 default
Show More
repo_edit_perms.html
103 lines | 4.7 KiB | text/html | HtmlLexer
Ui fixes for tables
r1602 <table id="permissions_manage" class="noborder">
#56 added ajax removal of users groups,...
r1015 <tr>
<td>${_('none')}</td>
<td>${_('read')}</td>
<td>${_('write')}</td>
<td>${_('admin')}</td>
<td>${_('member')}</td>
<td></td>
</tr>
White-space cleanup
r1888 ## USERS
#56 added ajax removal of users groups,...
r1015 %for r2p in c.repo_info.repo_to_perm:
%if r2p.user.username =='default' and c.repo_info.private:
<tr>
<td colspan="4">
<span class="private_repo_msg">
${_('private repository')}
</span>
</td>
Vincent Duvert
The ‘default’ username on the permission panels is now translatable.
r2418 <td class="private_repo_msg"><img style="vertical-align:bottom" src="${h.url('/images/icons/user.png')}"/>${_('default')}</td>
#56 added ajax removal of users groups,...
r1015 </tr>
%else:
<tr id="id${id(r2p.user.username)}">
<td>${h.radio('u_perm_%s' % r2p.user.username,'repository.none')}</td>
<td>${h.radio('u_perm_%s' % r2p.user.username,'repository.read')}</td>
<td>${h.radio('u_perm_%s' % r2p.user.username,'repository.write')}</td>
<td>${h.radio('u_perm_%s' % r2p.user.username,'repository.admin')}</td>
fixes autocomplete on groups in non admin repository settings page
r1455 <td style="white-space: nowrap;">
Vincent Duvert
The ‘default’ username on the permission panels is now translatable.
r2418 <img class="perm-gravatar" src="${h.gravatar_url(r2p.user.email,14)}"/>${r2p.user.username if r2p.user.username != 'default' else _('default')}
fixes autocomplete on groups in non admin repository settings page
r1455 </td>
#56 added ajax removal of users groups,...
r1015 <td>
%if r2p.user.username !='default':
- Manage User’s Groups: create, delete, rename, add/remove users inside....
r3714 <span class="delete_icon action_button" onclick="ajaxActionRevoke(${r2p.user.user_id}, 'user', '${'id%s'%id(r2p.user.username)}')">
fixes issue #203, added revoke message
r1378 ${_('revoke')}
#56 added ajax removal of users groups,...
r1015 </span>
White-space cleanup
r1888 %endif
#56 added ajax removal of users groups,...
r1015 </td>
</tr>
%endif
%endfor
White-space cleanup
r1888
Mads Kiilerich
"Users groups" is grammatically incorrect English - rename to "user groups"...
r3410 ## USER GROUPS
#56 added ajax removal of users groups,...
r1015 %for g2p in c.repo_info.users_group_to_perm:
<tr id="id${id(g2p.users_group.users_group_name)}">
<td>${h.radio('g_perm_%s' % g2p.users_group.users_group_name,'repository.none')}</td>
<td>${h.radio('g_perm_%s' % g2p.users_group.users_group_name,'repository.read')}</td>
<td>${h.radio('g_perm_%s' % g2p.users_group.users_group_name,'repository.write')}</td>
<td>${h.radio('g_perm_%s' % g2p.users_group.users_group_name,'repository.admin')}</td>
fixes autocomplete on groups in non admin repository settings page
r1455 <td style="white-space: nowrap;">
implemented #464 users groups links inside permission box (only for admins)
r2370 <img class="perm-gravatar" src="${h.url('/images/icons/group.png')}"/>
%if h.HasPermissionAny('hg.admin')():
<a href="${h.url('edit_users_group',id=g2p.users_group.users_group_id)}">${g2p.users_group.users_group_name}</a>
%else:
${g2p.users_group.users_group_name}
%endif
fixes autocomplete on groups in non admin repository settings page
r1455 </td>
#56 added ajax removal of users groups,...
r1015 <td>
- Manage User’s Groups: create, delete, rename, add/remove users inside....
r3714 <span class="delete_icon action_button" onclick="ajaxActionRevoke(${g2p.users_group.users_group_id}, 'user_group', '${'id%s'%id(g2p.users_group.users_group_name)}')">
fixes issue #203, added revoke message
r1378 ${_('revoke')}
#56 added ajax removal of users groups,...
r1015 </span>
</td>
</tr>
%endfor
#538 form for permissions can handle multiple users at once
r2759 <%
_tmpl = h.literal("""' \
<td><input type="radio" value="repository.none" name="perm_new_member_{0}" id="perm_new_member_{0}"></td> \
<td><input type="radio" value="repository.read" name="perm_new_member_{0}" id="perm_new_member_{0}"></td> \
<td><input type="radio" value="repository.write" name="perm_new_member_{0}" id="perm_new_member_{0}"></td> \
<td><input type="radio" value="repository.admin" name="perm_new_member_{0}" id="perm_new_member_{0}"></td> \
<td class="ac"> \
<div class="perm_ac" id="perm_ac_{0}"> \
<input class="yui-ac-input" id="perm_new_member_name_{0}" name="perm_new_member_name_{0}" value="" type="text"> \
<input id="perm_new_member_type_{0}" name="perm_new_member_type_{0}" value="" type="hidden"> \
<div id="perm_container_{0}"></div> \
</div> \
</td> \
<td></td>'""")
White space cleanup
r2815 %>
## ADD HERE DYNAMICALLY NEW INPUTS FROM THE '_tmpl'
#538 form for permissions can handle multiple users at once
r2759 <tr class="new_members last_new_member" id="add_perm_input"></tr>
#56 added ajax removal of users groups,...
r1015 <tr>
<td colspan="6">
<span id="add_perm" class="add_icon" style="cursor: pointer;">
${_('Add another member')}
</span>
</td>
</tr>
fixes autocomplete on groups in non admin repository settings page
r1455 </table>
<script type="text/javascript">
- Manage User’s Groups: create, delete, rename, add/remove users inside....
r3714 function ajaxActionRevoke(obj_id, obj_type, field_id) {
consistent handling of grant/revoke of permissions widgets...
r3715 url = "${h.url('delete_repo_perm_member',repo_name=c.repo_name)}";
ajaxActionRevokePermission(url, obj_id, obj_type, field_id);
fixes autocomplete on groups in non admin repository settings page
r1455 };
White-space cleanup
r1888
fixes autocomplete on groups in non admin repository settings page
r1455 YUE.onDOMReady(function () {
if (!YUD.hasClass('perm_new_member_name', 'error')) {
YUD.setStyle('add_perm_input', 'display', 'none');
}
YAHOO.util.Event.addListener('add_perm', 'click', function () {
#538 form for permissions can handle multiple users at once
r2759 addPermAction(${_tmpl}, ${c.users_array|n}, ${c.users_groups_array|n});
fixes autocomplete on groups in non admin repository settings page
r1455 });
});
White-space cleanup
r1888 </script>