|
|
|
@ -11,16 +11,16 @@ |
|
|
|
<%= form_with model: @scheme_deactivation_period, url: toggle_scheme_form_path(action, @scheme), method: "patch", local: true do |f| %> |
|
|
|
<%= form_with model: @scheme_deactivation_period, url: toggle_scheme_form_path(action, @scheme), method: "patch", local: true do |f| %> |
|
|
|
<div class="govuk-grid-row"> |
|
|
|
<div class="govuk-grid-row"> |
|
|
|
<div class="govuk-grid-column-two-thirds"> |
|
|
|
<div class="govuk-grid-column-two-thirds"> |
|
|
|
<% collection_start_date = FormHandler.instance.in_crossover_period? ? previous_collection_start_date : current_collection_start_date %> |
|
|
|
<% start_date = FormHandler.instance.start_date_of_earliest_open_collection_period %> |
|
|
|
<%= f.govuk_error_summary %> |
|
|
|
<%= f.govuk_error_summary %> |
|
|
|
<%= f.govuk_radio_buttons_fieldset date_type_question(action), |
|
|
|
<%= f.govuk_radio_buttons_fieldset date_type_question(action), |
|
|
|
legend: { text: I18n.t("questions.scheme.toggle_active.apply_from") }, |
|
|
|
legend: { text: I18n.t("questions.scheme.toggle_active.apply_from") }, |
|
|
|
caption: { text: title }, |
|
|
|
caption: { text: title }, |
|
|
|
hint: { text: I18n.t("hints.scheme.toggle_active", date: collection_start_date.to_formatted_s(:govuk_date)) } do %> |
|
|
|
hint: { text: I18n.t("hints.scheme.toggle_active", date: start_date.to_formatted_s(:govuk_date)) } do %> |
|
|
|
<%= govuk_warning_text text: I18n.t("warnings.scheme.#{action}.existing_logs") %> |
|
|
|
<%= govuk_warning_text text: I18n.t("warnings.scheme.#{action}.existing_logs") %> |
|
|
|
<%= f.govuk_radio_button date_type_question(action), |
|
|
|
<%= f.govuk_radio_button date_type_question(action), |
|
|
|
"default", |
|
|
|
"default", |
|
|
|
label: { text: "From the start of the open collection period (#{collection_start_date.to_formatted_s(:govuk_date)})" } %> |
|
|
|
label: { text: "From the start of the open collection period (#{start_date.to_formatted_s(:govuk_date)})" } %> |
|
|
|
<%= f.govuk_radio_button date_type_question(action), |
|
|
|
<%= f.govuk_radio_button date_type_question(action), |
|
|
|
"other", |
|
|
|
"other", |
|
|
|
label: { text: "For tenancies starting after a certain date" }, |
|
|
|
label: { text: "For tenancies starting after a certain date" }, |
|
|
|
|