keynote type available only to admins. Able to mark as highlight. Highlights and Keynotes scoped.

This commit is contained in:
Stella Rouzi 2014-11-28 14:47:39 +02:00
parent 5d444143ea
commit 2f6fccb912
5 changed files with 30 additions and 18 deletions

View file

@ -25,6 +25,19 @@
- @event_types.each do |type|
%li= link_to type.title, admin_conference_event_path(@conference.short_title, @event, :event_type_id => type.id) ,
:method => :put, :event_type_id => type.id
%tr
%td
%b Highlight
%td
= link_to "#{@event.is_highlight}".capitalize,
admin_conference_event_path(@conference.short_title,
@event,
is_highlight: !@event.is_highlight),
method: :put, is_highlight: !@event.is_highlight
- if @event.is_highlight
(the event is as a highlight and will appear in the splashpage)
- else
(mark as true to make the event a highlight that appears in the splashpage)
%tr
%td
%b State