Add support for detaching Person from Customer
This commit is contained in:
		
							parent
							
								
									b8c6e95b73
								
							
						
					
					
						commit
						96e5c42795
					
				
					 2 changed files with 121 additions and 6 deletions
				
			
		
							
								
								
									
										21
									
								
								tailbone/templates/customers/view.mako
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								tailbone/templates/customers/view.mako
									
										
									
									
									
										Normal 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()} | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lance Edgar
						Lance Edgar