Browse Source

lk | receipt button appears when client has a bike

master
Louis Knapp 8 years ago
parent
commit
3852c85432
  1. 2
      app/views/clients/_receipt_button.html.haml
  2. 1
      app/views/clients/edit.html.haml
  3. 4
      app/views/freecyclery/receipt.html.haml

2
app/views/clients/_receipt_button.html.haml

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

1
app/views/clients/edit.html.haml

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

4
app/views/freecyclery/receipt.html.haml

@ -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…
Cancel
Save