<% content_for :body_class, 'admin-reports index' %> <% content_for :body_id, 'admin-reports-index' %> <% content_for :page_title, 'Reports' %> <% content_for :page_header do %>

<%= yield :page_title %>

<% end %> <% if @reports.any? %>
<% @reports.each do |report| %> <% end %>
Id Type From Date To Date State Report Created at Controls
<%= report.id %> <%= report.type %> <%= admin_time_string(report.from_date).html_safe %> <%= admin_time_string(report.to_date).html_safe %> <%= report.state %> <% if report.csv.present? %> <%= link_to("download", report.csv.url) %> <% else %> N/A <% end %> <% if report.created_at %> <%= admin_time_string(report.created_at).html_safe %> <% else %> - <% end %>
  • <%= link_to 'details', admin_report_path(report) %>
  • <%= link_to 'edit', edit_admin_report_path(report) %>
  • <%= form_button_to 'delete', admin_report_path(report), :class => 'text', :method => :delete, :data => { :confirm => 'Are you sure you want to delete this?' } %>
<%= will_paginate @reports %> <% else %>
There are no reports available.
<% end %>