<% content_for :before_content do %> <% title = "Tell us if your organisation is merging" %> <% content_for :title, title %> <%= govuk_back_link href: merge_request_back_link(@merge_request, "merge_date", request.query_parameters["referrer"]) %> <% end %>
<%= form_with model: @merge_request, url: submit_merge_request_url(request.query_parameters["referrer"]), method: :patch do |f| %> <%= f.govuk_error_summary %>

What is the merge date?

Enter the official merge date. Log and organisation page data will show the new organisation name from this date.

For example, <%= date_mid_collection_year_formatted(Time.zone.now) %>

<%= f.govuk_date_field :merge_date, legend: { hidden: true }, width: 20 do %> <% end %> <%= f.hidden_field :page, value: "merge_date" %>
<%= f.govuk_submit submit_merge_request_button_text(request.query_parameters["referrer"]) %> <%= govuk_link_to(secondary_merge_request_link_text(request.query_parameters["referrer"]), merge_request_path(@merge_request)) %>
<% end %>