Browse Source

added stock owning org on new page

pull/671/head
JG 3 years ago
parent
commit
cf3d73dd01
  1. 5
      app/views/schemes/details.html.erb
  2. 5
      app/views/schemes/new.html.erb
  3. 5
      db/migrate/20220629105452_add_stock_owning_organisation_to_schemes.rb

5
app/views/schemes/details.html.erb

@ -58,11 +58,6 @@
:name,
legend: { text: "Is this scheme registered under the Care Standards Act 2000?", size: "m" } %>
<%= f.govuk_number_field :total_units,
width: 2,
label: { text: "Total number of units", size: "m" },
hint: { text: "For example, a unit can be a bedroom in a shared house or flat, or a house with 4 bedrooms. Do not include bedrooms used for wardens, managers, volunteers or sleep-in staff." } %>
<%= f.hidden_field :page, value: "details" %>
<% if request.query_parameters["check_answers"] == "true" %>
<%= f.hidden_field :check_answers, value: "true" %>

5
app/views/schemes/new.html.erb

@ -66,11 +66,6 @@
:name,
legend: { text: "Is this scheme registered under the Care Standards Act 2000?", size: "m" } %>
<%= f.govuk_number_field :total_units,
width: 2,
label: { text: "Total number of units", size: "m" },
hint: { text: "For example, a unit can be a bedroom in a shared house or flat, or a house with 4 bedrooms. Do not include bedrooms used for wardens, managers, volunteers or sleep-in staff." } %>
<%= f.govuk_submit "Save and continue" %>
</div>
</div>

5
db/migrate/20220629105452_add_stock_owning_organisation_to_schemes.rb

@ -0,0 +1,5 @@
class AddStockOwningOrganisationToSchemes < ActiveRecord::Migration[7.0]
def change
add_reference :schemes, :stock_owning_organisation, foreign_key: { to_table: :organisations }
end
end
Loading…
Cancel
Save