mirror of
https://github.com/fspc/bike-database.git
synced 2026-09-16 16:41:38 -04:00
lk | adds explanatory text to waiting list & disables mark_as_sold button for sold bikes, and removes unused columns
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
.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"
|
||||
=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
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
.container
|
||||
%p#notice= notice
|
||||
= form_for(@bike) do |f|
|
||||
= render 'fields', f: f, disabled: true
|
||||
= link_to 'Edit', edit_bike_path(@bike)
|
||||
|
|
||||
= link_to 'Back', bikes_path
|
||||
Reference in New Issue
Block a user