Show how many people has registered to events in the list and view event in admin page. fix #958
This commit is contained in:
parent
ea76d93ecf
commit
a84441ca80
2 changed files with 16 additions and 2 deletions
|
|
@ -24,6 +24,8 @@
|
|||
%b Speaker
|
||||
%th
|
||||
%b Pre-registration
|
||||
%th
|
||||
%b Registrations
|
||||
%th
|
||||
%b Highlight
|
||||
%th
|
||||
|
|
@ -90,7 +92,9 @@
|
|||
off_color: 'warning',
|
||||
on_text: 'Yes',
|
||||
off_text: 'No' }
|
||||
|
||||
%td
|
||||
- if event.require_registration
|
||||
= event.registrations.size
|
||||
%td{'data-order' => "#{event.is_highlight}"}
|
||||
= check_box_tag @conference.short_title, event.id, event.is_highlight,
|
||||
method: :patch, url: "/admin/conference/#{@conference.short_title}/program/events/#{event.id}?event[is_highlight]=",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue