mirror of
https://github.com/fspc/bike-database.git
synced 2026-09-16 08:31:39 -04:00
lk | adds weight & height to clients
This commit is contained in:
@@ -53,6 +53,7 @@ class ClientsController < ApplicationController
|
||||
:application_date,
|
||||
:gender,
|
||||
:age,
|
||||
:height,
|
||||
:weight,
|
||||
:helmet,
|
||||
:lock,
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user