add bootstrap-switch for is_highlight

This commit is contained in:
Stella Rouzi 2014-12-13 21:13:19 +02:00 committed by Stella
parent 2dd326c8b9
commit a845dd5d7d
9 changed files with 45 additions and 12 deletions

View file

@ -32,15 +32,9 @@
%td
%b Highlight
%td
= link_to "#{@event.is_highlight}".capitalize,
admin_conference_event_path(@conference.short_title,
@event,
event: { is_highlight: !@event.is_highlight }),
method: :patch
- 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)
= check_box_tag @conference.short_title, @event.id, @event.is_highlight, class: 'switch-checkbox',
data: { size: "small" }
%tr
%td
%b State