From 07b62172741df6be4e439b11f28076ab5c013a8e Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 11 Nov 2024 20:37:30 +0000 Subject: Adds ghetto log out button --- app/views/pdfresources/index.html.erb | 2 ++ app/views/registrations/new.html.erb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/pdfresources/index.html.erb b/app/views/pdfresources/index.html.erb index ff29982..47f1591 100644 --- a/app/views/pdfresources/index.html.erb +++ b/app/views/pdfresources/index.html.erb @@ -5,6 +5,8 @@ <% content_for :title, "Pdfresources" %> + <%= link_to "Log out", Current.session, class: "underline my-3", data: { turbo_method: :delete }%> +

Pdfresources

<%= link_to "New pdfresource", new_pdfresource_path, class: "rounded-lg py-3 px-5 bg-blue-600 text-white block font-medium" %> diff --git a/app/views/registrations/new.html.erb b/app/views/registrations/new.html.erb index 14318df..b9e01e1 100644 --- a/app/views/registrations/new.html.erb +++ b/app/views/registrations/new.html.erb @@ -11,7 +11,7 @@

<%= notice %>

<% end %> - <%= form_with url: registration_url, model: @user, class: "contents" do |form| %> + <%= form_with model: @user, class: "contents" do |form| %>
<%= label_tag "first_name", nil, class: "font-bold text-gray-700" %> <%= form.text_field :first_name, required: true, autofocus: true, autocomplete: "first_name", placeholder: "Enter your first name", value: params[:first_name], class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %> -- cgit v1.2.3