<% set_re_javascript_include 'rules_engine/re_workflow_change' %> <% set_re_breadcrumbs link_to("All Plans", re_plans_path, :class => "re-bc-plan-list"), link_to("View Plan", re_plan_path(@re_plan), :class => "re-bc-plan-show"), 'Edit Workflow' %>
Plan
<%= render '/re_plans/show' %>
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 => @re_plan.id, :delete_path => re_plan_workflow_rule_path(@re_plan, @re_workflow, re_rule), :move_up_path => move_up_re_plan_workflow_rule_path(@re_plan, @re_workflow, re_rule), :move_down_path => move_down_re_plan_workflow_rule_path(@re_plan, @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 Plan", re_plan_path(@re_plan), :class => "re-menu-plan-show") %>

<%= link_to("Edit Plan", change_re_plan_path(@re_plan), :class => "re-menu-plan-change") %>

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

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


<%= render '/re_workflows/menu', :re_plan_id => @re_plan.id, :delete_path => re_plan_workflow_path(@re_plan, @re_workflow) %>