aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/pdfresources/edit.html.erb
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-11-14 11:28:08 +0000
committerMatthew Lemon <y@yulqen.org>2024-11-14 11:28:08 +0000
commit06222c54c248a03d0b019db12bc365ab187e317a (patch)
treeafe145691540713fd674196dc46d45ef5d72db42 /app/views/pdfresources/edit.html.erb
parentc8d449c31b29b281a219512bdd5defd5e5ea20f3 (diff)
Adds nice reminders on the edit page re pdfs and thumbnails
Diffstat (limited to '')
-rw-r--r--app/views/pdfresources/edit.html.erb11
1 files changed, 8 insertions, 3 deletions
diff --git a/app/views/pdfresources/edit.html.erb b/app/views/pdfresources/edit.html.erb
index bab5c81..9e3427e 100644
--- a/app/views/pdfresources/edit.html.erb
+++ b/app/views/pdfresources/edit.html.erb
@@ -1,8 +1,13 @@
<div class="mx-auto md:w-1/2 w-full">
- <h1 class="font-bold text-4xl">Editing <%= @pdfresource.name %> </h1>
+ <h1 class="font-bold text-4xl">Editing <%= @pdfresource.name %></h1>
<%= render "form", pdfresource: @pdfresource %>
- <%= link_to "Show this pdfresource", @pdfresource, class: "ml-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %>
- <%= link_to "Back to pdfresources", pdfresources_path, class: "ml-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %>
+ <div class="flex gap-4 mt-8">
+ <%= link_to "Back to resource", @pdfresource,
+ class: "bg-gray-500 hover:bg-gray-600 text-white font-semibold py-2 px-6 rounded-lg" %>
+
+ <%= link_to "Back to all resources", pdfresources_path,
+ class: "bg-gray-500 hover:bg-gray-600 text-white font-semibold py-2 px-6 rounded-lg" %>
+ </div>
</div>