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] |
||||
def change |
||||
add_column :schemes, :primary_client_group, :string |
||||
add_column :schemes, :secondary_client_group, :string |
||||
add_column :schemes, :sensitive, :boolean |
||||
add_column :schemes, :total_units, :boolean |
||||
add_column :schemes, :scheme_type, :integer |
||||
add_column :schemes, :registered_under_care_act, :boolean |
||||
add_column :schemes, :support_type, :integer |
||||
add_column :schemes, :intended_stay, :string |
||||
change_table :schemes, bulk: true do |t| |
||||
t.string :primary_client_group |
||||
t.string :secondary_client_group |
||||
t.boolean :sensitive |
||||
t.boolean :total_units |
||||
t.integer :scheme_type |
||||
t.integer :registered_under_care_act |
||||
t.integer :support_type |
||||
t.string :intended_stay |
||||
end |
||||
end |
||||
end |
||||
|
Loading…
Reference in new issue