<% steps = @workflow.dmsf_workflow_steps.collect{|s| s.step}.uniq %>
<% if steps.any? %>
| <%= l(:label_dmsf_workflow_step) %> |
<%= l(:label_dmsf_workflow_approval_plural) %> |
<%=l(:button_sort)%> |
|
<% steps.each do |i|%>
| <%= i %> |
<% @workflow.dmsf_workflow_steps.collect{|s| (s.step == i) ? s : nil}.compact.each_with_index do |step, j| %>
<% if j != 0 %>
<%= step.soperator %> 
<% end %>
<%= link_to_user step.user %>
<% end %>
|
<%= reorder_links('workflow_step', {:action => 'edit', :id => @workflow, :step => i}, :put) %>
|
<%= delete_link edit_dmsf_workflow_path(@workflow, :step => i) %>
|
<% end; reset_cycle %>
<% else %>
<%= l(:label_no_data) %>
<% end %>
<%= form_for(@workflow, :url => edit_dmsf_workflow_path(@workflow),
:html => {:method => :post}) do |f| %>
<% end %>