osem-fcy/app/views/proposals/registrations.html.haml

46 lines
1.4 KiB
Text
Raw Normal View History

2016-04-22 18:18:46 +03:00
.container
.row
.col-md-10.col-md-offset-1
.page-header
%h1
2016-05-15 14:01:30 +03:00
Registrations
- if @event.max_attendees
(#{@event.events_registrations.length}/#{@event.max_attendees})
- else
(#{@event.events_registrations.length})
2016-04-22 18:18:46 +03:00
.text-muted
for
= @event.title
.well
%table.datatable#registrations
2016-04-22 18:18:46 +03:00
%thead
%tr
%th
%th Name
%th Email
%th Created AT
%th Attended
%th Attended Conference
2016-04-22 18:18:46 +03:00
%tbody
- @event.events_registrations.each.with_index(1) do |event_registration, index|
%tr
%td= index
%td= event_registration.name
%td
- if event_registration.registration.user.email_public
= event_registration.email
- else
(private)
2016-04-22 18:18:46 +03:00
%td= event_registration.created_at
%td.text-center
- if event_registration.attended
2022-05-18 06:31:12 +02:00
%i.fa-solid.fa-check.text-success
2016-04-22 18:18:46 +03:00
- else
2022-05-18 06:31:12 +02:00
%i.fa-solid.fa-xmark.text-danger
2016-04-22 18:18:46 +03:00
%td
- if event_registration.registration.attended
2022-05-18 06:31:12 +02:00
%i.fa-solid.fa-check.text-success
2016-04-22 18:18:46 +03:00
-else
2022-05-18 06:31:12 +02:00
%i.fa-solid.fa-xmark.text-danger