Skip to content

Commit

Permalink
Add date of First Contact
Browse files Browse the repository at this point in the history
  • Loading branch information
aswinmohanme committed Mar 31, 2020
1 parent 3baa876 commit 5787a8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/contacts_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,6 @@ def set_contact

# Only allow a list of trusted parameters through.
def contact_params
params.require(:contact).permit(:name, :patient_id, :phone, :age, :gender, :house_name, :ward, :panchayath, :landmark, :district_id, :risk, :previous_medical, :symptoms, :tracking_type, :infector_id, :isolation_type, :need_food, :need_baby_foods, :need_drinking_water, :need_household_water, :need_medicines, :need_sanitary_napkins, :non_med_other, :ongoing_dialysis, :ongoing_cancer_chemo_radio_therapy, :med_other, :is_med_req_met, :is_non_med_req_met, :comment, :health_institution, :field_staff_name, :field_staff_phone, :did_meet_suspected_patient, :passenger_type, :profession, :is_health_worker)
params.require(:contact).permit(:name, :patient_id, :phone, :age, :gender, :house_name, :ward, :panchayath, :landmark, :district_id, :risk, :previous_medical, :symptoms, :tracking_type, :infector_id, :isolation_type, :need_food, :need_baby_foods, :need_drinking_water, :need_household_water, :need_medicines, :need_sanitary_napkins, :non_med_other, :ongoing_dialysis, :ongoing_cancer_chemo_radio_therapy, :med_other, :is_med_req_met, :is_non_med_req_met, :comment, :health_institution, :field_staff_name, :field_staff_phone, :did_meet_suspected_patient, :passenger_type, :profession, :is_health_worker, :date_of_first_contact)
end
end
2 changes: 2 additions & 0 deletions app/views/contacts/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
<%= f.input :passenger_type, input_html: {class: 'form-select'}%>
<%= f.input :isolation_type, input_html: {class: 'form-select'}%>
<%= f.association :infector,collection: @infector_suspects, input_html: {class: 'form-select', id: 'dropdown-choice-select'}%>
<%= f.input :date_of_first_contact, as: :date, input_html: {class: 'form-select p-2 border'} %>
</div>

<div>
Expand Down

0 comments on commit 5787a8b

Please sign in to comment.