diff options
Diffstat (limited to '')
-rw-r--r-- | app/views/pdfresources/edit.html.erb | 11 |
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> |