<%=l('backlogs.definition_of_done')%>

<% statuses_done_for_project = @project.done_statuses.select(:id).map(&:id) %> <%= form_tag(:controller => '/projects', :action => "project_done_statuses", :id => @project) do %> <% for status in @statuses %> "> <% end %>
<%= Status.model_name.human %> <%=l('backlogs.work_package_is_closed')%>
<%= status.name %> <%= (check_box_tag 'statuses[][status_id]', status.id.to_s, statuses_done_for_project.include?(status.id), :id => status.name) %>

<%= submit_tag l(:button_save) %>

<% end %>

<%=l('backlogs.rebuild_positions')%>

<%= form_tag(:controller => '/projects', :action => "rebuild_positions", :id => @project) do %>

<%= submit_tag l('backlogs.rebuild') %>

<% end %>