<% if @almost_done %>

<%= t 'change_email.authorizing_old.almost_done_title' %>

<%= t 'change_email.authorizing_old.almost_done_description' %>

<% elsif @error %>
<%= @error %>
<% else %>

<%= t 'change_email.authorizing_old.title' %>

<%= t 'change_email.authorizing_old.description' %>

<%= t 'change_email.authorizing_old.old_email', email: @from_email %>
<%= t 'change_email.authorizing_old.new_email', email: @to_email %>

<%=form_tag(u_confirm_old_email_path, method: :put) do %> <%= hidden_field_tag 'token', @token.token %> <%= submit_tag t('change_email.confirm'), class: "btn btn-primary" %> <% end %> <% end %>