From ce181448a84c84f133d2dc6b5642cd4e08bbb31e Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Tue, 1 Oct 2024 19:21:06 -0400 Subject: [PATCH] Revert "Make copies of the auth templates for Rails 8 beta1" This reverts commit 9dee33a64db4323414bab5910f379b38fb8b0d47. --- .../templates/views/passwords/edit.html.erb | 21 ------------- .../templates/views/passwords/new.html.erb | 17 ---------- .../templates/views/sessions/new.html.erb | 31 ------------------- 3 files changed, 69 deletions(-) delete mode 100644 lib/generators/tailwindcss/authentication/templates/views/passwords/edit.html.erb delete mode 100644 lib/generators/tailwindcss/authentication/templates/views/passwords/new.html.erb delete mode 100644 lib/generators/tailwindcss/authentication/templates/views/sessions/new.html.erb diff --git a/lib/generators/tailwindcss/authentication/templates/views/passwords/edit.html.erb b/lib/generators/tailwindcss/authentication/templates/views/passwords/edit.html.erb deleted file mode 100644 index 939b0b8..0000000 --- a/lib/generators/tailwindcss/authentication/templates/views/passwords/edit.html.erb +++ /dev/null @@ -1,21 +0,0 @@ -
- <%% if alert = flash[:alert] %> -

<%%= alert %>

- <%% end %> - -

Update your password

- - <%%= form_with url: password_path(params[:token]), method: :put, class: "contents" do |form| %> -
- <%%= form.password_field :password, required: true, autocomplete: "new-password", placeholder: "Enter new password", maxlength: 72, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %> -
- -
- <%%= form.password_field :password_confirmation, required: true, autocomplete: "new-password", placeholder: "Repeat new password", maxlength: 72, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %> -
- -
- <%%= form.submit "Save", class: "rounded-lg py-3 px-5 bg-blue-600 text-white inline-block font-medium cursor-pointer" %> -
- <%% end %> -
diff --git a/lib/generators/tailwindcss/authentication/templates/views/passwords/new.html.erb b/lib/generators/tailwindcss/authentication/templates/views/passwords/new.html.erb deleted file mode 100644 index e5d8819..0000000 --- a/lib/generators/tailwindcss/authentication/templates/views/passwords/new.html.erb +++ /dev/null @@ -1,17 +0,0 @@ -
- <%% if alert = flash[:alert] %> -

<%%= alert %>

- <%% end %> - -

Forgot your password?

- - <%%= form_with url: passwords_path, class: "contents" do |form| %> -
- <%%= 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" %> -
- -
- <%%= form.submit "Email reset instructions", class: "rounded-lg py-3 px-5 bg-blue-600 text-white inline-block font-medium cursor-pointer" %> -
- <%% end %> -
diff --git a/lib/generators/tailwindcss/authentication/templates/views/sessions/new.html.erb b/lib/generators/tailwindcss/authentication/templates/views/sessions/new.html.erb deleted file mode 100644 index a475154..0000000 --- a/lib/generators/tailwindcss/authentication/templates/views/sessions/new.html.erb +++ /dev/null @@ -1,31 +0,0 @@ -
- <%% if alert = flash[:alert] %> -

<%%= alert %>

- <%% end %> - - <%% if notice = flash[:notice] %> -

<%%= notice %>

- <%% end %> - -

Sign in

- - <%%= form_with url: session_url, class: "contents" do |form| %> -
- <%%= 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" %> -
- -
- <%%= 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" %> -
- -
-
- <%%= form.submit "Sign in", 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" %> -
-
- <%% end %> -