diff --git a/app/views/schools/users/show.html.erb b/app/views/schools/users/show.html.erb
index 3a0732582b..0b913ac834 100644
--- a/app/views/schools/users/show.html.erb
+++ b/app/views/schools/users/show.html.erb
@@ -3,7 +3,7 @@
- <%= 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| %>
Add user
Check your answers
@@ -15,6 +15,7 @@
<%= @user_invite.firstname %>
+ <%= f.hidden_field :firstname, value: @user_invite.firstname %>
<%= link_to 'Change', new_schools_user_path(user_invite: @user_invite) %>
@@ -27,6 +28,7 @@
<%= @user_invite.lastname %>
+ <%= f.hidden_field :lastname, value: @user_invite.lastname %>
<%= link_to 'Change', new_schools_user_path(user_invite: @user_invite) %>
@@ -39,6 +41,7 @@
<%= @user_invite.email %>
+ <%= f.hidden_field :email, value: @user_invite.email %>
<%= link_to 'Change', new_schools_user_path(user_invite: @user_invite) %>