<% if @scheme.confirmed? && @scheme.active? && !@scheme.has_active_locations? %>
<span class="app-!-colour-muted">No currently active locations</span>
<% end %>
<% if @scheme.confirmed? && @scheme.locations.confirmed.none? && LocationPolicy.new(current_user, @scheme.locations.new).create? %>
<% if @scheme.confirmed? && @scheme.locations.confirmed.none? && LocationPolicy.new(current_user, @scheme.locations.new).create? %>
<span class="app-!-colour-muted">Complete this scheme by adding a location using the <%= govuk_link_to("‘locations’ tab", scheme_locations_path(@scheme)) %>.</span>
<span class="app-!-colour-muted">Complete this scheme by adding a location using the <%= govuk_link_to("‘locations’ tab", scheme_locations_path(@scheme)) %>.</span>
startdate:"The location %{postcode} was deactivated on %{date} and was not available on the day you entered. Select another location or edit the tenancy start date"
startdate:"The location %{postcode} is inactive on this date. Enter another date or choose another location."
location_id:"The location %{postcode} was deactivated on %{date} and was not available on the day you entered. Select another location or edit the tenancy start date"
location_id:"This location is not active on the tenancy start date. Choose another location or edit the tenancy start date."
activating_soon:
activating_soon:
startdate:"The location %{postcode} is not available until %{date}. Enter a tenancy start date after %{date}"
startdate:"The location %{postcode} is not available until %{date}. Enter a tenancy start date after %{date}"
location_id:"The location %{postcode} is not available until %{date}. Select another location or edit the tenancy start date"
location_id:"The location %{postcode} is not available until %{date}. Select another location or edit the tenancy start date"
@ -301,6 +301,9 @@ en:
reactivating_soon:
reactivating_soon:
startdate:"The scheme %{name} is not available until %{date}. Enter a tenancy start date after %{date}"
startdate:"The scheme %{name} is not available until %{date}. Enter a tenancy start date after %{date}"
scheme_id:"The scheme %{name} is not available until %{date}. Select another scheme or edit the tenancy start date"
scheme_id:"The scheme %{name} is not available until %{date}. Select another scheme or edit the tenancy start date"
locations_inactive:
startdate:"The scheme %{name} has no locations that are active on this date. Enter another date or choose another scheme."
scheme_id:"The scheme %{name} has no locations that are active on this date. Enter another date or choose another scheme."
owning_organisation:
owning_organisation:
invalid:"Please select the owning organisation or managing organisation that you belong to"
invalid:"Please select the owning organisation or managing organisation that you belong to"
data_sharing_agreement_not_signed:"The organisation must accept the Data Sharing Agreement before it can be selected as the owning organisation."
data_sharing_agreement_not_signed:"The organisation must accept the Data Sharing Agreement before it can be selected as the owning organisation."