Sha256: 539e48ab103ce8e1cf8e877757c0b4badfe72778be43f354c783d322d5322e87

Contents?: true

Size: 1.18 KB

Versions: 1

Compression:

Stored size: 1.18 KB

Contents

- content_for :toolbar_middle do
  = toolbar_filters do
    = form_tag(resource_class, :method => :get, :class => 'scope-selects') do
      .field
        = label_tag 'campaign-type', t(:filter_by, :attribute => resource_class.human_attribute_name(:type))
        %select{:name => 'type', :id => 'campaign-type'}
          = campaign_type_select_options
      .field
        = label_tag 'campaign-group', t(:filter_by, :attribute => resource_class.human_attribute_name(:group))
        %select{:name => 'group', :id => 'campaign-group'}
          = campaign_group_select_options
      .field
        = label_tag 'campaign-active', t(:filter_by, :attribute => resource_class.human_attribute_name(:active))
        %select{:name => 'active', :id => 'campaign-active'}
          = campaign_active_select_options

- content_for :toolbar_right do
  = toolbar_forms do
    = form_tag new_campaign_path, :method => :get, :id => 'new_campaign_form' do
      = label_tag 'new_campaign_type_select', t('activerecord.links.new', :model => Campaign.model_name.human)
      %select{:name => 'type', :id => 'new_campaign_type_select'}
        = campaign_type_select_options(false)
      = submit_tag t(:go), :name => nil

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
e9_crm-0.1.34 app/views/e9_crm/campaigns/_header.html.haml