mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
40 lines
1.3 KiB
Text
40 lines
1.3 KiB
Text
.container
|
|
.row
|
|
.col-md-10.col-md-offset-1
|
|
.page-header
|
|
%h1
|
|
Registrations
|
|
- if @event.max_attendees
|
|
(#{@event.events_registrations.length}/#{@event.max_attendees})
|
|
- else
|
|
(#{@event.events_registrations.length})
|
|
.text-muted
|
|
for
|
|
= @event.title
|
|
|
|
.well
|
|
%table.table.table-hover.table-borderd.table-striped.datatable#registrations
|
|
%thead
|
|
%th
|
|
%th Name
|
|
%th Email
|
|
%th Created AT
|
|
%th Attended
|
|
%th Attended Conference
|
|
%tbody
|
|
- @event.events_registrations.each.with_index(1) do |event_registration, index|
|
|
%tr
|
|
%td= index
|
|
%td= event_registration.name
|
|
%td= event_registration.email
|
|
%td= event_registration.created_at
|
|
%td.text-center
|
|
- if event_registration.attended
|
|
%i.fa.fa-check.text-success
|
|
- else
|
|
%i.fa.fa-times.text-danger
|
|
%td
|
|
- if event_registration.registration.attended
|
|
%i.fa.fa-check.text-success
|
|
-else
|
|
%i.fa.fa-times.text-danger
|