Browse Source

Louis | Better formatting of labels for printing

master
Loos 10 years ago
parent
commit
585051969d
  1. 21
      app/assets/stylesheets/print_select.css.scss
  2. 22
      app/views/bikes/print_labels.html.haml

21
app/assets/stylesheets/print_select.css.scss

@ -1,11 +1,24 @@
.print-select{ .print-select{
h2 {
font-size: 18px;
}
.print-label{ .print-label{
width: 400px;
height: 600px;
padding: 10px;
margin: 10px; margin: 10px;
display: inline-block;
border: 5px solid black; 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;
}
} }
} }

22
app/views/bikes/print_labels.html.haml

@ -1,5 +1,19 @@
.print-select .container.print-select
- @bikes.each do |bike| - @bikes.each do |bike|
.print-label .col-xs-6
%h2=bike.price + ' ' + bike.name .print-label
%br %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

Loading…
Cancel
Save