Browse Source

missing validation for manaing org

juris_katrina_test
JG 3 years ago
parent
commit
40447f80bd
  1. 2
      app/controllers/schemes_controller.rb
  2. 2
      config/locales/en.yml

2
app/controllers/schemes_controller.rb

@ -111,6 +111,8 @@ private
def current_template(page) def current_template(page)
if page.include?("primary") if page.include?("primary")
"schemes/primary_client_group" "schemes/primary_client_group"
elsif page.include?("support-services-provider")
"schemes/support_services_provider"
elsif page.include?("confirm") elsif page.include?("confirm")
"schemes/confirm_secondary" "schemes/confirm_secondary"
elsif page.include?("secondary-client") elsif page.include?("secondary-client")

2
config/locales/en.yml

@ -45,6 +45,8 @@ en:
attributes: attributes:
owning_organisation_id: owning_organisation_id:
invalid: "Enter the existing organisation’s name" invalid: "Enter the existing organisation’s name"
managing_organisation_id:
invalid: "Enter the existing organisation’s name"
service_name: service_name:
invalid: "Enter the scheme’s name" invalid: "Enter the scheme’s name"
scheme_type: scheme_type:

Loading…
Cancel
Save