<% set_re_javascript_include 'rules_engine/re_workflow_change' %> <% set_re_breadcrumbs link_to("All Workflows", re_workflows_path, :class => "re-bc-workflow-list"), 'Edit Workflow' %>
Workflow
<%= render '/re_workflows/show' %>
Rules
<%= render '/re_workflows/rule_empty', :hide => !@re_workflow.re_rules.empty? %> <% @re_workflow.re_rules.each do |re_rule | %> <%= render '/re_workflows/rule_change', :re_rule => re_rule, :re_plan_id => 0, :delete_path => re_workflow_rule_path(@re_workflow, re_rule), :move_up_path => move_up_re_workflow_rule_path(@re_workflow, re_rule), :move_down_path => move_down_re_workflow_rule_path(@re_workflow, re_rule), :first_rule => re_rule == @re_workflow.re_rules[0], :last_rule => re_rule == @re_workflow.re_rules[-1] %> <% end %>

<%= link_to("View Workflow", re_workflow_path(@re_workflow), :class => "re-menu-workflow-show") %>

<%= link_to("Copy Workflow", "#0|#{@re_workflow.id}", :id => "re_workflow_copy", :class => "re-menu-workflow-copy") %>


<%= render '/re_workflows/menu', :re_plan_id => 0, :view_path => re_workflow_path(@re_workflow), :delete_path => re_workflow_path(@re_workflow)%>