diff --git a/app/views/locations/postcode.html.erb b/app/views/locations/postcode.html.erb new file mode 100644 index 000000000..74c55c5c7 --- /dev/null +++ b/app/views/locations/postcode.html.erb @@ -0,0 +1,28 @@ +<% content_for :title, "Add a location to this scheme" %> + +<% content_for :before_content do %> + <%= govuk_back_link( + text: "Back", + href: "/schemes/#{@scheme.id}/support", + ) %> +<% end %> + +<%= form_for(@location, method: :post, url: scheme_locations_path) do |f| %> +
+
+ <%= f.govuk_error_summary %> + + <%= render partial: "organisations/headings", locals: { main: "What is the postcode?", sub: "Add a location to #{@scheme.service_name}" } %> + + <%= f.govuk_text_field :postcode, + label: { size: "m" }, + hint: { text: I18n.t("hints.location.postcode") }, + width: 5 %> + +
+ <%= f.govuk_submit "Continue" %> + <%= govuk_link_to "Cancel", scheme_locations_path(@scheme) %> +
+
+
+<% end %>