fix sorting in events#index with button functionality and add color/text to switch buttons

This commit is contained in:
Stella 2015-01-21 20:12:57 +02:00
parent b8b3703175
commit fbdec2a58e
5 changed files with 26 additions and 19 deletions

View file

@ -33,7 +33,10 @@
%b Highlight
%td
= check_box_tag @conference.short_title, @event.id, @event.is_highlight, class: 'switch-checkbox',
data: { size: "small" }
data: { size: "small",
off_color: 'warning',
on_text: 'Yes',
off_text: 'No' }
%tr
%td