10 changed files with 184 additions and 12 deletions
@ -0,0 +1,30 @@
|
||||
<% 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: :patch, url: scheme_location_startdate_path(@scheme, @location)) do |f| %> |
||||
<div class="govuk-grid-row"> |
||||
<div class="govuk-grid-column-two-thirds"> |
||||
<%= f.govuk_error_summary %> |
||||
|
||||
<%= render partial: "organisations/headings", locals: { main: I18n.t("questions.location.mobility_type"), sub: "Add a location to #{@scheme.service_name}" } %> |
||||
|
||||
<%= f.govuk_collection_radio_buttons :mobility_type, |
||||
mobility_type_selection, |
||||
:id, |
||||
:name, |
||||
:description, |
||||
legend: nil %> |
||||
|
||||
<div class="govuk-button-group"> |
||||
<%= f.govuk_submit "Continue" %> |
||||
<%= govuk_link_to "Cancel", new_scheme_location_path(@scheme) %> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<% end %> |
||||
@ -0,0 +1,27 @@
|
||||
<% 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: :patch, url: scheme_location_units_path(@scheme, @location)) do |f| %> |
||||
<div class="govuk-grid-row"> |
||||
<div class="govuk-grid-column-two-thirds"> |
||||
<%= f.govuk_error_summary %> |
||||
|
||||
<%= render partial: "organisations/headings", locals: { main: I18n.t("questions.location.name"), sub: "Add a location to #{@scheme.service_name}" } %> |
||||
|
||||
<%= f.govuk_text_field :name, |
||||
label: nil, |
||||
hint: { text: I18n.t("hints.location.name") } %> |
||||
|
||||
<div class="govuk-button-group"> |
||||
<%= f.govuk_submit "Continue" %> |
||||
<%= govuk_link_to "Cancel", new_scheme_location_path(@scheme) %> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<% end %> |
||||
@ -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: :patch, url: scheme_location_check_answers_path(@scheme, @location)) do |f| %> |
||||
<div class="govuk-grid-row"> |
||||
<div class="govuk-grid-column-two-thirds"> |
||||
<%= f.govuk_error_summary %> |
||||
|
||||
<%= render partial: "organisations/headings", locals: { main: I18n.t("questions.location.startdate"), sub: "Add a location to #{@scheme.service_name}" } %> |
||||
|
||||
<%= f.govuk_date_field :startdate, |
||||
hint: { text: I18n.t("hints.location.startdate") }, |
||||
legend: nil, |
||||
width: 20 %> |
||||
|
||||
<div class="govuk-button-group"> |
||||
<%= f.govuk_submit "Continue" %> |
||||
<%= govuk_link_to "Cancel", new_scheme_location_path(@scheme) %> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<% end %> |
||||
@ -0,0 +1,29 @@
|
||||
<% 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: :patch, url: scheme_location_mobility_standards_path(@scheme, @location)) do |f| %> |
||||
<div class="govuk-grid-row"> |
||||
<div class="govuk-grid-column-two-thirds"> |
||||
<%= f.govuk_error_summary %> |
||||
|
||||
<%= render partial: "organisations/headings", locals: { main: I18n.t("questions.location.type_of_unit"), sub: "Add a location to #{@scheme.service_name}" } %> |
||||
|
||||
<%= f.govuk_collection_radio_buttons :type_of_unit, |
||||
type_of_units_selection, |
||||
:id, |
||||
:name, |
||||
legend: nil %> |
||||
|
||||
<div class="govuk-button-group"> |
||||
<%= f.govuk_submit "Continue" %> |
||||
<%= govuk_link_to "Cancel", new_scheme_location_path(@scheme) %> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<% end %> |
||||
@ -0,0 +1,29 @@
|
||||
<% 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: :patch, url: scheme_location_type_of_unit_path(@scheme, @location)) do |f| %> |
||||
<div class="govuk-grid-row"> |
||||
<div class="govuk-grid-column-two-thirds"> |
||||
<%= f.govuk_error_summary %> |
||||
|
||||
<%= render partial: "organisations/headings", locals: { main: I18n.t("questions.location.units"), sub: "Add a location to #{@scheme.service_name}" } %> |
||||
|
||||
<%= f.govuk_number_field :units, |
||||
label: nil, |
||||
width: 2, |
||||
hint: { text: I18n.t("hints.location.units") }, |
||||
autofocus: true %> |
||||
|
||||
<div class="govuk-button-group"> |
||||
<%= f.govuk_submit "Continue" %> |
||||
<%= govuk_link_to "Cancel", new_scheme_location_path(@scheme) %> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<% end %> |
||||
Loading…
Reference in new issue