<%= t "devise.invitations.edit.header" %>
<%= form_for resource, as: resource_name, url: invitation_path(resource_name, invite_redirect: params[:invite_redirect]), html: { method: :put } do |f| %>
<%= devise_error_messages! %>
<%= f.hidden_field :invitation_token %>
<% if f.object.class.require_password_on_accepting %>
<%= f.password_field :password %>
<%= f.password_field :password_confirmation %>
<% end %>
<%= f.submit t("devise.invitations.edit.submit_button") %>
<% end %>