Sha256: 88146ec9139e3f51b443afcac0350024998b0ec7b57f352e804bbe04183bd614

Contents?: true

Size: 1.52 KB

Versions: 2

Compression:

Stored size: 1.52 KB

Contents

<div style="margin:0;padding:0;display:inline">
  <%= hidden_field_tag(:wf_id, wf_filter.id) %>
  <%= hidden_field_tag(:wf_type, wf_filter.class.name) %>
  <%= hidden_field_tag(:wf_dirty, "false") %>
  <%= hidden_field_tag(:wf_submitted, "false") %>
  <%= hidden_field_tag(:wf_name, wf_filter.name) %>

  <% unless WillFilter::Config.require_filter_extensions? %>
    <%= hidden_field_tag(:wf_model, wf_filter.model_class_name) %>
  <% end %>
    
  <%= hidden_field_tag(:wf_export_format, "") %>
  <%= hidden_field_tag(:wf_export_fields, "") %>
</div>

<div class="header">
  <% if wf_filter.show_export_options? %>
    <div class="end" style="padding-left:3px;">
      <%=link_to_function("<span>Export Data...</span>".html_safe, "wfExporter.show(this)", :class => "wf_grey_button wf_pcb") %>
    </div>  
  <% end %>
  
  <% if wf_filter.show_save_options? %>
    <div class="end">
      <%=link_to_function("<span>Save As New...</span>".html_safe, "wfFilter.saveFilter()", :class => "wf_grey_button wf_pcb") %>
      <% if params[:wf_id] %>
      <%=link_to_function("<span>Update</span>".html_safe, "wfFilter.updateFilter()", :class => "wf_grey_button wf_pcb") %>
      <%=link_to_function("<span>Delete</span>".html_safe, "wfFilter.deleteFilter()", :class => "wf_grey_button wf_pcb") %>
      <% end %>
    </div>
  <% end %>

  <div>
    <% unless wf_filter.saved_filters.empty? %>
       <%= select_tag(:wf_key, options_for_select(wf_filter.saved_filters, wf_filter.key), {:onChange=>"wfFilter.loadSavedFilter()"}) %>
    <% end %>
  </div>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
will_filter-3.1.6 app/views/will_filter/filter/_conditions_header.html.erb
will_filter-3.1.5 app/views/will_filter/filter/_conditions_header.html.erb