Browse Source

lk | improves (hopefully) styling of bike sale labels

master
Louis Knapp 7 years ago
parent
commit
53a4bfab89
  1. 19
      app/assets/stylesheets/print_select.css.scss
  2. 8
      app/views/bikes/print_labels.html.haml

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

@ -6,7 +6,7 @@
page-break-inside: avoid; page-break-inside: avoid;
margin: 10px; margin: 10px;
border: 5px solid black; border: 5px solid black;
height: 400px; height: 425px;
text-align: center; text-align: center;
.horizontal-line{ .horizontal-line{
width: 100%; width: 100%;
@ -19,7 +19,24 @@
margin: 10px; margin: 10px;
height: 200px; height: 200px;
border: 2px dotted black; border: 2px dotted black;
> p {
padding-left: 5px;
font-size: 0.75rem;
text-align: left;
}
}
.work-done {
padding-right: 0;
}
.new-parts {
padding-left: 0;
} }
} }
} }
.container.print-labels {
margin-top: -50px;
width: 100%;
padding: 0;
}

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

@ -12,13 +12,13 @@
%br %br
= "Seat Tube Size: " + bike.seat_tube_size.to_s = "Seat Tube Size: " + bike.seat_tube_size.to_s
.row .row
.col-xs-6 .col-xs-6.work-done
.desc .desc
.strong Work Done: %strong Work Done:
=simple_format(bike.work_done) =simple_format(bike.work_done)
.col-xs-6 .col-xs-6.new-parts
.desc .desc
.strong New Parts: %strong New Parts:
=simple_format(bike.new_parts) =simple_format(bike.new_parts)
.row .row
.col-xs-12= "Log #: " + bike.log_number.to_s + ", Serial #: " + bike.serial_number .col-xs-12= "Log #: " + bike.log_number.to_s + ", Serial #: " + bike.serial_number

Loading…
Cancel
Save