aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/resource_types/index.html.erb
blob: 417e04e2facb809526c89ee671befc0b772c3b69 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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, "Resource types" %>

  <div class="flex justify-between items-center">
    <h1 class="font-bold text-4xl">Resource types</h1>
    <%= link_to "New resource type", new_resource_type_path, class: "rounded-lg py-3 px-5 bg-blue-600 text-white block font-medium" %>
  </div>

  <div id="resource_types" class="min-w-full">
    <% @resource_types.each do |resource_type| %>
      <%= render resource_type %>
      <p>
        <%= link_to "Show this resource type", resource_type, class: "ml-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %>
      </p>
    <% end %>
  </div>
</div>