We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 036cac8 + 2ca546a commit 18c125eCopy full SHA for 18c125e
app/datatables/questionnaire_datatable.rb
@@ -15,7 +15,6 @@ def view_columns
15
checked_in: { source: "Questionnaire.checked_in_at", searchable: false },
16
boarded_bus: { source: "Questionnaire.boarded_bus_at", searchable: false },
17
bus_captain: { source: "Questionnaire.is_bus_captain", searchable: false },
18
- country: { source: "Questionnaire.country" },
19
school: { source: "School.name" },
20
created_at: { source: "Questionnaire.created_at", searchable: false },
21
dietary_restrictions: { source: "Questionnaire.dietary_restrictions", searchable: true },
@@ -63,7 +62,6 @@ def data
63
62
boarded_bus: yes_no_display(record.boarded_bus?),
64
bus_captain: bus_captain(record),
65
school: link_to(record.school.name, manage_school_path(record.school)),
66
- country: record.country,
67
created_at: record.created_at.present? ? display_datetime(record.created_at) : "",
68
dietary_restrictions: record.dietary_restrictions,
69
special_needs: record.special_needs,
app/views/manage/application/_questionnaire_datatable.html.haml
@@ -35,7 +35,6 @@
35
%th{'data-table': { orderable: 'true', data: 'boarded_bus', visible: visible.call('boarded_bus', columns) }} Boarded bus
36
%th{'data-table': { orderable: 'true', data: 'bus_captain', visible: visible.call('bus_captain', columns) }} Bus captain
37
%th{'data-table': { orderable: 'true', data: 'school', visible: visible.call('school', columns) }} School
38
- %th{'data-table': { orderable: 'true', data: 'country', visible: visible.call('country', columns) }} Country
39
%th{'data-table': { orderable: 'true', data: 'created_at', visible: visible.call('created_at', columns) }} Applied on
40
%th{'data-table': { orderable: 'true', data: 'dietary_restrictions', visible: visible.call('dietary_restrictions', columns) }} Dietary restrictions
41
%th{'data-table': { orderable: 'true', data: 'special_needs', visible: visible.call('special_needs', columns) }} Special needs
@@ -68,8 +67,6 @@
%th
70
%input.form-control.form-control-sm{autocomplete: 'off', placeholder: 'School'}
71
- %th
72
- %input.form-control.form-control-sm{autocomplete: 'off', placeholder: 'Country'}
73
74
75
%input.form-control.form-control-sm{autocomplete: 'off', placeholder: 'Dietary restrictions'}
0 commit comments