|
|
|
@ -126,13 +126,16 @@ module WatchersHelper
|
|
|
|
|
text = l(:label_exit_course)
|
|
|
|
|
|
|
|
|
|
if joined
|
|
|
|
|
link_to text, {:controller => "courses", :action => "join_group", :object_id => "#{group.id}"}, :remote => true, :method => 'delete', :id => "#{group.id}", :confirm => l(:text_are_you_sure_out_group), :class => []+options
|
|
|
|
|
link_to text, {:controller => "courses", :action => "join_group", :object_id => "#{group.id}"},
|
|
|
|
|
:remote => true, :method => 'delete',
|
|
|
|
|
:id => "#{group.id}", :style => "padding: 8px 8px 4px;",
|
|
|
|
|
:confirm => l(:text_are_you_sure_out_group), :class => 'group_in'
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
text = l(:label_new_join)
|
|
|
|
|
form_tag({:controller => "courses", :action => "join_group", :object_id => "#{group.id}"}, :remote => true, :method => 'post') do
|
|
|
|
|
submit_tag text, class: "submit f_l", style: "width: 43px;height: 21px;"
|
|
|
|
|
submit_tag text, class: "group_in", style: "width: 43px;height: 21px;"
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|