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

lk | moves agency above type of bike requested on client page

This commit is contained in:
Louis Knapp 2015-12-05 16:10:06 -06:00
parent 98245c4c2a
commit a92240ba30

View File

@ -35,6 +35,11 @@
.col-sm-10 .col-sm-10
= f.text_field :application_date, class: "form-control datepicker", disabled: disabled = 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 .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
@ -68,11 +73,6 @@
- else - 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 = 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 .form-group
= f.label "Notes:", class: "col-sm-2 control-label" = f.label "Notes:", class: "col-sm-2 control-label"
.col-sm-10 .col-sm-10