ee cummings this shit
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
<div class="mx-auto mb-8 max-w-2xl flex flex-col justify-center items-center text-center space-y-4">
|
||||
<h1 class="pb-4 title text-primary-400 text-xl">
|
||||
<%= gettext("Settings") %>
|
||||
<%= gettext("settings") %>
|
||||
</h1>
|
||||
|
||||
<hr class="hr" />
|
||||
@ -12,24 +12,24 @@
|
||||
class="flex flex-col space-y-4 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center"
|
||||
>
|
||||
<h3 class="title text-primary-400 text-lg col-span-3">
|
||||
<%= dgettext("actions", "Change email") %>
|
||||
<%= dgettext("actions", "change email") %>
|
||||
</h3>
|
||||
|
||||
<%= if @email_changeset.action && not @email_changeset.valid? do %>
|
||||
<div class="alert alert-danger col-span-3">
|
||||
<p>
|
||||
<%= dgettext("errors", "Oops, something went wrong! Please check the errors below.") %>
|
||||
<%= dgettext("errors", "oops, something went wrong! Please check the errors below") %>
|
||||
</p>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<%= hidden_input(f, :action, name: "action", value: "update_email") %>
|
||||
|
||||
<%= label(f, :email, class: "title text-lg text-primary-400") %>
|
||||
<%= label(f, :email, gettext("email"), class: "title text-lg text-primary-400") %>
|
||||
<%= 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"),
|
||||
<%= label(f, :current_password, gettext("current password"),
|
||||
for: "current_password_for_email",
|
||||
class: "mx-2 my-1 title text-lg text-primary-400"
|
||||
) %>
|
||||
@ -41,7 +41,7 @@
|
||||
) %>
|
||||
<%= error_tag(f, :current_password, "col-span-3") %>
|
||||
|
||||
<%= submit(dgettext("actions", "Change email"),
|
||||
<%= submit(dgettext("actions", "change email"),
|
||||
class: "mx-auto btn btn-primary col-span-3"
|
||||
) %>
|
||||
</.form>
|
||||
@ -55,7 +55,7 @@
|
||||
class="flex flex-col space-y-4 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center"
|
||||
>
|
||||
<h3 class="title text-primary-400 text-lg col-span-3">
|
||||
<%= dgettext("actions", "Change password") %>
|
||||
<%= dgettext("actions", "change password") %>
|
||||
</h3>
|
||||
|
||||
<%= if @password_changeset.action && not @password_changeset.valid? do %>
|
||||
@ -68,14 +68,14 @@
|
||||
|
||||
<%= hidden_input(f, :action, name: "action", value: "update_password") %>
|
||||
|
||||
<%= label(f, :password, gettext("New password"), class: "title text-lg text-primary-400") %>
|
||||
<%= label(f, :password, gettext("new password"), class: "title text-lg text-primary-400") %>
|
||||
<%= 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"),
|
||||
<%= label(f, :password_confirmation, gettext("confirm new password"),
|
||||
class: "title text-lg text-primary-400"
|
||||
) %>
|
||||
<%= password_input(f, :password_confirmation,
|
||||
@ -84,7 +84,7 @@
|
||||
) %>
|
||||
<%= error_tag(f, :password_confirmation, "col-span-3") %>
|
||||
|
||||
<%= label(f, :current_password, gettext("Current password"),
|
||||
<%= label(f, :current_password, gettext("current password"),
|
||||
for: "current_password_for_password",
|
||||
class: "title text-lg text-primary-400"
|
||||
) %>
|
||||
@ -96,7 +96,7 @@
|
||||
) %>
|
||||
<%= error_tag(f, :current_password, "col-span-3") %>
|
||||
|
||||
<%= submit(dgettext("actions", "Change password"),
|
||||
<%= submit(dgettext("actions", "change password"),
|
||||
class: "mx-auto btn btn-primary col-span-3"
|
||||
) %>
|
||||
</.form>
|
||||
@ -110,27 +110,27 @@
|
||||
class="flex flex-col space-y-4 justify-center items-center"
|
||||
>
|
||||
<h3 class="title text-primary-400 text-lg">
|
||||
<%= dgettext("actions", "Change Language") %>
|
||||
<%= dgettext("actions", "change language") %>
|
||||
</h3>
|
||||
|
||||
<%= if @locale_changeset.action && not @locale_changeset.valid? do %>
|
||||
<div class="alert alert-danger">
|
||||
<p>
|
||||
<%= dgettext("errors", "Oops, something went wrong! Please check the errors below.") %>
|
||||
<%= dgettext("errors", "oops, something went wrong! Please check the errors below") %>
|
||||
</p>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<%= hidden_input(f, :action, name: "action", value: "update_locale") %>
|
||||
|
||||
<%= select(f, :locale, [{gettext("English"), "en_US"}, {"Spanish", "es"}],
|
||||
<%= select(f, :locale, [{gettext("english"), "en_US"}, {"spanish", "es"}],
|
||||
class: "mx-2 my-1 min-w-md input input-primary"
|
||||
) %>
|
||||
<%= error_tag(f, :locale) %>
|
||||
|
||||
<%= submit(dgettext("actions", "Change language"),
|
||||
<%= submit(dgettext("actions", "change language"),
|
||||
class: "whitespace-nowrap mx-auto btn btn-primary",
|
||||
data: [qa: dgettext("prompts", "Are you sure you want to change your language?")]
|
||||
data: [qa: dgettext("prompts", "are you sure you want to change your language?")]
|
||||
) %>
|
||||
</.form>
|
||||
|
||||
@ -140,8 +140,8 @@
|
||||
href={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?")}
|
||||
data-confirm={dgettext("prompts", "are you sure you want to delete your account?")}
|
||||
>
|
||||
<%= dgettext("actions", "Delete User") %>
|
||||
<%= dgettext("actions", "delete user") %>
|
||||
</.link>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user