-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfig.rb
58 lines (48 loc) · 2.06 KB
/
config.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
# frozen_string_literal: true
module Decidim
# This namespace holds the logic of the `decidim-reporting_proposals` module.
module ReportingProposals
include ActiveSupport::Configurable
# Public Setting that defines after how many days a not-answered proposal is overdue
# Set it to 0 (zero) if you don't want to use this feature
config_accessor :unanswered_proposals_overdue do
7
end
# Public Setting that defines after how many days an evaluating-state proposal is overdue
# Set it to 0 (zero) if you don't want to use this feature
config_accessor :evaluating_proposals_overdue do
3
end
# Public Setting that defines whether the administrator is allowed to hide the proposals.
# Set to false if you do not want to use this feature
config_accessor :allow_admins_to_hide_proposals do
true
end
# Public Setting that allows to configure which component will have "Use my location" button
# in a geocoded address field. Accepts an array of component manifest names
config_accessor :show_my_location_button do
[:proposals, :meetings, :reporting_proposals]
end
# Public Setting that adds a button next to the "add image" input[type=file] to open the camera directly
config_accessor :use_camera_button do
[:proposals, :reporting_proposals]
end
# Public setting to prevent valuators or admins to modify the photos attached to a proposal
# otherwise can be configured at the component level
config_accessor :allow_proposal_photo_editing do
true
end
# Public setting to allow to assign other valuators
config_accessor :valuators_assign_other_valuators do
true
end
# Public setting to to get an e-mail notification when there is a new answer to a proposal
config_accessor :notify_authors_on_answering do
[:proposals, :reporting_proposals]
end
# Public setting to to get an e-mail notification when the proposal is published
config_accessor :notify_authors_on_publish do
[:proposals, :reporting_proposals]
end
end
end