From a92240ba30a8122288d4d4a9af156aff8bf3abeb Mon Sep 17 00:00:00 2001 From: Louis Knapp Date: Sat, 5 Dec 2015 16:10:06 -0600 Subject: [PATCH] lk | moves agency above type of bike requested on client page --- app/views/clients/_fields.html.haml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/views/clients/_fields.html.haml b/app/views/clients/_fields.html.haml index accfb7a..9f5941b 100644 --- a/app/views/clients/_fields.html.haml +++ b/app/views/clients/_fields.html.haml @@ -35,6 +35,11 @@ .col-sm-10 = f.text_field :application_date, class: "form-control datepicker", disabled: disabled + .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'}, class: "selectpicker", disabled: disabled + .form-group = f.label "Type of Bike Requested:", class: "col-sm-2 control-label" .col-sm-10 @@ -68,11 +73,6 @@ - else = 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", disabled: disabled - .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'}, class: "selectpicker", disabled: disabled - .form-group = f.label "Notes:", class: "col-sm-2 control-label" .col-sm-10