Sha256: c75e1f9eb24c041d5f4fa44076a5bf07f370a8e1dd5aaa1c28a13f8fbd60b806

Contents?: true

Size: 1.38 KB

Versions: 4

Compression:

Stored size: 1.38 KB

Contents

%fieldset
  %legend= e9_t(:search_options_legend)
  = submit_tag t(:clear_all_filters), :name => nil, :id => 'contact_search_clear'

  = form_tag(resource_class, :method => :get, :class => 'field', :id => 'contact_search_form') do
    = label_tag 'contact_search_field', t(:search)
    = text_field_tag 'search', params[:search], :id => 'contact_search_field', :placeholder => t(:contact_search_placeholder)

  = form_tag(resource_class, :method => :get, :class => 'scope-selects field', :id => 'company_search_form') do
    = label_tag 'contact_company_select', Company.model_name.human
    %select{:name => 'company', :id => 'contact_company_select'}
      = company_select_options

  = form_tag(resource_class, :method => :get, :class => 'scope-selects field') do
    = label_tag 'bounced_select', User.human_attribute_name(:has_bounced)
    %select{:name => 'bounced', :id => 'bounced_select'}
      %option{:value => nil} No
      %option{:value => '1'} Yes

  .field#contact_tag_list
    %label{:for => 'contact_tag_autocomplete'} Tags
    %input#contact_tag_autocomplete.list{:type => 'text', 'data-iname' => 'contact', 'data-field' => '[tagged]', :placeholder => t(:tag_search_placeholder)}
    %ul#contact_tag_select.select
      - Array.wrap(params[:tagged]).each do |tag|
        %li.ui-state-default
          %span.content= tag
          %a{:class => :remove, :title => "Remove", :alt => "Remove"} Remove

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
e9_crm-0.1.33 app/views/e9_crm/contacts/_sidebar_search_form.html.haml
e9_crm-0.1.32 app/views/e9_crm/contacts/_sidebar_search_form.html.haml
e9_crm-0.1.31 app/views/e9_crm/contacts/_sidebar_search_form.html.haml
e9_crm-0.1.30 app/views/e9_crm/contacts/_sidebar_search_form.html.haml