Sha256: 5da6fd8fede822685c2703f6f89fe06c449d02cc076244f3220b89269a268600
Contents?: true
Size: 953 Bytes
Versions: 127
Compression:
Stored size: 953 Bytes
Contents
<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, "<%= human_name.pluralize %>" %> <div class="flex justify-between items-center"> <h1 class="font-bold text-4xl"><%= human_name.pluralize %></h1> <%%= link_to "New <%= human_name.downcase %>", new_<%= singular_route_name %>_path, class: "rounded-lg py-3 px-5 bg-blue-600 text-white block font-medium" %> </div> <div id="<%= plural_table_name %>" class="min-w-full"> <%% @<%= plural_table_name %>.each do |<%= singular_table_name %>| %> <%%= render <%= singular_table_name %> %> <p> <%%= link_to "Show this <%= human_name.downcase %>", <%= model_resource_name(singular_table_name) %>, class: "ml-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %> </p> <%% end %> </div> </div>
Version data entries
127 entries across 127 versions & 1 rubygems