lk | adds weight & height to clients

This commit is contained in:
Louis Knapp
2015-09-29 20:03:43 -05:00
parent 1971a1c305
commit d52e14ce01
4 changed files with 52 additions and 33 deletions
+1
View File
@@ -53,6 +53,7 @@ class ClientsController < ApplicationController
:application_date,
:gender,
:age,
:height,
:weight,
:helmet,
:lock,
+12 -2
View File
@@ -15,11 +15,21 @@
.col-sm-10
= f.text_field :gender, class: "form-control", disabled: disabled
.form-group
= f.label "Weight (lb)", class: "col-sm-2 control-label"
.col-sm-10
= f.text_field :weight, class: "form-control", disabled: disabled
.form-group
= f.label "Age", class: "col-sm-2 control-label"
.col-sm-10
= f.text_field :age, class: "form-control", disabled: disabled
.form-group
= f.label "Height (ft)", class: "col-sm-2 control-label"
.col-sm-10
= f.text_field :height, class: "form-control", disabled: disabled
.form-group
= f.label "Application Date:", class: "col-sm-2 control-label"
.col-sm-10
@@ -53,12 +63,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'}, class: "selectpicker"
= 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"
= 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"