|
@ -1,6 +1,9 @@ |
|
|
.container |
|
|
.container |
|
|
%h1 Bikes |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
= link_to ' + Log Bike', new_bike_path, class: "btn btn-default" |
|
|
|
|
|
%br |
|
|
|
|
|
|
|
|
|
|
|
%h1 Unsold Bikes |
|
|
%table.table.table-striped.table-bordered.table-hover |
|
|
%table.table.table-striped.table-bordered.table-hover |
|
|
%thead |
|
|
%thead |
|
|
%tr |
|
|
%tr |
|
@ -8,6 +11,21 @@ |
|
|
%th Model |
|
|
%th Model |
|
|
%th |
|
|
%th |
|
|
%th |
|
|
%th |
|
|
|
|
|
%tbody |
|
|
|
|
|
- @unsold_bikes.each do |bike| |
|
|
|
|
|
%tr |
|
|
|
|
|
%td= bike.brand |
|
|
|
|
|
%td= bike.model |
|
|
|
|
|
%td= link_to 'Show', bike |
|
|
|
|
|
%td= link_to 'Edit', edit_bike_path(bike) |
|
|
|
|
|
|
|
|
|
|
|
%h1 All Bikes |
|
|
|
|
|
%table.table.table-striped.table-bordered.table-hover |
|
|
|
|
|
%thead |
|
|
|
|
|
%tr |
|
|
|
|
|
%th Brand |
|
|
|
|
|
%th Model |
|
|
|
|
|
%th |
|
|
%th |
|
|
%th |
|
|
%tbody |
|
|
%tbody |
|
|
- @bikes.each do |bike| |
|
|
- @bikes.each do |bike| |
|
@ -16,7 +34,4 @@ |
|
|
%td= bike.model |
|
|
%td= bike.model |
|
|
%td= link_to 'Show', bike |
|
|
%td= link_to 'Show', bike |
|
|
%td= link_to 'Edit', edit_bike_path(bike) |
|
|
%td= link_to 'Edit', edit_bike_path(bike) |
|
|
%td= link_to 'Destroy', bike, method: :delete, data: { confirm: 'Are you sure?' } |
|
|
|
|
|
|
|
|
|
|
|
%br |
|
|
|
|
|
= link_to ' + Log Bike', new_bike_path, class: "btn btn-default" |
|
|
|
|
|