<% local_hide = local_assigns[:hide] && hide %> <% re_workflow_error = re_workflow.workflow_error %> <% default_workflow = re_workflow == @re_plan.default_workflow %> <% last_workflow = re_workflow == @re_plan.re_workflows[-1] %>

<%=h re_workflow.title %> (<%=h re_workflow.code%>)

<%= link_to("Default".html_safe, "##{@re_plan.id}|#{re_workflow.id}", :class => "#{default_workflow ? 're-list-workflow-make-default-off' : 're-list-workflow-make-default'}") %> <%= link_to("Edit".html_safe, change_re_plan_workflow_path(@re_plan, re_workflow), :class => "re-list-workflow-change") %> <%= link_to("Remove".html_safe, "##{@re_plan.id}|#{re_workflow.id}", :class => "re-list-workflow-remove") %>

<%=h re_workflow.description %> 

<%= re_workflow_error.blank? ? 'Valid' : re_workflow_error %>
<% unless last_workflow %>

<% end %>
<%= re_form_for(re_workflow, :url => remove_re_plan_workflow_path(@re_plan, re_workflow), :html => {:method => :put, :id => "re_workflow_remove_form_#{re_workflow.id}"}) do |f| %> <% end %> <%= re_form_for(re_workflow, :url => default_re_plan_workflow_path(@re_plan, re_workflow), :html => {:method => :put, :id => "re_workflow_default_form_#{re_workflow.id}"}) do |f| %> <% end %>