From dd09d8d7abe442549c052a2f8a699301abe5cfdc Mon Sep 17 00:00:00 2001 From: neo773 Date: Fri, 11 Apr 2025 22:58:38 +0530 Subject: [PATCH] WIP --- app/views/layouts/auth.html.erb | 4 ++-- app/views/registrations/new.html.erb | 1 + app/views/sessions/new.html.erb | 2 +- config/locales/views/registrations/en.yml | 1 + config/locales/views/sessions/en.yml | 1 + 5 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/views/layouts/auth.html.erb b/app/views/layouts/auth.html.erb index 28c8c1f9..9fdaa64b 100644 --- a/app/views/layouts/auth.html.erb +++ b/app/views/layouts/auth.html.erb @@ -3,7 +3,7 @@
-
+
<%= image_tag "logo-color.png", class: "w-16 mb-6" %>
@@ -38,7 +38,7 @@
-
+
<%= yield %>
diff --git a/app/views/registrations/new.html.erb b/app/views/registrations/new.html.erb index 119e1d90..b9138fd1 100644 --- a/app/views/registrations/new.html.erb +++ b/app/views/registrations/new.html.erb @@ -44,6 +44,7 @@ <%= form.password_field :password, autocomplete: "new-password", required: "required", + placeholder: t(".password_placeholder"), label: true, maxlength: 72, data: { diff --git a/app/views/sessions/new.html.erb b/app/views/sessions/new.html.erb index 2f5228e4..6dfa1237 100644 --- a/app/views/sessions/new.html.erb +++ b/app/views/sessions/new.html.erb @@ -5,7 +5,7 @@ <%= styled_form_with url: sessions_path, class: "space-y-4", data: { turbo: false } do |form| %> <%= form.email_field :email, label: t(".email"), autofocus: false, autocomplete: "email", required: "required", placeholder: t(".email_placeholder") %> - <%= form.password_field :password, label: t(".password"), required: "required" %> + <%= form.password_field :password, label: t(".password"), required: "required", placeholder: t(".password_placeholder") %> <%= form.submit t(".submit") %> <% end %> diff --git a/config/locales/views/registrations/en.yml b/config/locales/views/registrations/en.yml index d79c10ff..4c02397c 100644 --- a/config/locales/views/registrations/en.yml +++ b/config/locales/views/registrations/en.yml @@ -22,3 +22,4 @@ en: welcome_body: To get started, you must sign up for a new account. You will then be able to configure additional settings within the app. welcome_title: Welcome to Self Hosted Maybe! + password_placeholder: Enter your password diff --git a/config/locales/views/sessions/en.yml b/config/locales/views/sessions/en.yml index 8c0a610d..53f2a7ec 100644 --- a/config/locales/views/sessions/en.yml +++ b/config/locales/views/sessions/en.yml @@ -12,3 +12,4 @@ en: password: Password submit: Log in title: Sign in to your account + password_placeholder: Enter your password \ No newline at end of file