mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-14 04:04:03 +00:00
proposal creation: only show is_highlight for organizers or cfp
This commit is contained in:
parent
44f693a093
commit
8fab09e63b
1 changed files with 4 additions and 3 deletions
|
|
@ -17,9 +17,10 @@
|
|||
- else
|
||||
Event type: #{@event.event_type.title}
|
||||
|
||||
%br
|
||||
= f.label :is_highlight
|
||||
= f.check_box :is_highlight, class: 'switch-checkbox', data: { size: "small" }
|
||||
- if current_user.has_any_role? :admin, { name: :organizer, resource: @conference }, { name: :cfp, resource: @conference }
|
||||
= f.label :is_highlight
|
||||
%br
|
||||
= f.check_box :is_highlight, class: 'switch-checkbox', data: { size: "small" }
|
||||
|
||||
%br
|
||||
= f.input :difficulty_level, :as => :select, :collection => @conference.difficulty_levels, :include_blank => "(Please select)" if @conference.difficulty_levels.any?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue