decidim-forms 0.21.0 → 0.23.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/config/admin/decidim_forms_manifest.css +3 -0
- data/app/assets/config/admin/decidim_forms_manifest.js +1 -0
- data/app/assets/config/decidim_forms_manifest.css +1 -0
- data/app/assets/images/decidim/surveys/icon.svg +1 -19
- data/app/assets/javascripts/decidim/forms/admin/auto_select_options_from_url.component.js.es6 +40 -0
- data/app/assets/javascripts/decidim/forms/admin/collapsible_questions.js.es6 +13 -0
- data/app/assets/javascripts/decidim/forms/admin/forms.js.es6 +260 -16
- data/app/assets/javascripts/decidim/forms/admin/live_text_update.component.js.es6 +52 -0
- data/app/assets/javascripts/decidim/forms/autosortable_checkboxes.component.js.es6 +54 -34
- data/app/assets/javascripts/decidim/forms/display_conditions.component.js.es6 +203 -0
- data/app/assets/javascripts/decidim/forms/forms.js.es6 +49 -1
- data/app/assets/javascripts/decidim/forms/max_choices_alert.component.js.es6 +44 -0
- data/app/assets/stylesheets/decidim/forms/forms.scss +39 -0
- data/app/assets/stylesheets/decidim/forms/questionnaire-answers-pdf.scss +69 -0
- data/app/cells/decidim/forms/matrix_readonly/show.erb +5 -0
- data/app/cells/decidim/forms/matrix_readonly_cell.rb +12 -0
- data/app/cells/decidim/forms/question_readonly/show.erb +5 -1
- data/app/cells/decidim/forms/question_readonly_cell.rb +5 -0
- data/app/cells/decidim/forms/step_navigation/show.erb +35 -0
- data/app/cells/decidim/forms/step_navigation_cell.rb +46 -0
- data/app/commands/decidim/forms/admin/update_questionnaire.rb +33 -1
- data/app/commands/decidim/forms/answer_questionnaire.rb +2 -1
- data/app/controllers/decidim/forms/admin/concerns/has_questionnaire.rb +52 -2
- data/app/controllers/decidim/forms/admin/concerns/has_questionnaire_answers.rb +97 -0
- data/app/controllers/decidim/forms/concerns/has_questionnaire.rb +14 -4
- data/app/forms/decidim/forms/admin/display_condition_form.rb +100 -0
- data/app/forms/decidim/forms/admin/question_form.rb +21 -1
- data/app/forms/decidim/forms/admin/question_matrix_row_form.rb +26 -0
- data/app/forms/decidim/forms/answer_choice_form.rb +1 -0
- data/app/forms/decidim/forms/answer_form.rb +31 -2
- data/app/forms/decidim/forms/questionnaire_form.rb +30 -3
- data/app/helpers/decidim/forms/admin/application_helper.rb +37 -0
- data/app/helpers/decidim/forms/admin/concerns/has_questionnaire_answers_pagination_helper.rb +49 -0
- data/app/helpers/decidim/forms/admin/concerns/has_questionnaire_answers_url_helper.rb +40 -0
- data/app/helpers/decidim/forms/admin/questionnaire_answers_helper.rb +30 -0
- data/app/jobs/decidim/forms/export_questionnaire_answers_job.rb +19 -0
- data/app/models/decidim/forms/answer.rb +0 -3
- data/app/models/decidim/forms/answer_choice.rb +7 -0
- data/app/models/decidim/forms/answer_option.rb +14 -0
- data/app/models/decidim/forms/display_condition.rb +65 -0
- data/app/models/decidim/forms/question.rb +52 -2
- data/app/models/decidim/forms/question_matrix_row.rb +15 -0
- data/app/models/decidim/forms/questionnaire.rb +20 -1
- data/app/presenters/decidim/forms/admin/questionnaire_answer_presenter.rb +43 -0
- data/app/presenters/decidim/forms/admin/questionnaire_participant_presenter.rb +60 -0
- data/app/presenters/decidim/forms/answer_option_presenter.rb +20 -0
- data/app/presenters/decidim/forms/question_presenter.rb +16 -0
- data/app/queries/decidim/forms/questionnaire_participant.rb +35 -0
- data/app/queries/decidim/forms/questionnaire_participants.rb +43 -0
- data/app/views/decidim/forms/admin/questionnaires/_answer_option_template.html.erb +1 -1
- data/app/views/decidim/forms/admin/questionnaires/_display_condition.html.erb +88 -0
- data/app/views/decidim/forms/admin/questionnaires/_display_condition_template.html.erb +7 -0
- data/app/views/decidim/forms/admin/questionnaires/_form.html.erb +67 -8
- data/app/views/decidim/forms/admin/questionnaires/_matrix_row.html.erb +34 -0
- data/app/views/decidim/forms/admin/questionnaires/_matrix_row_template.html.erb +7 -0
- data/app/views/decidim/forms/admin/questionnaires/_question.html.erb +45 -6
- data/app/views/decidim/forms/admin/questionnaires/_separator.html.erb +41 -0
- data/app/views/decidim/forms/admin/questionnaires/answers/export/_answer.html.erb +31 -0
- data/app/views/decidim/forms/admin/questionnaires/answers/export/pdf.html.erb +13 -0
- data/app/views/decidim/forms/admin/questionnaires/answers/index.html.erb +53 -0
- data/app/views/decidim/forms/admin/questionnaires/answers/show.html.erb +48 -0
- data/app/views/decidim/forms/admin/questionnaires/edit.html.erb +9 -5
- data/app/views/decidim/forms/questionnaires/_answer.html.erb +28 -99
- data/app/views/decidim/forms/questionnaires/answers/_long_answer.html.erb +1 -0
- data/app/views/decidim/forms/questionnaires/answers/_matrix_multiple.html.erb +43 -0
- data/app/views/decidim/forms/questionnaires/answers/_matrix_single.html.erb +43 -0
- data/app/views/decidim/forms/questionnaires/answers/_multiple_option.html.erb +23 -0
- data/app/views/decidim/forms/questionnaires/answers/_separator.html.erb +1 -0
- data/app/views/decidim/forms/questionnaires/answers/_short_answer.html.erb +1 -0
- data/app/views/decidim/forms/questionnaires/answers/_single_option.html.erb +30 -0
- data/app/views/decidim/forms/questionnaires/answers/_sorting.html.erb +23 -0
- data/app/views/decidim/forms/questionnaires/show.html.erb +78 -26
- data/app/views/layouts/decidim/forms/admin/questionnaires/questionnaire_answers.html.erb +12 -0
- data/config/initializers/wicked_pdf.rb +25 -0
- data/config/locales/am-ET.yml +1 -0
- data/config/locales/ar.yml +7 -4
- data/config/locales/bg-BG.yml +14 -0
- data/config/locales/bg.yml +14 -0
- data/config/locales/ca.yml +89 -5
- data/config/locales/cs.yml +90 -6
- data/config/locales/da-DK.yml +1 -0
- data/config/locales/da.yml +1 -0
- data/config/locales/de.yml +94 -4
- data/config/locales/el.yml +117 -0
- data/config/locales/en.yml +89 -5
- data/config/locales/eo.yml +1 -0
- data/config/locales/es-MX.yml +88 -4
- data/config/locales/es-PY.yml +88 -4
- data/config/locales/es.yml +88 -4
- data/config/locales/et-EE.yml +1 -0
- data/config/locales/et.yml +1 -0
- data/config/locales/eu.yml +7 -4
- data/config/locales/fi-plain.yml +88 -4
- data/config/locales/fi.yml +88 -4
- data/config/locales/fr-CA.yml +172 -0
- data/config/locales/fr.yml +89 -5
- data/config/locales/ga-IE.yml +1 -0
- data/config/locales/gl.yml +8 -4
- data/config/locales/hr-HR.yml +1 -0
- data/config/locales/hr.yml +1 -0
- data/config/locales/hu.yml +11 -5
- data/config/locales/id-ID.yml +7 -4
- data/config/locales/is.yml +1 -0
- data/config/locales/it.yml +89 -5
- data/config/locales/ja-JP.yml +170 -0
- data/config/locales/ja.yml +170 -0
- data/config/locales/ko-KR.yml +1 -0
- data/config/locales/ko.yml +1 -0
- data/config/locales/lt-LT.yml +1 -0
- data/config/locales/lt.yml +1 -0
- data/config/locales/lv.yml +118 -0
- data/config/locales/mt-MT.yml +1 -0
- data/config/locales/mt.yml +1 -0
- data/config/locales/nl.yml +92 -8
- data/config/locales/no.yml +55 -5
- data/config/locales/om-ET.yml +1 -0
- data/config/locales/pl.yml +113 -26
- data/config/locales/pt-BR.yml +8 -5
- data/config/locales/pt.yml +111 -24
- data/config/locales/ro-RO.yml +167 -0
- data/config/locales/ru.yml +4 -2
- data/config/locales/si-LK.yml +1 -0
- data/config/locales/sk-SK.yml +88 -0
- data/config/locales/sk.yml +90 -0
- data/config/locales/sl.yml +12 -0
- data/config/locales/so-SO.yml +1 -0
- data/config/locales/sr-CS.yml +1 -0
- data/config/locales/sv.yml +88 -7
- data/config/locales/sw-KE.yml +1 -0
- data/config/locales/ti-ER.yml +1 -0
- data/config/locales/tr-TR.yml +95 -5
- data/config/locales/vi-VN.yml +1 -0
- data/config/locales/vi.yml +1 -0
- data/config/locales/zh-CN.yml +172 -0
- data/config/locales/zh-TW.yml +1 -0
- data/db/migrate/20200130194123_create_decidim_forms_display_conditions.rb +20 -0
- data/db/migrate/20200225123810_create_decidim_forms_question_matrix_rows.rb +11 -0
- data/db/migrate/20200304152939_add_matrix_row_id_to_decidim_forms_answer_choices.rb +11 -0
- data/db/migrate/20201110152921_add_salt_to_decidim_forms_questionnaires.rb +16 -0
- data/lib/decidim/exporters/form_pdf.rb +33 -0
- data/lib/decidim/exporters/form_pdf_controller_helper.rb +11 -0
- data/lib/decidim/forms.rb +5 -0
- data/lib/decidim/forms/admin_engine.rb +1 -1
- data/lib/decidim/forms/test.rb +6 -0
- data/lib/decidim/forms/test/factories.rb +51 -0
- data/lib/decidim/forms/test/shared_examples/has_questionnaire.rb +918 -60
- data/lib/decidim/forms/test/shared_examples/manage_questionnaire_answers.rb +108 -0
- data/lib/decidim/forms/test/shared_examples/manage_questionnaires.rb +33 -575
- data/lib/decidim/forms/test/shared_examples/manage_questionnaires/add_display_conditions.rb +179 -0
- data/lib/decidim/forms/test/shared_examples/manage_questionnaires/add_questions.rb +463 -0
- data/lib/decidim/forms/test/shared_examples/manage_questionnaires/update_display_conditions.rb +93 -0
- data/lib/decidim/forms/test/shared_examples/manage_questionnaires/update_questions.rb +461 -0
- data/lib/decidim/forms/user_answers_serializer.rb +22 -5
- data/lib/decidim/forms/version.rb +1 -1
- metadata +133 -13
@@ -16,7 +16,7 @@ module Decidim
|
|
16
16
|
def serialize
|
17
17
|
@answers.each_with_index.inject({}) do |serialized, (answer, idx)|
|
18
18
|
serialized.update(
|
19
|
-
answer_translated_attribute_name(:id) => answer.
|
19
|
+
answer_translated_attribute_name(:id) => answer.session_token,
|
20
20
|
answer_translated_attribute_name(:created_at) => answer.created_at.to_s(:db),
|
21
21
|
answer_translated_attribute_name(:ip_hash) => answer.ip_hash,
|
22
22
|
answer_translated_attribute_name(:user_status) => answer_translated_attribute_name(answer.decidim_user_id.present? ? "registered" : "unregistered"),
|
@@ -28,15 +28,32 @@ module Decidim
|
|
28
28
|
private
|
29
29
|
|
30
30
|
def normalize_body(answer)
|
31
|
-
answer.body || normalize_choices(answer.choices)
|
31
|
+
answer.body || normalize_choices(answer, answer.choices)
|
32
32
|
end
|
33
33
|
|
34
|
-
def normalize_choices(choices)
|
35
|
-
|
36
|
-
|
34
|
+
def normalize_choices(answer, choices)
|
35
|
+
if answer.question.matrix?
|
36
|
+
normalize_matrix_choices(answer, choices)
|
37
|
+
else
|
38
|
+
choices.map do |choice|
|
39
|
+
choice.try(:custom_body) || choice.try(:body)
|
40
|
+
end
|
37
41
|
end
|
38
42
|
end
|
39
43
|
|
44
|
+
def normalize_matrix_choices(answer, choices)
|
45
|
+
answer.question.matrix_rows.map do |matrix_row|
|
46
|
+
row_body = translated_attribute(matrix_row.body)
|
47
|
+
|
48
|
+
row_choices = answer.question.answer_options.map do |answer_option|
|
49
|
+
choice = choices.find_by(matrix_row: matrix_row, answer_option: answer_option)
|
50
|
+
choice.try(:custom_body) || choice.try(:body)
|
51
|
+
end
|
52
|
+
|
53
|
+
[row_body, row_choices]
|
54
|
+
end.to_h
|
55
|
+
end
|
56
|
+
|
40
57
|
def answer_translated_attribute_name(attribute)
|
41
58
|
I18n.t(attribute.to_sym, scope: "decidim.forms.user_answers_serializer")
|
42
59
|
end
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-forms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.23.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josep Jaume Rey Peroy
|
8
8
|
- Marc Riera Casals
|
9
9
|
- Oriol Gual Oliva
|
10
10
|
- Rubén González Valero
|
11
|
-
autorequire:
|
11
|
+
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2021-02-09 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: decidim-core
|
@@ -19,42 +19,70 @@ dependencies:
|
|
19
19
|
requirements:
|
20
20
|
- - '='
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.
|
22
|
+
version: 0.23.2
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - '='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.23.2
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: wicked_pdf
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
requirements:
|
34
|
+
- - "~>"
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '1.4'
|
37
|
+
type: :runtime
|
38
|
+
prerelease: false
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - "~>"
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '1.4'
|
44
|
+
- !ruby/object:Gem::Dependency
|
45
|
+
name: wkhtmltopdf-binary
|
46
|
+
requirement: !ruby/object:Gem::Requirement
|
47
|
+
requirements:
|
48
|
+
- - "~>"
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '0.12'
|
51
|
+
type: :runtime
|
52
|
+
prerelease: false
|
53
|
+
version_requirements: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - "~>"
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '0.12'
|
30
58
|
- !ruby/object:Gem::Dependency
|
31
59
|
name: decidim-admin
|
32
60
|
requirement: !ruby/object:Gem::Requirement
|
33
61
|
requirements:
|
34
62
|
- - '='
|
35
63
|
- !ruby/object:Gem::Version
|
36
|
-
version: 0.
|
64
|
+
version: 0.23.2
|
37
65
|
type: :development
|
38
66
|
prerelease: false
|
39
67
|
version_requirements: !ruby/object:Gem::Requirement
|
40
68
|
requirements:
|
41
69
|
- - '='
|
42
70
|
- !ruby/object:Gem::Version
|
43
|
-
version: 0.
|
71
|
+
version: 0.23.2
|
44
72
|
- !ruby/object:Gem::Dependency
|
45
73
|
name: decidim-dev
|
46
74
|
requirement: !ruby/object:Gem::Requirement
|
47
75
|
requirements:
|
48
76
|
- - '='
|
49
77
|
- !ruby/object:Gem::Version
|
50
|
-
version: 0.
|
78
|
+
version: 0.23.2
|
51
79
|
type: :development
|
52
80
|
prerelease: false
|
53
81
|
version_requirements: !ruby/object:Gem::Requirement
|
54
82
|
requirements:
|
55
83
|
- - '='
|
56
84
|
- !ruby/object:Gem::Version
|
57
|
-
version: 0.
|
85
|
+
version: 0.23.2
|
58
86
|
description: A forms gem for decidim.
|
59
87
|
email:
|
60
88
|
- josepjaume@gmail.com
|
@@ -67,83 +95,164 @@ extra_rdoc_files: []
|
|
67
95
|
files:
|
68
96
|
- README.md
|
69
97
|
- Rakefile
|
98
|
+
- app/assets/config/admin/decidim_forms_manifest.css
|
70
99
|
- app/assets/config/admin/decidim_forms_manifest.js
|
71
100
|
- app/assets/config/decidim_forms_manifest.css
|
72
101
|
- app/assets/config/decidim_forms_manifest.js
|
73
102
|
- app/assets/images/decidim/surveys/icon.svg
|
74
103
|
- app/assets/javascripts/decidim/forms/admin/auto_buttons_by_min_items.component.js.es6
|
75
104
|
- app/assets/javascripts/decidim/forms/admin/auto_select_options_by_total_items.component.js.es6
|
105
|
+
- app/assets/javascripts/decidim/forms/admin/auto_select_options_from_url.component.js.es6
|
106
|
+
- app/assets/javascripts/decidim/forms/admin/collapsible_questions.js.es6
|
76
107
|
- app/assets/javascripts/decidim/forms/admin/forms.js.es6
|
108
|
+
- app/assets/javascripts/decidim/forms/admin/live_text_update.component.js.es6
|
77
109
|
- app/assets/javascripts/decidim/forms/autosortable_checkboxes.component.js.es6
|
110
|
+
- app/assets/javascripts/decidim/forms/display_conditions.component.js.es6
|
78
111
|
- app/assets/javascripts/decidim/forms/forms.js.es6
|
112
|
+
- app/assets/javascripts/decidim/forms/max_choices_alert.component.js.es6
|
79
113
|
- app/assets/javascripts/decidim/forms/option_attached_inputs.component.js.es6
|
80
114
|
- app/assets/stylesheets/decidim/forms/forms.scss
|
115
|
+
- app/assets/stylesheets/decidim/forms/questionnaire-answers-pdf.scss
|
81
116
|
- app/cells/decidim/forms/answer_readonly/show.erb
|
82
117
|
- app/cells/decidim/forms/answer_readonly_cell.rb
|
118
|
+
- app/cells/decidim/forms/matrix_readonly/show.erb
|
119
|
+
- app/cells/decidim/forms/matrix_readonly_cell.rb
|
83
120
|
- app/cells/decidim/forms/question_readonly/show.erb
|
84
121
|
- app/cells/decidim/forms/question_readonly_cell.rb
|
122
|
+
- app/cells/decidim/forms/step_navigation/show.erb
|
123
|
+
- app/cells/decidim/forms/step_navigation_cell.rb
|
85
124
|
- app/commands/decidim/forms/admin/update_questionnaire.rb
|
86
125
|
- app/commands/decidim/forms/answer_questionnaire.rb
|
87
126
|
- app/controllers/decidim/forms/admin/concerns/has_questionnaire.rb
|
127
|
+
- app/controllers/decidim/forms/admin/concerns/has_questionnaire_answers.rb
|
88
128
|
- app/controllers/decidim/forms/concerns/has_questionnaire.rb
|
89
129
|
- app/forms/decidim/forms/admin/answer_option_form.rb
|
130
|
+
- app/forms/decidim/forms/admin/display_condition_form.rb
|
90
131
|
- app/forms/decidim/forms/admin/question_form.rb
|
132
|
+
- app/forms/decidim/forms/admin/question_matrix_row_form.rb
|
91
133
|
- app/forms/decidim/forms/admin/questionnaire_form.rb
|
92
134
|
- app/forms/decidim/forms/answer_choice_form.rb
|
93
135
|
- app/forms/decidim/forms/answer_form.rb
|
94
136
|
- app/forms/decidim/forms/questionnaire_form.rb
|
95
137
|
- app/helpers/decidim/forms/admin/application_helper.rb
|
138
|
+
- app/helpers/decidim/forms/admin/concerns/has_questionnaire_answers_pagination_helper.rb
|
139
|
+
- app/helpers/decidim/forms/admin/concerns/has_questionnaire_answers_url_helper.rb
|
140
|
+
- app/helpers/decidim/forms/admin/questionnaire_answers_helper.rb
|
96
141
|
- app/helpers/decidim/forms/application_helper.rb
|
142
|
+
- app/jobs/decidim/forms/export_questionnaire_answers_job.rb
|
97
143
|
- app/models/concerns/decidim/forms/has_questionnaire.rb
|
98
144
|
- app/models/decidim/forms/answer.rb
|
99
145
|
- app/models/decidim/forms/answer_choice.rb
|
100
146
|
- app/models/decidim/forms/answer_option.rb
|
101
147
|
- app/models/decidim/forms/application_record.rb
|
148
|
+
- app/models/decidim/forms/display_condition.rb
|
102
149
|
- app/models/decidim/forms/question.rb
|
150
|
+
- app/models/decidim/forms/question_matrix_row.rb
|
103
151
|
- app/models/decidim/forms/questionnaire.rb
|
152
|
+
- app/presenters/decidim/forms/admin/questionnaire_answer_presenter.rb
|
153
|
+
- app/presenters/decidim/forms/admin/questionnaire_participant_presenter.rb
|
154
|
+
- app/presenters/decidim/forms/answer_option_presenter.rb
|
155
|
+
- app/presenters/decidim/forms/question_presenter.rb
|
156
|
+
- app/queries/decidim/forms/questionnaire_participant.rb
|
157
|
+
- app/queries/decidim/forms/questionnaire_participants.rb
|
104
158
|
- app/queries/decidim/forms/questionnaire_user_answers.rb
|
105
159
|
- app/types/decidim/forms/answer_option_type.rb
|
106
160
|
- app/types/decidim/forms/question_type.rb
|
107
161
|
- app/types/decidim/forms/questionnaire_type.rb
|
108
162
|
- app/views/decidim/forms/admin/questionnaires/_answer_option.html.erb
|
109
163
|
- app/views/decidim/forms/admin/questionnaires/_answer_option_template.html.erb
|
164
|
+
- app/views/decidim/forms/admin/questionnaires/_display_condition.html.erb
|
165
|
+
- app/views/decidim/forms/admin/questionnaires/_display_condition_template.html.erb
|
110
166
|
- app/views/decidim/forms/admin/questionnaires/_form.html.erb
|
167
|
+
- app/views/decidim/forms/admin/questionnaires/_matrix_row.html.erb
|
168
|
+
- app/views/decidim/forms/admin/questionnaires/_matrix_row_template.html.erb
|
111
169
|
- app/views/decidim/forms/admin/questionnaires/_question.html.erb
|
170
|
+
- app/views/decidim/forms/admin/questionnaires/_separator.html.erb
|
171
|
+
- app/views/decidim/forms/admin/questionnaires/answers/export/_answer.html.erb
|
172
|
+
- app/views/decidim/forms/admin/questionnaires/answers/export/pdf.html.erb
|
173
|
+
- app/views/decidim/forms/admin/questionnaires/answers/index.html.erb
|
174
|
+
- app/views/decidim/forms/admin/questionnaires/answers/show.html.erb
|
112
175
|
- app/views/decidim/forms/admin/questionnaires/edit.html.erb
|
113
176
|
- app/views/decidim/forms/questionnaires/_answer.html.erb
|
177
|
+
- app/views/decidim/forms/questionnaires/answers/_long_answer.html.erb
|
178
|
+
- app/views/decidim/forms/questionnaires/answers/_matrix_multiple.html.erb
|
179
|
+
- app/views/decidim/forms/questionnaires/answers/_matrix_single.html.erb
|
180
|
+
- app/views/decidim/forms/questionnaires/answers/_multiple_option.html.erb
|
181
|
+
- app/views/decidim/forms/questionnaires/answers/_separator.html.erb
|
182
|
+
- app/views/decidim/forms/questionnaires/answers/_short_answer.html.erb
|
183
|
+
- app/views/decidim/forms/questionnaires/answers/_single_option.html.erb
|
184
|
+
- app/views/decidim/forms/questionnaires/answers/_sorting.html.erb
|
114
185
|
- app/views/decidim/forms/questionnaires/show.html.erb
|
186
|
+
- app/views/layouts/decidim/forms/admin/questionnaires/questionnaire_answers.html.erb
|
187
|
+
- config/initializers/wicked_pdf.rb
|
188
|
+
- config/locales/am-ET.yml
|
115
189
|
- config/locales/ar-SA.yml
|
116
190
|
- config/locales/ar.yml
|
191
|
+
- config/locales/bg-BG.yml
|
192
|
+
- config/locales/bg.yml
|
117
193
|
- config/locales/ca.yml
|
118
194
|
- config/locales/cs-CZ.yml
|
119
195
|
- config/locales/cs.yml
|
196
|
+
- config/locales/da-DK.yml
|
197
|
+
- config/locales/da.yml
|
120
198
|
- config/locales/de.yml
|
121
199
|
- config/locales/el-GR.yml
|
122
200
|
- config/locales/el.yml
|
123
201
|
- config/locales/en.yml
|
124
202
|
- config/locales/eo-UY.yml
|
203
|
+
- config/locales/eo.yml
|
125
204
|
- config/locales/es-MX.yml
|
126
205
|
- config/locales/es-PY.yml
|
127
206
|
- config/locales/es.yml
|
207
|
+
- config/locales/et-EE.yml
|
208
|
+
- config/locales/et.yml
|
128
209
|
- config/locales/eu.yml
|
129
210
|
- config/locales/fi-pl.yml
|
130
211
|
- config/locales/fi-plain.yml
|
131
212
|
- config/locales/fi.yml
|
213
|
+
- config/locales/fr-CA.yml
|
132
214
|
- config/locales/fr.yml
|
215
|
+
- config/locales/ga-IE.yml
|
133
216
|
- config/locales/gl.yml
|
217
|
+
- config/locales/hr-HR.yml
|
218
|
+
- config/locales/hr.yml
|
134
219
|
- config/locales/hu.yml
|
135
220
|
- config/locales/id-ID.yml
|
136
221
|
- config/locales/is-IS.yml
|
222
|
+
- config/locales/is.yml
|
137
223
|
- config/locales/it.yml
|
224
|
+
- config/locales/ja-JP.yml
|
225
|
+
- config/locales/ja.yml
|
226
|
+
- config/locales/ko-KR.yml
|
227
|
+
- config/locales/ko.yml
|
228
|
+
- config/locales/lt-LT.yml
|
229
|
+
- config/locales/lt.yml
|
230
|
+
- config/locales/lv.yml
|
231
|
+
- config/locales/mt-MT.yml
|
232
|
+
- config/locales/mt.yml
|
138
233
|
- config/locales/nl.yml
|
139
234
|
- config/locales/no.yml
|
235
|
+
- config/locales/om-ET.yml
|
140
236
|
- config/locales/pl.yml
|
141
237
|
- config/locales/pt-BR.yml
|
142
238
|
- config/locales/pt.yml
|
239
|
+
- config/locales/ro-RO.yml
|
143
240
|
- config/locales/ru.yml
|
241
|
+
- config/locales/si-LK.yml
|
242
|
+
- config/locales/sk-SK.yml
|
243
|
+
- config/locales/sk.yml
|
244
|
+
- config/locales/sl.yml
|
245
|
+
- config/locales/so-SO.yml
|
246
|
+
- config/locales/sr-CS.yml
|
144
247
|
- config/locales/sv.yml
|
248
|
+
- config/locales/sw-KE.yml
|
249
|
+
- config/locales/ti-ER.yml
|
145
250
|
- config/locales/tr-TR.yml
|
146
251
|
- config/locales/uk.yml
|
252
|
+
- config/locales/vi-VN.yml
|
253
|
+
- config/locales/vi.yml
|
254
|
+
- config/locales/zh-CN.yml
|
255
|
+
- config/locales/zh-TW.yml
|
147
256
|
- db/migrate/20170511092231_create_decidim_forms_questionnaires.rb
|
148
257
|
- db/migrate/20170515090916_create_decidim_forms_questions.rb
|
149
258
|
- db/migrate/20170515144119_create_decidim_forms_answers.rb
|
@@ -151,7 +260,13 @@ files:
|
|
151
260
|
- db/migrate/20180405015147_create_decidim_forms_answer_choices.rb
|
152
261
|
- db/migrate/20190315203056_add_session_token_to_decidim_forms_answers.rb
|
153
262
|
- db/migrate/20190930094710_add_ip_hash_to_decidim_form_answers.rb
|
263
|
+
- db/migrate/20200130194123_create_decidim_forms_display_conditions.rb
|
264
|
+
- db/migrate/20200225123810_create_decidim_forms_question_matrix_rows.rb
|
265
|
+
- db/migrate/20200304152939_add_matrix_row_id_to_decidim_forms_answer_choices.rb
|
266
|
+
- db/migrate/20201110152921_add_salt_to_decidim_forms_questionnaires.rb
|
154
267
|
- lib/decidim/api/questionnaire_entity_interface.rb
|
268
|
+
- lib/decidim/exporters/form_pdf.rb
|
269
|
+
- lib/decidim/exporters/form_pdf_controller_helper.rb
|
155
270
|
- lib/decidim/forms.rb
|
156
271
|
- lib/decidim/forms/admin.rb
|
157
272
|
- lib/decidim/forms/admin_engine.rb
|
@@ -161,14 +276,19 @@ files:
|
|
161
276
|
- lib/decidim/forms/test.rb
|
162
277
|
- lib/decidim/forms/test/factories.rb
|
163
278
|
- lib/decidim/forms/test/shared_examples/has_questionnaire.rb
|
279
|
+
- lib/decidim/forms/test/shared_examples/manage_questionnaire_answers.rb
|
164
280
|
- lib/decidim/forms/test/shared_examples/manage_questionnaires.rb
|
281
|
+
- lib/decidim/forms/test/shared_examples/manage_questionnaires/add_display_conditions.rb
|
282
|
+
- lib/decidim/forms/test/shared_examples/manage_questionnaires/add_questions.rb
|
283
|
+
- lib/decidim/forms/test/shared_examples/manage_questionnaires/update_display_conditions.rb
|
284
|
+
- lib/decidim/forms/test/shared_examples/manage_questionnaires/update_questions.rb
|
165
285
|
- lib/decidim/forms/user_answers_serializer.rb
|
166
286
|
- lib/decidim/forms/version.rb
|
167
287
|
homepage: https://github.com/decidim/decidim
|
168
288
|
licenses:
|
169
289
|
- AGPL-3.0
|
170
290
|
metadata: {}
|
171
|
-
post_install_message:
|
291
|
+
post_install_message:
|
172
292
|
rdoc_options: []
|
173
293
|
require_paths:
|
174
294
|
- lib
|
@@ -176,15 +296,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
176
296
|
requirements:
|
177
297
|
- - ">="
|
178
298
|
- !ruby/object:Gem::Version
|
179
|
-
version: '2.
|
299
|
+
version: '2.6'
|
180
300
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
181
301
|
requirements:
|
182
302
|
- - ">="
|
183
303
|
- !ruby/object:Gem::Version
|
184
304
|
version: '0'
|
185
305
|
requirements: []
|
186
|
-
rubygems_version: 3.
|
187
|
-
signing_key:
|
306
|
+
rubygems_version: 3.0.3
|
307
|
+
signing_key:
|
188
308
|
specification_version: 4
|
189
309
|
summary: Decidim forms
|
190
310
|
test_files: []
|