<%= t("fields.update_email") %>

<%= form_tag profile_update_email_path, method: :post do %>
<%= label_tag :email, t("fields.email") %> <%= email_field_tag :email, current_user.email, class: "form-control" %>
<%= label_tag :current_password, t("fields.current_password") %> <%= password_field_tag :current_password, nil, class: "form-control" %>
<%= submit_tag t("fields.save"), class: "btn btn-primary mt-2" %> <% end %>

<%= t("fields.update_password") %>

<%= form_tag profile_update_password_path, method: :post do %>
<%= label_tag :email, t("fields.email") %> <%= email_field_tag :email, current_user.email, class: "form-control" %>
<%= label_tag :password, t("fields.new_password") %> <%= password_field_tag :password, nil, class: "form-control" %>
<%= label_tag :password_confirmation, t("fields.new_password_confirmation") %> <%= password_field_tag :password_confirmation, nil, class: "form-control" %>
<%= label_tag :current_password, t("fields.current_password") %> <%= password_field_tag :current_password, nil, class: "form-control" %>
<%= submit_tag t("fields.save"), class: "btn btn-primary mt-2" %> <% end %>