<%#= :re_plan_id => @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) %> <% re_rule_error = re_rule.rule_error %> <% local_first_rule = local_assigns[:first_rule] && first_rule %> <% local_last_rule = local_assigns[:last_rule] && last_rule %>

<%=h re_rule.title %>

<%= link_to("Edit", "##{re_plan_id}|#{@re_workflow.id}|#{re_rule.id}", :class => "re-list-rule-edit") %> <%= link_to("Delete", "##{re_plan_id}|#{@re_workflow.id}|#{re_rule.id}", :class => "re-list-rule-delete") %> <%= link_to("Move Down", "##{re_plan_id}|#{@re_workflow.id}|#{re_rule.id}", :class => "#{local_last_rule ? 're-list-rule-move-down-off' : 're-list-rule-move-down'}") %> <%= link_to("Move Up", "##{re_plan_id}|#{@re_workflow.id}|#{re_rule.id}", :class => "#{local_first_rule ? 're-list-rule-move-up-off' : 're-list-rule-move-up'}") %>

<%=h re_rule.summary %>

<%=h re_rule_error %>
<% if re_rule.re_rule_expected_outcomes.empty? %>
Continue
<% end %> <% unless re_rule.re_rule_expected_outcome_next.nil? %>
Continue
<% end %> <% re_rule.re_rule_expected_outcomes_start_workflow.each do |re_rule_expected_outcome| %>
Start : <%= re_rule_expected_outcome.workflow_code %>
<% end %> <% unless re_rule.re_rule_expected_outcome_failure.nil? %>
Stop Failure
<% end %> <% unless re_rule.re_rule_expected_outcome_success.nil? %>
Stop Success
<% end %>
<% unless local_last_rule %>
<% end %>
<% re_form_for(re_rule, :url => delete_path, :html => {:method => :delete, :id => "re_rule_delete_form_#{re_rule.id}"}) do |f| %> <% end %> <% re_form_for(re_rule, :url => move_up_path, :html => {:method => :put, :id => "re_rule_move_up_form_#{re_rule.id}"}) do |f| %> <% end %> <% re_form_for(re_rule, :url => move_down_path, :html => {:method => :put, :id => "re_rule_move_down_form_#{re_rule.id}"}) do |f| %> <% end %>