aboutsummaryrefslogblamecommitdiffstats
path: root/app/views/pdfresources/index.html.erb
blob: 47f15917ad23e462b0908adca7fbfc26e322dbb9 (plain) (tree)
1
2
3
4
5
6
7
8
9






                                                                                                                          

                                                                                                    













                                                                                                                                    
<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" %>

  <%= 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" %>
  </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>