aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-11-11 20:37:30 +0000
committerMatthew Lemon <y@yulqen.org>2024-11-11 20:37:30 +0000
commit07b62172741df6be4e439b11f28076ab5c013a8e (patch)
tree0bea8ae1d84f692de07fa41d355284236dac0a91
parent8ef8a8661bf4663e776497c3cbc55e3dceb63481 (diff)
Adds ghetto log out button
-rw-r--r--app/views/pdfresources/index.html.erb2
-rw-r--r--app/views/registrations/new.html.erb2
2 files changed, 3 insertions, 1 deletions
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 }%>
+
<div class="flex justify-between items-center">
<h1 class="font-bold text-4xl">Pdfresources</h1>
<%= 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 @@
<p class="py-2 px-3 bg-green-50 mb-5 text-green-500 font-medium rounded-lg inline-block" id="notice"><%= notice %></p>
<% end %>
- <%= form_with url: registration_url, model: @user, class: "contents" do |form| %>
+ <%= form_with model: @user, class: "contents" do |form| %>
<div class="my-5">
<%= 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" %>