mirror of
https://github.com/fspc/bike-database.git
synced 2026-09-16 16:41:38 -04:00
Louis | Allows users to associate clients with agencies
This commit is contained in:
@@ -50,11 +50,6 @@
|
||||
= f.label "Lock", class: "col-sm-2 control-label"
|
||||
.col-sm-10
|
||||
= f.check_box :lock, disabled: disabled
|
||||
|
||||
.form-group
|
||||
= f.label "Agency", class: "col-sm-2 control-label"
|
||||
.col-sm-10
|
||||
= f.text_field :agency, class: "form-control", disabled: disabled
|
||||
|
||||
.form-group
|
||||
= f.label "Completion Date:", class: "col-sm-2 control-label"
|
||||
@@ -66,3 +61,8 @@
|
||||
.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'})
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
%tr
|
||||
%td= client.first_name
|
||||
%td= client.last_name
|
||||
%td= client.agency
|
||||
%td= client.agency.agency_name if client.agency
|
||||
%td= link_to 'Show', client
|
||||
%td= link_to 'Edit', edit_client_path(client)
|
||||
%td= link_to 'Destroy', client, method: :delete, data: { confirm: 'Are you sure?' }
|
||||
|
||||
Reference in New Issue
Block a user