Sha256: aaf5ff5f6ed49dca72d4be4ace17637753fe28e783bb78752418fd28a48c4112

Contents?: true

Size: 595 Bytes

Versions: 29

Compression:

Stored size: 595 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Initiatives
    # Helper functions for initiatives views
    module InitiativesHelper
      def initiatives_filter_form_for(filter)
        content_tag :div, class: "filters" do
          form_for filter,
                   builder: Decidim::Initiatives::InitiativesFilterFormBuilder,
                   url: url_for,
                   as: :filter,
                   method: :get,
                   remote: true,
                   html: { id: nil } do |form|
            yield form
          end
        end
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
decidim-initiatives-0.21.0 app/helpers/decidim/initiatives/initiatives_helper.rb
decidim-initiatives-0.20.1 app/helpers/decidim/initiatives/initiatives_helper.rb
decidim-initiatives-0.20.0 app/helpers/decidim/initiatives/initiatives_helper.rb
decidim-initiatives-0.19.1 app/helpers/decidim/initiatives/initiatives_helper.rb
decidim-initiatives-0.18.1 app/helpers/decidim/initiatives/initiatives_helper.rb
decidim-initiatives-0.19.0 app/helpers/decidim/initiatives/initiatives_helper.rb
decidim-initiatives-0.17.2 app/helpers/decidim/initiatives/initiatives_helper.rb
decidim-initiatives-0.18.0 app/helpers/decidim/initiatives/initiatives_helper.rb
decidim-initiatives-0.17.1 app/helpers/decidim/initiatives/initiatives_helper.rb
decidim-initiatives-0.16.1 app/helpers/decidim/initiatives/initiatives_helper.rb
decidim-initiatives-0.17.0 app/helpers/decidim/initiatives/initiatives_helper.rb
decidim-initiatives-0.16.0 app/helpers/decidim/initiatives/initiatives_helper.rb
decidim-initiatives-0.15.2 app/helpers/decidim/initiatives/initiatives_helper.rb
decidim-initiatives-0.15.1 app/helpers/decidim/initiatives/initiatives_helper.rb
decidim-initiatives-0.15.0 app/helpers/decidim/initiatives/initiatives_helper.rb
decidim-initiatives-0.14.4 app/helpers/decidim/initiatives/initiatives_helper.rb
decidim-initiatives-0.14.3 app/helpers/decidim/initiatives/initiatives_helper.rb
decidim-initiatives-0.14.2 app/helpers/decidim/initiatives/initiatives_helper.rb
decidim-initiatives-0.14.1 app/helpers/decidim/initiatives/initiatives_helper.rb
decidim-initiatives-0.13.1 app/helpers/decidim/initiatives/initiatives_helper.rb