Adapt ability to allow create a proposal if cfp is open
This is necessary because the manage block does not cover it.
event.users.include?(user) is always false for :new and :create because
the event_users are not saved yet.
Introduced in 3e32c58
This commit is contained in:
parent
f4d41bd610
commit
08624c5b53
4 changed files with 36 additions and 29 deletions
|
|
@ -61,6 +61,10 @@
|
|||
= f.input :description, input_html: { rows: 5 }, label: 'Requirements', placeholder: 'Eg. Whiteboard, printer, or something like that.'
|
||||
|
||||
%p.text-right
|
||||
= f.semantic_fields_for :event_users do |event_user|
|
||||
= event_user.inputs :user, :style => 'display: none'
|
||||
= event_user.inputs :event_role, :style => 'display: none'
|
||||
|
||||
= f.submit 'Create Proposal', class: 'btn btn-success'
|
||||
|
||||
.tab-pane{role: 'tabpanel', id: 'signin'}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue