<%= _('Select the groups where you want to publish your article') %>

<% if !@failed.blank? %>

<%=_("There were errors with the following communities: ")%>

<% @failed.each do |error, communities|%> <%= error %>: <% end %>
<% end %> <% form_tag do%> <%= hidden_field_tag :back_to, @back_to %> <% @groups.each do |group| %> <%= labelled_check_box group.name, "marked_groups[#{group.id}][group_id]", group.id, @marked_groups.include?(group) %>
<%= labelled_text_field _('Title') + ': ', "marked_groups[#{group.id}][name]", @article.name, :style => 'width: 100%' %>
<% end %> <% button_bar do %> <%= submit_button 'spread', _('Spread this'), :cancel => @back_to %> <% end %> <% end %>