Browse Source
* Data coordinators can edit some organisation details * Apply suggestions from code review PR tweaks Co-authored-by: Paul Robert Lloyd <paulrobertlloyd@users.noreply.github.com> * PR comments * Address line label * Apply suggestions from code review Co-authored-by: Paul Robert Lloyd <paulrobertlloyd@users.noreply.github.com> Co-authored-by: Paul Robert Lloyd <paulrobertlloyd@users.noreply.github.com>pull/155/head
baarkerlounger
3 years ago
committed by
GitHub
6 changed files with 190 additions and 15 deletions
@ -0,0 +1,45 @@ |
|||||||
|
<% 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| %> |
||||||
|
<div class="govuk-grid-row"> |
||||||
|
<div class="govuk-grid-column-two-thirds"> |
||||||
|
<h1 class="govuk-heading-l"> |
||||||
|
<%= content_for(:title) %> |
||||||
|
</h1> |
||||||
|
|
||||||
|
<%= f.govuk_text_field :name, |
||||||
|
autocomplete: "name" |
||||||
|
%> |
||||||
|
|
||||||
|
<%= f.govuk_text_field :address_line1, |
||||||
|
label: { text: "Address line 1" }, |
||||||
|
autocomplete: "address-line1" |
||||||
|
%> |
||||||
|
|
||||||
|
<%= f.govuk_text_field :address_line2, |
||||||
|
label: { text: "Address line 2" }, |
||||||
|
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" %> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<% end %> |
Loading…
Reference in new issue