aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/pdfresources/show.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/pdfresources/show.html.erb')
-rw-r--r--app/views/pdfresources/show.html.erb15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/views/pdfresources/show.html.erb b/app/views/pdfresources/show.html.erb
new file mode 100644
index 0000000..3c4fe66
--- /dev/null
+++ b/app/views/pdfresources/show.html.erb
@@ -0,0 +1,15 @@
+<div class="mx-auto md:w-2/3 w-full flex">
+ <div class="mx-auto">
+ <% if notice.present? %>
+ <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 %>
+
+ <%= render @pdfresource %>
+
+ <%= link_to "Edit this pdfresource", edit_pdfresource_path(@pdfresource), class: "mt-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="inline-block ml-2">
+ <%= button_to "Destroy this pdfresource", @pdfresource, method: :delete, class: "mt-2 rounded-lg py-3 px-5 bg-gray-100 font-medium" %>
+ </div>
+ </div>
+</div>