<% content_for :title, "Change #{@organisation.name}’s details" %> <% content_for :before_content do %> <%= govuk_back_link( text: 'Back', href: :back, ) %> <% end %> <%= form_for(@organisation, as: :organisation, html: { method: :patch }) do |f| %>

<%= content_for(:title) %>

<%= f.govuk_text_field :name, autocomplete: "name" %> <%= f.govuk_text_field :address_line1, label: -> { safe_join(["Building and street", " ", tag.span("line 1 of 2", class: "govuk-visually-hidden")]) }, autocomplete: "address-line1" %> <%= f.govuk_text_field :address_line2, label: { text: "Building and street line 2 of 2", hidden: true }, autocomplete: "address-line2" %> <%= f.govuk_text_field :postcode, autocomplete: "postal-code", width: 10 %> <%= f.govuk_phone_field :phone, label: { text: "Telephone number" }, autocomplete: "tel", width: 20 %> <%= f.govuk_submit "Save changes" %>
<% end %>