% if !categories.nil? && !categories.empty? && !@object.nil? %>
<%= _('Click to select a category') %>
<% categories.select{|i| @object.accept_category?(i)}.each do |category| %>
<%= update_categories_link(category.name, category.id) %>
<% end %>
<% end %>