11 changed files with 137 additions and 18 deletions
@ -0,0 +1,18 @@ |
|||||||
|
<div class="govuk-grid-row"> |
||||||
|
<div class="govuk-grid-column-two-thirds"> |
||||||
|
<h1 class="govuk-heading-l"> |
||||||
|
<%= content_for("Test") %> |
||||||
|
</h1> |
||||||
|
<h2 class="govuk-heading-m"> |
||||||
|
Scheme Result |
||||||
|
</h2> |
||||||
|
<%= govuk_summary_list do |summary_list| %> |
||||||
|
<% @scheme.display_attributes.each do |attr| %> |
||||||
|
<%= summary_list.row do |row| %> |
||||||
|
<% row.key { attr[:name].to_s.humanize } %> |
||||||
|
<% row.value { details_html(attr) } %> |
||||||
|
<% end %> |
||||||
|
<% end %> |
||||||
|
<% end %> |
||||||
|
</div> |
||||||
|
</div> |
@ -1,12 +1,14 @@ |
|||||||
class AddMissingAttributesToScheme < ActiveRecord::Migration[7.0] |
class AddMissingAttributesToScheme < ActiveRecord::Migration[7.0] |
||||||
def change |
def change |
||||||
add_column :schemes, :primary_client_group, :string |
change_table :schemes, bulk: true do |t| |
||||||
add_column :schemes, :secondary_client_group, :string |
t.string :primary_client_group |
||||||
add_column :schemes, :sensitive, :boolean |
t.string :secondary_client_group |
||||||
add_column :schemes, :total_units, :boolean |
t.boolean :sensitive |
||||||
add_column :schemes, :scheme_type, :integer |
t.boolean :total_units |
||||||
add_column :schemes, :registered_under_care_act, :boolean |
t.integer :scheme_type |
||||||
add_column :schemes, :support_type, :integer |
t.integer :registered_under_care_act |
||||||
add_column :schemes, :intended_stay, :string |
t.integer :support_type |
||||||
|
t.string :intended_stay |
||||||
|
end |
||||||
end |
end |
||||||
end |
end |
||||||
|
Loading…
Reference in new issue