Sha256: b1b65288de700487248397485cf7f4f2c7a14a2f2b31995ea61b4c383ec25eb2
Contents?: true
Size: 1.53 KB
Versions: 9
Compression:
Stored size: 1.53 KB
Contents
<%= render PandaCms::Admin::ContainerComponent.new do |component| %> <% component.with_heading(text: form.name, level: 1) do |heading| %> <% end %> <div class="-mx-4 ring-1 ring-gray-300 sm:mx-0 rounded-lg sm:rounded-lg overflow-x-auto"> <table class="min-w-full border-collapse table-auto divide-y divide-gray-300"> <thead> <tr> <% fields.each do |field, title| %> <th scope="col" class="py-3.5 px-3 text-sm font-semibold text-left text-gray-900"><%= title %></th> <% end %> <th scope="col" class="py-3.5 px-3 text-sm font-semibold text-left text-gray-900">Submitted</th> </tr> </thead> <tbody class="bg-white divide-y divide-gray-200"> <% submissions.each do |submission| %> <tr class="bg-white hover:bg-gray-50 cursor-pointer relative"> <% fields.each do |field| %> <td class="py-5 px-3 text-sm text-gray-500"> <% if field[0] == "email" || field[0] == "email_address" %> <a href="mailto:<%= submission.data[field[0]] %>" class="border-b border-gray-500 hover:text-gray-900"><%= submission.data[field[0]] %></a> <% else %> <%= simple_format(submission.data[field[0]]) %> <% end %> </td> <% end %> <td class="py-5 px-3 text-sm text-gray-500 whitespace-nowrap"> <div class="text-gray-500"><%= time_ago_in_words(submission.created_at) %> ago</div> </td> </tr> <% end %> </tbody> </table> </div> <% end %>
Version data entries
9 entries across 9 versions & 1 rubygems