You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
2.7 KiB
61 lines
2.7 KiB
<% 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: locations_path) do |f| %> |
|
<div class="govuk-grid-row"> |
|
<div class="govuk-grid-column-two-thirds"> |
|
<%= f.govuk_error_summary %> |
|
|
|
<%= render partial: "organisations/headings", locals: { main: "Add a location to this scheme", sub: @scheme.service_name } %> |
|
|
|
<%= f.govuk_text_field :postcode, |
|
label: { size: "m" }, |
|
hint: { text: I18n.t("hints.location.postcode") }, |
|
width: 5 %> |
|
|
|
<%= f.govuk_text_field :name, |
|
label: { text: I18n.t("questions.location.name"), size: "m" }, |
|
hint: { text: I18n.t("hints.location.name") } %> |
|
|
|
<%= f.govuk_number_field :units, |
|
label: { text: I18n.t("questions.location.units"), size: "m" }, |
|
width: 2, |
|
hint: { text: I18n.t("hints.location.units") }, |
|
autofocus: true %> |
|
|
|
<%= f.govuk_collection_radio_buttons :type_of_unit, |
|
type_of_units_selection, |
|
:id, |
|
:name, |
|
legend: { text: I18n.t("questions.location.type_of_unit"), size: "m" } %> |
|
|
|
<%= f.govuk_collection_radio_buttons :mobility_type, |
|
mobility_type_selection, |
|
:id, |
|
:name, |
|
:description, |
|
legend: { text: I18n.t("questions.location.mobility_type"), size: "m" } %> |
|
|
|
<%= f.govuk_date_field :startdate, |
|
legend: { text: I18n.t("questions.location.startdate"), size: "m" }, |
|
width: 20 %> |
|
|
|
<%= govuk_section_break(visible: true, size: "m") %> |
|
|
|
<%= f.govuk_collection_radio_buttons :add_another_location, |
|
another_location_selection, |
|
:id, |
|
:name, |
|
inline: true, |
|
legend: { text: I18n.t("questions.location.add_another_location"), size: "m" } %> |
|
|
|
<%= f.govuk_submit "Save and continue" %> |
|
</div> |
|
</div> |
|
<% end %>
|
|
|