Add support for detaching Person from Customer

This commit is contained in:
Lance Edgar 2018-01-24 23:53:12 -06:00
parent b8c6e95b73
commit 96e5c42795
2 changed files with 121 additions and 6 deletions

View file

@ -0,0 +1,21 @@
## -*- coding: utf-8; -*-
<%inherit file="/master/view.mako" />
<%def name="extra_javascript()">
${parent.extra_javascript()}
% if master.people_detachable and request.has_perm('{}.detach_person'.format(permission_prefix)):
<script type="text/javascript">
$(function() {
$('.people .grid .actions a.detach').click(function() {
if (! confirm("Are you sure you wish to detach this Person from the Customer?")) {
return false;
}
});
});
</script>
% endif
</%def>
${parent.body()}