Browse Source
* added steps to view links to indiividual schemes * testing there are links to the schemes not just names * testing there are links to the schemes not just names -2 * added links failing due to no route * looks per spec * failing spec for tab helper * added new attributes to the scheme * added test for scheme.primary_client_group * testing clicking to individual scheme * empty template for show * testing users not signed in * testing I can see scheme details on the page * converting int to strings in scheme model * better view, seeds and factory * highlight supported housing for support user * simplified and extended sab nab logic * rubocop and redundant check removed * tests and code to make sure users are highlighted * tests and code to make sure supported housing is highlighted * full feature for support user to visit scheme show page * extended features and filing feature when coordinator viewing scheme for a different org * returning not found if coordinator user tries to see unrelated scheme * rubocop * fixed typos etc * fixed types for schemes * Trigger WF * correct expectationpull/664/head
J G
3 years ago
committed by
GitHub
15 changed files with 401 additions and 9 deletions
@ -0,0 +1,17 @@
|
||||
<% title = @scheme.service_name %> |
||||
<% content_for :title, title %> |
||||
|
||||
<%= render partial: "organisations/headings", locals: { main: @scheme.service_name, sub: nil } %> |
||||
|
||||
<div class="govuk-grid-row"> |
||||
<div class="govuk-grid-column-two-thirds"> |
||||
<%= 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> |
@ -0,0 +1,14 @@
|
||||
class AddMissingAttributesToScheme < ActiveRecord::Migration[7.0] |
||||
def change |
||||
change_table :schemes, bulk: true do |t| |
||||
t.string :primary_client_group |
||||
t.string :secondary_client_group |
||||
t.integer :sensitive |
||||
t.integer :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