aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/pdfresources/index.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/pdfresources/index.html.erb')
-rw-r--r--app/views/pdfresources/index.html.erb21
1 files changed, 21 insertions, 0 deletions
diff --git a/app/views/pdfresources/index.html.erb b/app/views/pdfresources/index.html.erb
new file mode 100644
index 0000000..ff29982
--- /dev/null
+++ b/app/views/pdfresources/index.html.erb
@@ -0,0 +1,21 @@
+<div class="w-full">
+ <% 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 %>
+
+ <% content_for :title, "Pdfresources" %>
+
+ <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" %>
+ </div>
+
+ <div id="pdfresources" class="min-w-full">
+ <% @pdfresources.each do |pdfresource| %>
+ <%= render pdfresource %>
+ <p>
+ <%= link_to "Show this pdfresource", pdfresource, class: "ml-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %>
+ </p>
+ <% end %>
+ </div>
+</div>