add form for bulk action
organizer can select a booth and perform action on all booth
This commit is contained in:
parent
8b2f2b538e
commit
fed2d8e089
5 changed files with 77 additions and 50 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue