Module: Decidim::Votings::VotingsHelper

Includes:
CheckBoxesTreeHelper
Defined in:
decidim-elections/app/helpers/decidim/votings/votings_helper.rb

Instance Method Summary collapse

Methods included from CheckBoxesTreeHelper

#check_boxes_tree_options, #filter_categories_values, #filter_origin_values, #filter_scopes_values, #filter_scopes_values_from, #filter_scopes_values_from_parent, #filter_tree_from, #resource_filter_scope_values, #scope_children_to_tree

Instance Method Details

#filter_states_valuesObject


8
9
10
11
12
13
14
15
16
17
# File 'decidim-elections/app/helpers/decidim/votings/votings_helper.rb', line 8

def filter_states_values
  TreeNode.new(
    TreePoint.new("", t("votings.filters.all", scope: "decidim.votings")),
    [
      TreePoint.new("active", t("votings.filters.active", scope: "decidim.votings")),
      TreePoint.new("upcoming", t("votings.filters.upcoming", scope: "decidim.votings")),
      TreePoint.new("finished", t("votings.filters.finished", scope: "decidim.votings"))
    ]
  )
end