* Add location startdate column to the db
* Display the schemes with active locations only when selecting a scheme for a case log
* When selecting a location for case log, only show active locations
* Add startdate to the form
* only display the number of active locations in the appended text
* Compare date instead of time
* Put location questions and hints into a translation file
* lint
* content change
user_org_scheme_ids=Scheme.select(:id).where(owning_organisation_id:case_log.created_by.organisation_id).joins(:locations).merge(Location.where("startdate <= ? or startdate IS NULL",Time.zone.today)).map(&:id)
hint: { text: "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.s" },
hint: { text: "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.s" },
wheelchair_adaptation:"Are the majority of units in this location built or adapted to wheelchair-user standards?"
startdate:"When did the first property in this location become available under this scheme?"
add_another_location:"Do you want to add another location?"
hints:
location:
postcode:"For example, SW1P 4DF."
name:"This is how you refer to this location within your organisation"
units:"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."
wheelchair_adaptation:"This includes stairlifts, ramps, level-access showers or grab rails"
test:
test:
one_argument:"This is based on the tenant’s work situation: %{ecstat1}"
one_argument:"This is based on the tenant’s work situation: %{ecstat1}"