1
0
mirror of https://github.com/fspc/bike-database.git synced 2025-02-23 09:33:23 -05:00

lk | receipt button appears when client has a bike

This commit is contained in:
Louis Knapp 2015-12-29 14:08:40 -06:00
parent 6f435c9ec4
commit 3852c85432
3 changed files with 5 additions and 2 deletions

View File

@ -0,0 +1,2 @@
.btn.btn-default
= link_to 'Print Receipt', client_receipt_path(@client)

View File

@ -1,4 +1,5 @@
.container
%h1 Edit client
= render 'receipt_button' if @client.bike_id
= render 'form'
= link_to 'Back', clients_path

View File

@ -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