mirror of
				https://github.com/fspc/bike-database.git
				synced 2025-10-31 00:35:35 -04:00 
			
		
		
		
	lk | receipt button appears when client has a bike
This commit is contained in:
		
							parent
							
								
									6f435c9ec4
								
							
						
					
					
						commit
						3852c85432
					
				
							
								
								
									
										2
									
								
								app/views/clients/_receipt_button.html.haml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								app/views/clients/_receipt_button.html.haml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,2 @@ | ||||
| .btn.btn-default | ||||
|   = link_to 'Print Receipt', client_receipt_path(@client) | ||||
| @ -1,4 +1,5 @@ | ||||
| .container | ||||
|   %h1 Edit client | ||||
|   = render 'receipt_button' if @client.bike_id | ||||
|   = render 'form' | ||||
|   = link_to 'Back', clients_path | ||||
|  | ||||
| @ -10,7 +10,7 @@ | ||||
|         .client-information | ||||
|         = @client.name | ||||
|         %br | ||||
|         = @client.agency.agency_name | ||||
|         = @client.agency.agency_name if @client.agency | ||||
|         .horizontal-line | ||||
|         %br | ||||
|         = 'Paid $25 for lock and helmet' if @client.will_pay | ||||
| @ -47,7 +47,7 @@ | ||||
|         .client-information | ||||
|         = @client.name | ||||
|         %br | ||||
|         = @client.agency.agency_name | ||||
|         = @client.agency.agency_name if @client.agency | ||||
|         .horizontal-line | ||||
|         %br | ||||
|         = 'Paid $25 for lock and helmet' if @client.will_pay | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user