Add email notifications for events registrations, add switch-checkboxes, create EventsRegistrations controller, separate page for events that require registration
This commit is contained in:
parent
139a8565e2
commit
77af75f319
38 changed files with 1313 additions and 403 deletions
|
|
@ -171,16 +171,6 @@ module Admin
|
|||
@event_registrations = @event.events_registrations
|
||||
end
|
||||
|
||||
def toggle_attendance
|
||||
@events_registration.attended = !@events_registration.attended
|
||||
|
||||
if @events_registration.save
|
||||
head :ok
|
||||
else
|
||||
head :unprocessable_entity
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def event_params
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue