add form for bulk action

organizer can select a booth and perform action on all booth
This commit is contained in:
Rahul 2019-08-13 16:48:32 +05:30
parent 8b2f2b538e
commit fed2d8e089
5 changed files with 77 additions and 50 deletions

View file

@ -115,6 +115,10 @@ module Admin
update_state(:confirm, "#{(t 'booth').capitalize} successfully confirmed")
end
def booths_state
redirect_to admin_conference_booths_path
end
private
def update_state(transition, notice)
@ -132,7 +136,7 @@ module Admin
def booth_params
params.require(:booth).permit(:title, :description, :reasoning, :state, :picture, :conference_id,
:created_at, :updated_at, :submitter_relationship, :website_url, :invite_responsible,
responsible_ids: [])
:current_booth_state, :new_booth_state, responsible_ids: [])
end
end
end