<%= gettext("Settings") %>


<%= form_for @email_changeset, Routes.user_settings_path(@conn, :update), [ class: "flex flex-col space-y-4 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center" ], fn f -> %>

<%= dgettext("actions", "Change email") %>

<%= if @email_changeset.action && not @email_changeset.valid? do %>

<%= dgettext("errors", "Oops, something went wrong! Please check the errors below.") %>

<% end %> <%= hidden_input(f, :action, name: "action", value: "update_email") %> <%= label(f, :email, class: "title text-lg text-primary-600") %> <%= email_input(f, :email, required: true, class: "mx-2 my-1 input input-primary col-span-2") %> <%= error_tag(f, :email, "col-span-3") %> <%= label(f, :current_password, gettext("Current password"), for: "current_password_for_email", class: "mx-2 my-1 title text-lg text-primary-600" ) %> <%= password_input(f, :current_password, required: true, name: "current_password", id: "current_password_for_email", class: "mx-2 my-1 input input-primary col-span-2" ) %> <%= error_tag(f, :current_password, "col-span-3") %> <%= submit(dgettext("actions", "Change email"), class: "mx-auto btn btn-primary col-span-3" ) %> <% end %>
<%= form_for @password_changeset, Routes.user_settings_path(@conn, :update), [ class: "flex flex-col space-y-4 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center" ], fn f -> %>

<%= dgettext("actions", "Change password") %>

<%= if @password_changeset.action && not @password_changeset.valid? do %>

<%= dgettext("errors", "Oops, something went wrong! Please check the errors below.") %>

<% end %> <%= hidden_input(f, :action, name: "action", value: "update_password") %> <%= label(f, :password, gettext("New password"), class: "title text-lg text-primary-600") %> <%= password_input(f, :password, required: true, class: "mx-2 my-1 input input-primary col-span-2" ) %> <%= error_tag(f, :password, "col-span-3") %> <%= label(f, :password_confirmation, gettext("Confirm new password"), class: "title text-lg text-primary-600" ) %> <%= password_input(f, :password_confirmation, required: true, class: "mx-2 my-1 input input-primary col-span-2" ) %> <%= error_tag(f, :password_confirmation, "col-span-3") %> <%= label(f, :current_password, gettext("Current password"), for: "current_password_for_password", class: "title text-lg text-primary-600" ) %> <%= password_input(f, :current_password, required: true, name: "current_password", id: "current_password_for_password", class: "mx-2 my-1 input input-primary col-span-2" ) %> <%= error_tag(f, :current_password, "col-span-3") %> <%= submit(dgettext("actions", "Change password"), class: "mx-auto btn btn-primary col-span-3" ) %> <% end %>
<%= link(dgettext("actions", "Delete User"), to: Routes.user_settings_path(@conn, :delete, @current_user), method: :delete, class: "btn btn-alert", data: [confirm: dgettext("prompts", "Are you sure you want to delete your account?")] ) %>