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:
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
|
.container
|
||||||
%h1 Edit client
|
%h1 Edit client
|
||||||
|
= render 'receipt_button' if @client.bike_id
|
||||||
= render 'form'
|
= render 'form'
|
||||||
= link_to 'Back', clients_path
|
= link_to 'Back', clients_path
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
.client-information
|
.client-information
|
||||||
= @client.name
|
= @client.name
|
||||||
%br
|
%br
|
||||||
= @client.agency.agency_name
|
= @client.agency.agency_name if @client.agency
|
||||||
.horizontal-line
|
.horizontal-line
|
||||||
%br
|
%br
|
||||||
= 'Paid $25 for lock and helmet' if @client.will_pay
|
= 'Paid $25 for lock and helmet' if @client.will_pay
|
||||||
@ -47,7 +47,7 @@
|
|||||||
.client-information
|
.client-information
|
||||||
= @client.name
|
= @client.name
|
||||||
%br
|
%br
|
||||||
= @client.agency.agency_name
|
= @client.agency.agency_name if @client.agency
|
||||||
.horizontal-line
|
.horizontal-line
|
||||||
%br
|
%br
|
||||||
= 'Paid $25 for lock and helmet' if @client.will_pay
|
= 'Paid $25 for lock and helmet' if @client.will_pay
|
||||||
|
Loading…
x
Reference in New Issue
Block a user