baarkerlounger
3 years ago
8 changed files with 159 additions and 13 deletions
@ -1,5 +1,5 @@
|
||||
<% answer_options = question["answer_options"].map { |k, v| OpenStruct.new(id: k.to_i, value: v) } %> |
||||
|
||||
<%= f.govuk_collection_radio_buttons question_key, answer_options, :id, :value, legend: { text: question["header"], size: "l" } %> |
||||
<%= f.hidden_field :previous_page, value: question_key %> |
||||
<%= f.govuk_collection_radio_buttons question_key, answer_options, :id, :value, legend: { text: question["header"], size: "l" }, hint: { text: question["hint_text"] } %> |
||||
<%= f.hidden_field :previous_page, value: page_key %> |
||||
<%= f.hidden_field :case_log_id, value: case_log_id %> |
||||
|
@ -0,0 +1,5 @@
|
||||
<% answer_options = question["answer_options"].map { |k, v| OpenStruct.new(id: k.to_i, value: v) } %> |
||||
|
||||
<%= f.govuk_collection_check_boxes question_key, answer_options, :id, :value, legend: { text: question["header"], size: "l" }, hint: { text: question["hint_text"] } %> |
||||
<%= f.hidden_field :previous_page, value: page_key %> |
||||
<%= f.hidden_field :case_log_id, value: case_log_id %> |
@ -0,0 +1,15 @@
|
||||
class AddAdditionalFieldToCaseLog < ActiveRecord::Migration[6.1] |
||||
def change |
||||
change_table :case_logs, bulk: true do |t| |
||||
t.column :last_settled_home, :string |
||||
t.column :benefit_cap_spare_room_subsidy, :string |
||||
t.column :armed_forces_active, :string |
||||
t.column :armed_forces_injured, :string |
||||
t.column :armed_forces_partner, :string |
||||
t.column :medical_conditions, :string |
||||
t.column :pregnancy, :string |
||||
t.column :accessibility_requirements, :string |
||||
t.column :condition_effects, :string |
||||
end |
||||
end |
||||
end |
Loading…
Reference in new issue