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

Louis | Better formatting of labels for printing

This commit is contained in:
Loos 2014-09-19 09:35:56 -05:00
parent 693ca3c760
commit 585051969d
2 changed files with 35 additions and 8 deletions

View File

@ -1,11 +1,24 @@
.print-select{
h2 {
font-size: 18px;
}
.print-label{
width: 400px;
height: 600px;
padding: 10px;
margin: 10px;
display: inline-block;
border: 5px solid black;
height: 400px;
text-align: center;
.horizontal-line{
width: 100%;
border-bottom: 5px solid black;
}
.log-number{
margin-top: 5px;
}
.desc {
margin: 10px;
height: 250px;
border: 2px dotted black;
}
}
}

View File

@ -1,5 +1,19 @@
.print-select
.container.print-select
- @bikes.each do |bike|
.print-label
%h2=bike.price + ' ' + bike.name
%br
.col-xs-6
.print-label
%h2
%strong='$' + bike.price
=' ' + bike.name
%br
.horizontal-line
.log-number= 'Log Number: ' + bike.log_number.to_s
.row
.col-xs-6
.desc
.strong Work Done:
=bike.work_done
.col-xs-6
.desc
.strong New Parts:
=bike.new_parts