Sha256: 2d4563dea303d00f2a2c7253539d2a79271804a3b40e66ab33ff7eb786f7fd00

Contents?: true

Size: 1.15 KB

Versions: 8

Compression:

Stored size: 1.15 KB

Contents

<% if wf_filter.errors[index] %>
  <tr>
    <td colspan="2"></td> 
    <td>
      <div class="error">
        <%= wf_filter.errors[index] %>  
      </div>
    </td>
    <td></td>
  </tr> 
<% end %>

<tr>
  <td class="condition">
    <%= select_tag "wf_c#{index}", options_for_select(wf_filter.condition_options, condition.key.to_s), {:class=>"wf_input full_width", :onChange=>"wfFilter.updateConditionAt('#{index}')"} %>
  </td>
  <td class="operator">
    <%= select_tag "wf_o#{index}", options_for_select(wf_filter.operator_options_for(condition.key), condition.operator.to_s), {:class=>"wf_input full_width", :onChange=>"wfFilter.updateConditionAt('#{index}')"} %>
  </td>
  <td class="values">
	  <%= render :partial => "/will_filter/filter/containers/#{condition.container.template_name}", :locals => {:container => condition.container, :index => index} %>
  </td>
  <td class="actions">
    <%=link_to_function("<span>-</span>".html_safe, "wfFilter.removeConditionAt('#{index}')", :class => "wf_grey_button wf_pcb") %>
    <%=link_to_function("<span>+</span>".html_safe, "wfFilter.addConditionAfter('#{index}')", :class => "wf_grey_button wf_pcb") %>
  </td>
</tr>
      

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
will_filter-3.1.11 app/views/will_filter/filter/_condition.html.erb
will_filter-3.1.10 app/views/will_filter/filter/_condition.html.erb
will_filter-3.1.9 app/views/will_filter/filter/_condition.html.erb
will_filter-3.1.8 app/views/will_filter/filter/_condition.html.erb
will_filter-3.1.7 app/views/will_filter/filter/_condition.html.erb
will_filter-3.1.6 app/views/will_filter/filter/_condition.html.erb
will_filter-3.1.5 app/views/will_filter/filter/_condition.html.erb
will_filter-3.1.3 app/views/will_filter/filter/_condition.html.erb