%- @breadcrumbs = [@project, @scenario, @matcher.new? ? "New Matcher" : "Edit Matcher"] -%>
<%= error_messages_for @matcher %>
<%= form_tag_for(@matcher, :base_url => "/projects/#{@project.id}/scenarios/#{@scenario.id}/matchers") %>
Comparisons
<%- if @matcher.comparisons.count == 0 -%>
There are currently no fields selected.
<%- end -%>
">
# |
Value 1 |
|
Value 2 |
<%- @matcher.comparisons.each_with_index do |comparison, i| -%>
<%= i + 1 %> |
<%= comparison.lhs_label %> |
<%= comparison.operator_symbol %> |
<%= comparison.rhs_label %> |
Delete |
<%- end -%>
<%- @matcher.comparisons.each_with_index do |comparison, i| -%>
<%-# This could be done in one loop, but it's a lot less readable -%>
<% if !comparison.new? %><% end %>
<%- end -%>
Add comparison
Finish
">
You must add at least one field before finishing, or you can
cancel.