Module: Decidim::Initiatives::InitiativesHelper

Defined in:
decidim-initiatives/app/helpers/decidim/initiatives/initiatives_helper.rb

Overview

Helper functions for initiatives views

Instance Method Summary collapse

Instance Method Details

#initiatives_filter_form_for(filter) ⇒ Object


7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'decidim-initiatives/app/helpers/decidim/initiatives/initiatives_helper.rb', line 7

def initiatives_filter_form_for(filter)
   :div, class: "filters" do
    form_for filter,
             namespace: filter_form_namespace,
             builder: Decidim::Initiatives::InitiativesFilterFormBuilder,
             url: url_for,
             as: :filter,
             method: :get,
             remote: true,
             html: { id: nil } do |form|
      yield form
    end
  end
end