Class: Decidim::ParticipatoryProcesses::ContentBlocks::DemocraticQualityStatsSettingsFormCell

Inherits:
ContentBlocks::BaseCell
  • Object
show all
Defined in:
app/cells/decidim/participatory_processes/content_blocks/democratic_quality_stats_settings_form_cell.rb

Overview

Cell for the democratic quality stats settings form content block.

Instance Method Summary collapse

Instance Method Details

#content_blockObject



10
11
12
# File 'app/cells/decidim/participatory_processes/content_blocks/democratic_quality_stats_settings_form_cell.rb', line 10

def content_block
  options[:content_block]
end

#input_name(name) ⇒ Object



75
76
77
# File 'app/cells/decidim/participatory_processes/content_blocks/democratic_quality_stats_settings_form_cell.rb', line 75

def input_name(name)
  "content_block[settings][#{name}]"
end

#option_scopeObject



14
15
16
# File 'app/cells/decidim/participatory_processes/content_blocks/democratic_quality_stats_settings_form_cell.rb', line 14

def option_scope
  "decidim.participatory_processes.admin.content_blocks.democratic_quality_stats_settings_form"
end

#settings_optionsObject



18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# File 'app/cells/decidim/participatory_processes/content_blocks/democratic_quality_stats_settings_form_cell.rb', line 18

def settings_options
  {
    functional_diversity_invited: [
      [t("inclusiveness.functional_diversity_invited.options.zero", scope: option_scope), 0],
      [t("inclusiveness.functional_diversity_invited.options.one", scope: option_scope), 1],
      [t("inclusiveness.functional_diversity_invited.options.two_five", scope: option_scope), 2.5],
      [t("inclusiveness.functional_diversity_invited.options.five", scope: option_scope), 5]
    ],
    languages_communicated: [
      [t("inclusiveness.languages_communicated.options.one", scope: option_scope), 1],
      [t("inclusiveness.languages_communicated.options.two_five", scope: option_scope), 2.5],
      [t("inclusiveness.languages_communicated.options.five", scope: option_scope), 5]
    ],
    mobility_meeting_access: [
      [t("inclusiveness.mobility_meeting_access.options.zero", scope: option_scope), 0],
      [t("inclusiveness.mobility_meeting_access.options.two_five", scope: option_scope), 2.5],
      [t("inclusiveness.mobility_meeting_access.options.five", scope: option_scope), 5]
    ],
    participation_scheduling_times: [
      [t("inclusiveness.participation_scheduling_times.options.zero", scope: option_scope), 0],
      [t("inclusiveness.participation_scheduling_times.options.two_five", scope: option_scope), 2.5],
      [t("inclusiveness.participation_scheduling_times.options.five", scope: option_scope), 5]
    ],
    digital_support_offered: [
      [t("inclusiveness.digital_support_offered.options.zero", scope: option_scope), 0],
      [t("inclusiveness.digital_support_offered.options.two_five", scope: option_scope), 2.5],
      [t("inclusiveness.digital_support_offered.options.five", scope: option_scope), 5]
    ],
    citizen_influence_level: [
      [t("citizen_influence.citizen_influence_level.options.one", scope: option_scope), 1],
      [t("citizen_influence.citizen_influence_level.options.two", scope: option_scope), 2],
      [t("citizen_influence.citizen_influence_level.options.three", scope: option_scope), 3],
      [t("citizen_influence.citizen_influence_level.options.four", scope: option_scope), 4],
      [t("citizen_influence.citizen_influence_level.options.five", scope: option_scope), 5]
    ],
    citizen_decisional_intervention: [
      [t("citizen_influence.citizen_decisional_intervention.options.one", scope: option_scope), 1],
      [t("citizen_influence.citizen_decisional_intervention.options.two", scope: option_scope), 2],
      [t("citizen_influence.citizen_decisional_intervention.options.three", scope: option_scope), 3],
      [t("citizen_influence.citizen_decisional_intervention.options.four", scope: option_scope), 4],
      [t("citizen_influence.citizen_decisional_intervention.options.five", scope: option_scope), 5]
    ],
    published_information_clarity: [
      [t("informativeness.published_information_clarity.options.zero", scope: option_scope), 0],
      [t("informativeness.published_information_clarity.options.one", scope: option_scope), 1],
      [t("informativeness.published_information_clarity.options.two_five", scope: option_scope), 2.5],
      [t("informativeness.published_information_clarity.options.five", scope: option_scope), 5]
    ],
    information_provided: [
      [t("informativeness.information_provided.options.zero", scope: option_scope), 0],
      [t("informativeness.information_provided.options.one", scope: option_scope), 1],
      [t("informativeness.information_provided.options.two_five", scope: option_scope), 2.5],
      [t("informativeness.information_provided.options.five", scope: option_scope), 5]
    ]
  }
end