Sha256: beeb58bb60f32dbd8d22fe9f0e49efafbb2ad198ae32295878c7ed0dfdc0b481

Contents?: true

Size: 1.38 KB

Versions: 1

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], :class => 'keyup-submit', :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

1 entries across 1 versions & 1 rubygems

Version Path
e9_crm-0.1.34 app/views/e9_crm/contacts/_sidebar_search_form.html.haml