Louis | Adds minimally styled client reciepts

This commit is contained in:
Loos
2014-10-13 22:14:30 -04:00
parent 67ae0bf04b
commit e9ce1dd51f
4 changed files with 96 additions and 4 deletions
@@ -0,0 +1,15 @@
.freecyclery-receipt{
h2 {
font-size: 18px;
}
.horizontal-line{
width: 100%;
border-bottom: 5px solid black;
}
.receipt{
margin: 10px;
border: 5px solid black;
height: 400px;
}
}
+4
View File
@@ -17,4 +17,8 @@ class Client < ActiveRecord::Base
Client.all.select{|client| client.application_voided || client.completion_date}
end
def bike
Bike.find(self.bike_id)
end
end
+75 -1
View File
@@ -1 +1,75 @@
KITTENS
.containter.freecyclery-receipt
.col-xs-6
.receipt
%h2
%strong= @client.bike.name
%br
= 'Log Number: ' + @client.bike.log_number.to_s
%br
.horizontal-line
.client-information
= @client.name
%br
= @client.agency.agency_name
.horizontal-line
%br
= 'Paid $25 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
Recyclery Volunteer Initials
%br
___
%br
CLIENT COPY
.col-xs-6
.receipt
%h2
%strong= @client.bike.name
%br
= 'Log Number: ' + @client.bike.log_number.to_s
%br
.horizontal-line
.client-information
= @client.name
%br
= @client.agency.agency_name
.horizontal-line
%br
= 'Paid $25 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
Recyclery Volunteer Initials
%br
___
%br
RECYCLERY COPY