@ -1,5 +1,6 @@
class Location < ApplicationRecord
validate :validate_postcode
validates :total_units, :type_of_unit, :wheelchair_adaptation, presence: true
belongs_to :scheme
before_save :infer_la!, if: :postcode_changed?
@ -68,6 +68,14 @@ en:
invalid: "Select if this scheme provides for another client group"
support_services_provider:
invalid: "Select who provides the support services used by this scheme"
location:
attributes:
wheelchair_adaptation:
blank: "Enter the existing organisation’s name"
total_units:
type_of_unit:
validations: