Move reports to separate controller
This commit is contained in:
parent
a325eccc77
commit
5e9bc683ae
9 changed files with 175 additions and 15 deletions
28
app/views/admin/reports/_events_with_requirements.html.haml
Normal file
28
app/views/admin/reports/_events_with_requirements.html.haml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
.row
|
||||
.col-md-12
|
||||
.page-header
|
||||
%h1
|
||||
Requirements
|
||||
= "(#{@events_with_requirements.length})"
|
||||
%p.text-muted
|
||||
All submissions where the speakers have special requirements
|
||||
.col-md-12
|
||||
%table.table.table-striped.table-bordered.table-hover.datatable
|
||||
%thead
|
||||
%th ID
|
||||
%th Title
|
||||
%th Speaker(s)
|
||||
%th Requirements
|
||||
%th Room
|
||||
%th Date
|
||||
%th Time
|
||||
%tbody
|
||||
- @events_with_requirements.each do |event|
|
||||
%tr
|
||||
%td= event.id
|
||||
%td= link_to event.title, edit_admin_conference_program_event_path(@conference.short_title, event)
|
||||
%td #{event.speaker_names}
|
||||
%td= event.description
|
||||
%td= event.room.name if event.room
|
||||
%td= event.time.to_date if event.time
|
||||
%td= event.time.strftime('%H:%M') if event.time
|
||||
Loading…
Add table
Add a link
Reference in a new issue