1
0
mirror of https://github.com/fspc/bike-database.git synced 2025-04-04 10:03:22 -04:00
bike-database/app/views/bikes/edit.html.haml
2016-07-24 07:53:54 -05:00

17 lines
470 B
Plaintext

.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"
= render 'edit_form'
- if @next_bike
= link_to 'Next Bike', edit_bike_path(@next_bike)
- else
= link_to 'New Bike', new_bike_path
|
= link_to 'All Bikes', bikes_path
- if @previous_bike
|
= link_to 'Previous Bike', edit_bike_path(@previous_bike)