mirror of
https://github.com/fspc/bike-database.git
synced 2025-02-23 01:23:24 -05:00
lk | improves client receipt format
This commit is contained in:
parent
caf01518be
commit
109920f5ca
@ -1,6 +1,8 @@
|
||||
.print-receipts, .freecyclery-receipt{
|
||||
h2 {
|
||||
padding-left: 25px;
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
}
|
||||
.horizontal-line{
|
||||
width: 100%;
|
||||
@ -10,6 +12,27 @@
|
||||
page-break-inside: avoid;
|
||||
margin: 10px;
|
||||
border: 5px solid black;
|
||||
height: 400px;
|
||||
height: 425px;
|
||||
}
|
||||
.client-information {
|
||||
padding: 5px;
|
||||
margin-left: 25px;
|
||||
}
|
||||
.receipt-body {
|
||||
font-size: 10px;
|
||||
line-height: 120%;
|
||||
margin-left: 5px;
|
||||
p {
|
||||
font-size: 10px;
|
||||
border-bottom: 0;
|
||||
padding-bottom: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.container.print-receipts {
|
||||
margin-top: -50px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
@ -30,7 +30,7 @@ class Bike < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def name
|
||||
self.color + " " + self.brand + ' ' + self.model + " (" + self.log_number.to_s + ")"
|
||||
(self.color + " " + self.brand + ' ' + self.model + " (" + self.log_number.to_s + ")").titleize
|
||||
end
|
||||
|
||||
def client
|
||||
|
@ -1,78 +1,59 @@
|
||||
.col-xs-6
|
||||
.receipt
|
||||
%h2
|
||||
%strong= client.bike.name
|
||||
%h2= client.bike.name
|
||||
%br
|
||||
.horizontal-line
|
||||
.client-information
|
||||
= client.name
|
||||
%br
|
||||
= client.agency.name if client.agency
|
||||
%strong= "#{client.name}#{" - " + client.agency.name if client.agency}"
|
||||
.horizontal-line
|
||||
%br
|
||||
Includes:
|
||||
%br
|
||||
= 'Helmet' if client.helmet
|
||||
%br
|
||||
= 'Lock' if client.lock
|
||||
%br
|
||||
%br
|
||||
Date Received
|
||||
%br
|
||||
_______________
|
||||
%br
|
||||
Client Signature
|
||||
%br
|
||||
%br
|
||||
________________
|
||||
%br
|
||||
Recyclery Volunteer Initials
|
||||
%br
|
||||
%br
|
||||
___
|
||||
%br
|
||||
CLIENT COPY
|
||||
.receipt-body
|
||||
%p= "Includes Helmet" if client.helmet
|
||||
%p= "Includes Lock" if client.lock
|
||||
%p= "Owes $25" if client.will_pay
|
||||
%br
|
||||
%p Date ___________________
|
||||
%br
|
||||
%br
|
||||
_______________________________________________
|
||||
%br
|
||||
Client Signature
|
||||
%br
|
||||
%br
|
||||
%br
|
||||
____________ Recyclery Initials
|
||||
|
||||
.col-xs-6
|
||||
.receipt
|
||||
%h2
|
||||
%strong= client.bike.name
|
||||
%h2= client.bike.name
|
||||
%br
|
||||
.horizontal-line
|
||||
.client-information
|
||||
= client.name
|
||||
%br
|
||||
= client.agency.name if client.agency
|
||||
%strong= "#{client.name}#{" - " + client.agency.name if client.agency}"
|
||||
.horizontal-line
|
||||
.row
|
||||
.col-xs-6
|
||||
%br
|
||||
= 'Will make 25$ payment for lock and helmet' if client.will_pay
|
||||
%br
|
||||
Includes:
|
||||
%br
|
||||
= 'Helmet' if client.helmet
|
||||
%br
|
||||
= 'Lock' if client.lock
|
||||
%br
|
||||
%br
|
||||
Date Received
|
||||
%br
|
||||
_______________
|
||||
%br
|
||||
Client Signature
|
||||
%br
|
||||
%br
|
||||
________________
|
||||
.col-xs-6
|
||||
.client-info-header CLIENT INFO
|
||||
.client-email= "Contact Email: " + client.agency.email
|
||||
.client-phone= "Contact Phone #: " + client.agency.phone
|
||||
.client-photo-consent [ ] I grant consent to the Recyclery to use and publish photographs of me.
|
||||
%br
|
||||
Recyclery Volunteer Initials
|
||||
%br
|
||||
%br
|
||||
___
|
||||
%br
|
||||
RECYCLERY COPY
|
||||
.receipt-body
|
||||
%p= "Includes Helmet" if client.helmet
|
||||
%p= "Includes Lock" if client.lock
|
||||
%p= "Owes $25" if client.will_pay
|
||||
%br
|
||||
%p Date ___________________
|
||||
%br
|
||||
%br
|
||||
_______________________________________________
|
||||
%br
|
||||
Client Signature
|
||||
%br
|
||||
%br
|
||||
____________ Recyclery Initials
|
||||
%br
|
||||
%br
|
||||
%br
|
||||
_______________________________________________
|
||||
%br
|
||||
Contact Email
|
||||
%br
|
||||
%br
|
||||
_________________________________ Contact Phone
|
||||
%br
|
||||
%br
|
||||
▢ Client grants The Recyclery Collective consent to use and publish photos.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user