From 1971a1c305b43217569bf7a3e44f62ef1493b3dd Mon Sep 17 00:00:00 2001 From: Louis Knapp Date: Tue, 29 Sep 2015 19:56:47 -0500 Subject: [PATCH] lk | adds 'no preference' as client bike type and adds some styling --- app/views/clients/_fields.html.haml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/clients/_fields.html.haml b/app/views/clients/_fields.html.haml index 33d1443..ac3f109 100644 --- a/app/views/clients/_fields.html.haml +++ b/app/views/clients/_fields.html.haml @@ -28,7 +28,7 @@ .form-group = f.label "Type of Bike Requested:", class: "col-sm-2 control-label" .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 = f.label "Will Pay 25$ for Lock & Helmet:", class: "col-sm-2 control-label" @@ -53,12 +53,12 @@ .form-group = f.label "Bike:", class: "col-sm-2 control-label" .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 = f.label "Agency:", class: "col-sm-2 control-label" .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 = f.label "Notes:", class: "col-sm-2 control-label"