<%= render Panda::CMS::Admin::ContainerComponent.new do |component| %> <% component.with_heading(text: form.name, level: 1) do |heading| %> <% end %>
<% fields.each do |field, title| %> <% end %> <% submissions.each do |submission| %> <% fields.each do |field| %> <% end %> <% end %>
<%= title %>Submitted
<% if field[0] == "email" || field[0] == "email_address" %> <%= submission.data[field[0]] %> <% else %> <%= simple_format(submission.data[field[0]]) %> <% end %>
<%= time_ago_in_words(submission.created_at) %> ago
<% end %>