From bd0cfb99bc4ca7d26db315e98707e0d6d3e1ccee Mon Sep 17 00:00:00 2001 From: raluka Date: Thu, 2 Jul 2015 14:23:31 +0200 Subject: [PATCH] properly created switch button --- app/views/admin/registrations/index.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/admin/registrations/index.html.haml b/app/views/admin/registrations/index.html.haml index 30b90c8a..a60dd3fc 100644 --- a/app/views/admin/registrations/index.html.haml +++ b/app/views/admin/registrations/index.html.haml @@ -44,8 +44,8 @@ %td = link_to 'Questions','#', class: 'btn btn-success question-btn', 'data-id' => index, 'data-name' => registration.name %td - = check_box_tag class:'switch-checkbox', - data: { size: "large", + = check_box_tag @conference.short_title, registration.id, true, class: 'switch-checkbox', method: :patch, + data: { size: "large", on_color: 'success', off_color: 'warning', on_text: 'Present',