Add master4, refactor customers view to use it
This commit is contained in:
		
							parent
							
								
									ab16ffc823
								
							
						
					
					
						commit
						63290154eb
					
				
					 6 changed files with 348 additions and 18 deletions
				
			
		| 
						 | 
				
			
			@ -1,4 +1,6 @@
 | 
			
		|||
## -*- coding: utf-8; -*-
 | 
			
		||||
<%inherit file="/mobile/master/create.mako" />
 | 
			
		||||
 | 
			
		||||
<%def name="title()">New ${model_title} Row</%def>
 | 
			
		||||
 | 
			
		||||
${parent.body()}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -8,5 +8,5 @@
 | 
			
		|||
${parent.body()}
 | 
			
		||||
 | 
			
		||||
% if master.mobile_rows_editable and instance_editable and request.has_perm('{}.edit_row'.format(permission_prefix)):
 | 
			
		||||
  ${h.link_to("Edit", url('mobile.{}.edit_row'.format(route_prefix), uuid=instance.uuid), class_='ui-btn')}
 | 
			
		||||
  ${h.link_to("Edit", url('mobile.{}.edit_row'.format(route_prefix), uuid=instance.batch_uuid, row_uuid=instance.uuid), class_='ui-btn')}
 | 
			
		||||
% endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue