Skip to content

Commit

Permalink
Fix form_with to form_for in schools/users/show.html.erb
Browse files Browse the repository at this point in the history
  • Loading branch information
ekumachidi committed Mar 10, 2024
1 parent 69f07d4 commit f1732af
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/views/schools/users/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<%= form_with(model: @user_invite, url: schools_users_path, method: :post) do |f| %>
<%= form_for(@user_invite, url: schools_users_path, method: :post) do |f| %>
<section id="personal-details">
<span class="govuk-caption-xl govuk-!-margin-top-4"> Add user </span>
<h1 class="govuk-heading-l"> Check your answers </h1>
Expand All @@ -15,6 +15,7 @@
</dt>
<dd class="govuk-summary-list__value">
<%= @user_invite.firstname %>
<%= f.hidden_field :firstname, value: @user_invite.firstname %>
</dd>
<dd>
<%= link_to 'Change', new_schools_user_path(user_invite: @user_invite) %>
Expand All @@ -27,6 +28,7 @@
</dt>
<dd class="govuk-summary-list__value">
<%= @user_invite.lastname %>
<%= f.hidden_field :lastname, value: @user_invite.lastname %>
</dd>
<dd>
<%= link_to 'Change', new_schools_user_path(user_invite: @user_invite) %>
Expand All @@ -39,6 +41,7 @@
</dt>
<dd class="govuk-summary-list__value">
<%= @user_invite.email %>
<%= f.hidden_field :email, value: @user_invite.email %>
</dd>
<dd>
<%= link_to 'Change', new_schools_user_path(user_invite: @user_invite) %>
Expand Down

0 comments on commit f1732af

Please sign in to comment.