Bike database interface
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
2.2 KiB

- disabled ||= false
.form-horizontal
.form-group
= f.label "First Name", class: "col-sm-2 control-label"
.col-sm-10
= f.text_field :first_name, class: "form-control", disabled: disabled
.form-group
= f.label "Last Name", class: "col-sm-2 control-label"
.col-sm-10
= f.text_field :last_name, class: "form-control", disabled: disabled
.form-group
= f.label "Gender", class: "col-sm-2 control-label"
.col-sm-10
= f.text_field :gender, 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 "Weight", class: "col-sm-2 control-label"
.col-sm-10
= f.text_field :weight, class: "form-control", disabled: disabled
.form-group
= f.label "Application Date:", class: "col-sm-2 control-label"
.col-sm-10
= f.text_field :application_date, class: "form-control datepicker", disabled: disabled
.form-group
= f.label "Type of Bike Requested:", class: "col-sm-2 control-label"
.col-sm-10
= f.text_field :bike_type_requested, class: "form-control", disabled: disabled
.form-group
= f.label "Will Pay 25$ for Lock & Helmet:", class: "col-sm-2 control-label"
.col-sm-10
= f.check_box :bike_type_requested, disabled: disabled
.form-group
= f.label "Helmet", class: "col-sm-2 control-label"
.col-sm-10
= f.check_box :helmet, disabled: disabled
.form-group
= f.label "Lock", class: "col-sm-2 control-label"
.col-sm-10
= f.check_box :lock, disabled: disabled
.form-group
= f.label "Completion Date:", class: "col-sm-2 control-label"
.col-sm-10
= f.text_field :completion_date, class: "form-control datepicker", disabled: disabled
.form-group
= f.label "Bike:", class: "col-sm-2 control-label"
.col-sm-10
= f.select(:bike_id, Bike.all.collect {|b| [ b.name, b.id ] }, {include_blank: 'None'})
.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'})