From 6c13cfb192ab4250e446f2d2212a701ffbd447e8 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 11 Nov 2024 20:06:16 +0000 Subject: More tweaking of sign-up form --- app/views/registrations/new.html.erb | 11 ++++++----- app/views/sessions/new.html.erb | 8 +++++--- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/app/views/registrations/new.html.erb b/app/views/registrations/new.html.erb index 05e7be9..3663e5f 100644 --- a/app/views/registrations/new.html.erb +++ b/app/views/registrations/new.html.erb @@ -19,12 +19,12 @@
<%= label_tag "last_name", nil, class: "font-bold text-gray-700" %> - <%= form.text_field :last_name, required: true, autofocus: true, autocomplete: "last_name", placeholder: "Enter your last name", value: params[:last_name], class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %> + <%= form.text_field :last_name, required: true, autocomplete: "last_name", placeholder: "Enter your last name", value: params[:last_name], class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
<%= label_tag "email_address", nil, class: "font-bold text-gray-700" %> - <%= form.email_field :email_address, required: true, autofocus: true, autocomplete: "email_address", placeholder: "Enter your email address", value: params[:email_address], class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %> + <%= form.email_field :email_address, required: true, autocomplete: "email_address", placeholder: "Enter your email address", value: params[:email_address], class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
@@ -39,12 +39,13 @@
- <%= form.submit "Sign in", class: "rounded-lg py-3 px-5 bg-blue-600 text-white inline-block font-medium cursor-pointer" %> + <%= form.submit "Create account", class: "rounded-lg py-3 px-5 bg-blue-600 text-white inline-block font-medium cursor-pointer" %>
- <%= link_to "Forgot password?", new_password_path, class: "text-gray-700 underline" %> -
+ <%= link_to "Log in", new_session_path, class: "text-gray-700 underline" %> + <%= link_to "Forgot password?", new_password_path, class: "ps-2 text-gray-700 underline" %>
<% end %> +
\ No newline at end of file diff --git a/app/views/sessions/new.html.erb b/app/views/sessions/new.html.erb index 4c17d82..3dd9a3d 100644 --- a/app/views/sessions/new.html.erb +++ b/app/views/sessions/new.html.erb @@ -7,14 +7,16 @@

<%= notice %>

<% end %> -

Sign in

+

Sign in

<%= form_with url: session_url, class: "contents" do |form| %> -
+ <%= label_tag "email_address", nil, class: "font-bold text-gray-700" %> +
<%= form.email_field :email_address, required: true, autofocus: true, autocomplete: "username", placeholder: "Enter your email address", value: params[:email_address], class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
-
+ <%= label_tag "password", nil, class: "font-bold text-gray-700" %> +
<%= form.password_field :password, required: true, autocomplete: "current-password", placeholder: "Enter your password", maxlength: 72, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
-- cgit v1.2.3