You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
531 B
17 lines
531 B
.container
|
|
.row
|
|
.col-sm-6
|
|
%h1 Edit bike
|
|
.col-sm-3.col-sm-offset-3
|
|
=button_to "Mark as sold", {action: "mark_as_sold", id: @bike.id}, method: :patch, class: "btn btn-default", disabled: @bike.sold?
|
|
= render 'edit_form'
|
|
.bottom-nav-links
|
|
- if @previous_bike
|
|
= link_to 'Previous Bike', edit_bike_path(@previous_bike)
|
|
- else
|
|
= link_to 'New Bike', new_bike_path
|
|
|
|
|
= link_to 'All Bikes', bikes_path
|
|
- if @next_bike
|
|
|
|
|
= link_to 'Next Bike', edit_bike_path(@next_bike)
|
|
|