admins can update volunteers, show names
This commit is contained in:
parent
94ea8b3a6c
commit
d1b2ad3528
3 changed files with 7 additions and 2 deletions
|
|
@ -180,7 +180,7 @@ module Admin
|
||||||
:track_id, :state, :language, :is_highlight, :max_attendees,
|
:track_id, :state, :language, :is_highlight, :max_attendees,
|
||||||
# Not used anymore?
|
# Not used anymore?
|
||||||
:proposal_additional_speakers, :user, :users_attributes,
|
:proposal_additional_speakers, :user, :users_attributes,
|
||||||
speaker_ids: [])
|
speaker_ids: [], volunteer_ids: [])
|
||||||
end
|
end
|
||||||
|
|
||||||
def comment_params
|
def comment_params
|
||||||
|
|
|
||||||
|
|
@ -126,7 +126,7 @@ module ApplicationHelper
|
||||||
def volunteer_links(event)
|
def volunteer_links(event)
|
||||||
safe_join(event.volunteers.map do |volunteer|
|
safe_join(event.volunteers.map do |volunteer|
|
||||||
link_to(volunteer.name, admin_user_path(volunteer))
|
link_to(volunteer.name, admin_user_path(volunteer))
|
||||||
end, ',')
|
end, ', ')
|
||||||
end
|
end
|
||||||
|
|
||||||
def volunteer_selector_input(form)
|
def volunteer_selector_input(form)
|
||||||
|
|
|
||||||
|
|
@ -85,6 +85,11 @@
|
||||||
(
|
(
|
||||||
= link_to speaker.email, "mailto: #{speaker.email}"
|
= link_to speaker.email, "mailto: #{speaker.email}"
|
||||||
)
|
)
|
||||||
|
%tr
|
||||||
|
%td
|
||||||
|
%b Volunteers
|
||||||
|
%td
|
||||||
|
= volunteer_links(@event)
|
||||||
%tr
|
%tr
|
||||||
%td
|
%td
|
||||||
%b Biographies
|
%b Biographies
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue