1
0
mirror of https://github.com/fspc/bike-database.git synced 2025-02-23 09:33:23 -05:00

lk | adds 'no preference' as client bike type and adds some styling

This commit is contained in:
Louis Knapp 2015-09-29 19:56:47 -05:00
parent ec9bfa02ee
commit 1971a1c305

View File

@ -28,7 +28,7 @@
.form-group .form-group
= f.label "Type of Bike Requested:", class: "col-sm-2 control-label" = f.label "Type of Bike Requested:", class: "col-sm-2 control-label"
.col-sm-10 .col-sm-10
= f.select :bike_type_requested, [["BMX", "BMX"], ["Cruiser", "Cruiser"], ["Hybrid", "Hybrid"], ["Kids", "Kids"], ["Mountain", "Mountain"], ["Road", "Road"], ["Touring", "Touring"], ["Track", "Track"], ["Utility", "Utility"], ["Youth", "Youth"]], {}, class: "selectpicker", disabled: disabled = f.select :bike_type_requested, [["BMX", "BMX"], ["Cruiser", "Cruiser"], ["Hybrid", "Hybrid"], ["Kids", "Kids"], ["Mountain", "Mountain"], ["Road", "Road"], ["Touring", "Touring"], ["Track", "Track"], ["Utility", "Utility"], ["Youth", "Youth"]], {include_blank: "No Preference"}, class: "selectpicker", disabled: disabled
.form-group .form-group
= f.label "Will Pay 25$ for Lock & Helmet:", class: "col-sm-2 control-label" = f.label "Will Pay 25$ for Lock & Helmet:", class: "col-sm-2 control-label"
@ -53,12 +53,12 @@
.form-group .form-group
= f.label "Bike:", class: "col-sm-2 control-label" = f.label "Bike:", class: "col-sm-2 control-label"
.col-sm-10 .col-sm-10
= f.select :bike_id, options_for_select( Bike.available_for_freecyclery.collect{|b| [ b.name, b.id ]}, @client.bike_id ), {include_blank: 'None'} = f.select :bike_id, options_for_select( Bike.available_for_freecyclery.collect{|b| [ b.name, b.id ]}, @client.bike_id ), {include_blank: 'None'}, class: "selectpicker"
.form-group .form-group
= f.label "Agency:", class: "col-sm-2 control-label" = f.label "Agency:", class: "col-sm-2 control-label"
.col-sm-10 .col-sm-10
= f.select(:agency_id, Agency.all.collect {|b| [ b.agency_name, b.id ] }, {include_blank: 'None'}) = f.select :agency_id, Agency.all.collect {|b| [ b.agency_name, b.id ] }, {include_blank: 'None'}, class: "selectpicker"
.form-group .form-group
= f.label "Notes:", class: "col-sm-2 control-label" = f.label "Notes:", class: "col-sm-2 control-label"