Module: Decidim::Consultations::ConsultationsHelper

Defined in:
app/helpers/decidim/consultations/consultations_helper.rb

Instance Method Summary collapse

Instance Method Details

#options_for_state_filterObject

Returns options for state filter selector.



7
8
9
10
11
12
13
14
# File 'app/helpers/decidim/consultations/consultations_helper.rb', line 7

def options_for_state_filter
  [
    ["all", t("consultations.filters.all", scope: "decidim")],
    ["active", t("consultations.filters.active", scope: "decidim")],
    ["upcoming", t("consultations.filters.upcoming", scope: "decidim")],
    ["finished", t("consultations.filters.finished", scope: "decidim")]
  ]
end