decidim-forms 0.20.1 → 0.23.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (158) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/config/admin/decidim_forms_manifest.css +3 -0
  3. data/app/assets/config/admin/decidim_forms_manifest.js +1 -0
  4. data/app/assets/config/decidim_forms_manifest.css +1 -0
  5. data/app/assets/images/decidim/surveys/icon.svg +1 -19
  6. data/app/assets/javascripts/decidim/forms/admin/auto_select_options_from_url.component.js.es6 +40 -0
  7. data/app/assets/javascripts/decidim/forms/admin/collapsible_questions.js.es6 +13 -0
  8. data/app/assets/javascripts/decidim/forms/admin/forms.js.es6 +260 -16
  9. data/app/assets/javascripts/decidim/forms/admin/live_text_update.component.js.es6 +52 -0
  10. data/app/assets/javascripts/decidim/forms/autosortable_checkboxes.component.js.es6 +54 -34
  11. data/app/assets/javascripts/decidim/forms/display_conditions.component.js.es6 +203 -0
  12. data/app/assets/javascripts/decidim/forms/forms.js.es6 +49 -1
  13. data/app/assets/javascripts/decidim/forms/max_choices_alert.component.js.es6 +44 -0
  14. data/app/assets/stylesheets/decidim/forms/forms.scss +39 -0
  15. data/app/assets/stylesheets/decidim/forms/questionnaire-answers-pdf.scss +69 -0
  16. data/app/cells/decidim/forms/matrix_readonly/show.erb +5 -0
  17. data/app/cells/decidim/forms/matrix_readonly_cell.rb +12 -0
  18. data/app/cells/decidim/forms/question_readonly/show.erb +5 -1
  19. data/app/cells/decidim/forms/question_readonly_cell.rb +5 -0
  20. data/app/cells/decidim/forms/step_navigation/show.erb +35 -0
  21. data/app/cells/decidim/forms/step_navigation_cell.rb +46 -0
  22. data/app/commands/decidim/forms/admin/update_questionnaire.rb +33 -1
  23. data/app/commands/decidim/forms/answer_questionnaire.rb +2 -1
  24. data/app/controllers/decidim/forms/admin/concerns/has_questionnaire.rb +52 -2
  25. data/app/controllers/decidim/forms/admin/concerns/has_questionnaire_answers.rb +97 -0
  26. data/app/controllers/decidim/forms/concerns/has_questionnaire.rb +11 -2
  27. data/app/forms/decidim/forms/admin/display_condition_form.rb +100 -0
  28. data/app/forms/decidim/forms/admin/question_form.rb +21 -1
  29. data/app/forms/decidim/forms/admin/question_matrix_row_form.rb +26 -0
  30. data/app/forms/decidim/forms/answer_choice_form.rb +1 -0
  31. data/app/forms/decidim/forms/answer_form.rb +31 -2
  32. data/app/forms/decidim/forms/questionnaire_form.rb +30 -3
  33. data/app/helpers/decidim/forms/admin/application_helper.rb +37 -0
  34. data/app/helpers/decidim/forms/admin/concerns/has_questionnaire_answers_pagination_helper.rb +49 -0
  35. data/app/helpers/decidim/forms/admin/concerns/has_questionnaire_answers_url_helper.rb +40 -0
  36. data/app/helpers/decidim/forms/admin/questionnaire_answers_helper.rb +27 -0
  37. data/app/jobs/decidim/forms/export_questionnaire_answers_job.rb +19 -0
  38. data/app/models/decidim/forms/answer.rb +0 -3
  39. data/app/models/decidim/forms/answer_choice.rb +7 -0
  40. data/app/models/decidim/forms/answer_option.rb +14 -0
  41. data/app/models/decidim/forms/display_condition.rb +65 -0
  42. data/app/models/decidim/forms/question.rb +52 -2
  43. data/app/models/decidim/forms/question_matrix_row.rb +15 -0
  44. data/app/models/decidim/forms/questionnaire.rb +11 -1
  45. data/app/presenters/decidim/forms/admin/questionnaire_answer_presenter.rb +43 -0
  46. data/app/presenters/decidim/forms/admin/questionnaire_participant_presenter.rb +60 -0
  47. data/app/presenters/decidim/forms/answer_option_presenter.rb +20 -0
  48. data/app/presenters/decidim/forms/question_presenter.rb +16 -0
  49. data/app/queries/decidim/forms/questionnaire_participant.rb +35 -0
  50. data/app/queries/decidim/forms/questionnaire_participants.rb +43 -0
  51. data/app/types/decidim/forms/answer_option_type.rb +14 -0
  52. data/app/types/decidim/forms/question_type.rb +23 -0
  53. data/app/types/decidim/forms/questionnaire_type.rb +22 -0
  54. data/app/views/decidim/forms/admin/questionnaires/_answer_option_template.html.erb +1 -1
  55. data/app/views/decidim/forms/admin/questionnaires/_display_condition.html.erb +88 -0
  56. data/app/views/decidim/forms/admin/questionnaires/_display_condition_template.html.erb +7 -0
  57. data/app/views/decidim/forms/admin/questionnaires/_form.html.erb +67 -8
  58. data/app/views/decidim/forms/admin/questionnaires/_matrix_row.html.erb +34 -0
  59. data/app/views/decidim/forms/admin/questionnaires/_matrix_row_template.html.erb +7 -0
  60. data/app/views/decidim/forms/admin/questionnaires/_question.html.erb +45 -6
  61. data/app/views/decidim/forms/admin/questionnaires/_separator.html.erb +41 -0
  62. data/app/views/decidim/forms/admin/questionnaires/answers/export/_answer.html.erb +31 -0
  63. data/app/views/decidim/forms/admin/questionnaires/answers/export/pdf.html.erb +13 -0
  64. data/app/views/decidim/forms/admin/questionnaires/answers/index.html.erb +53 -0
  65. data/app/views/decidim/forms/admin/questionnaires/answers/show.html.erb +48 -0
  66. data/app/views/decidim/forms/admin/questionnaires/edit.html.erb +9 -5
  67. data/app/views/decidim/forms/questionnaires/_answer.html.erb +28 -99
  68. data/app/views/decidim/forms/questionnaires/answers/_long_answer.html.erb +1 -0
  69. data/app/views/decidim/forms/questionnaires/answers/_matrix_multiple.html.erb +43 -0
  70. data/app/views/decidim/forms/questionnaires/answers/_matrix_single.html.erb +43 -0
  71. data/app/views/decidim/forms/questionnaires/answers/_multiple_option.html.erb +23 -0
  72. data/app/views/decidim/forms/questionnaires/answers/_separator.html.erb +1 -0
  73. data/app/views/decidim/forms/questionnaires/answers/_short_answer.html.erb +1 -0
  74. data/app/views/decidim/forms/questionnaires/answers/_single_option.html.erb +30 -0
  75. data/app/views/decidim/forms/questionnaires/answers/_sorting.html.erb +23 -0
  76. data/app/views/decidim/forms/questionnaires/show.html.erb +78 -26
  77. data/app/views/layouts/decidim/forms/admin/questionnaires/questionnaire_answers.html.erb +12 -0
  78. data/config/initializers/wicked_pdf.rb +25 -0
  79. data/config/locales/am-ET.yml +1 -0
  80. data/config/locales/ar.yml +7 -4
  81. data/config/locales/bg-BG.yml +14 -0
  82. data/config/locales/bg.yml +14 -0
  83. data/config/locales/ca.yml +89 -5
  84. data/config/locales/cs.yml +89 -5
  85. data/config/locales/da-DK.yml +1 -0
  86. data/config/locales/da.yml +1 -0
  87. data/config/locales/de.yml +92 -4
  88. data/config/locales/el.yml +118 -0
  89. data/config/locales/en.yml +89 -5
  90. data/config/locales/eo.yml +1 -0
  91. data/config/locales/es-MX.yml +88 -4
  92. data/config/locales/es-PY.yml +88 -4
  93. data/config/locales/es.yml +88 -4
  94. data/config/locales/et-EE.yml +1 -0
  95. data/config/locales/et.yml +1 -0
  96. data/config/locales/eu.yml +7 -4
  97. data/config/locales/fi-plain.yml +88 -4
  98. data/config/locales/fi.yml +88 -4
  99. data/config/locales/fr-CA.yml +172 -0
  100. data/config/locales/fr.yml +89 -5
  101. data/config/locales/ga-IE.yml +1 -0
  102. data/config/locales/gl.yml +7 -4
  103. data/config/locales/hr-HR.yml +1 -0
  104. data/config/locales/hr.yml +1 -0
  105. data/config/locales/hu.yml +11 -5
  106. data/config/locales/id-ID.yml +7 -4
  107. data/config/locales/is.yml +1 -0
  108. data/config/locales/it.yml +89 -5
  109. data/config/locales/ja-JP.yml +170 -0
  110. data/config/locales/ja.yml +170 -0
  111. data/config/locales/ko-KR.yml +1 -0
  112. data/config/locales/ko.yml +1 -0
  113. data/config/locales/lt-LT.yml +1 -0
  114. data/config/locales/lt.yml +1 -0
  115. data/config/locales/lv.yml +118 -0
  116. data/config/locales/mt-MT.yml +1 -0
  117. data/config/locales/mt.yml +1 -0
  118. data/config/locales/nl.yml +92 -8
  119. data/config/locales/no.yml +54 -5
  120. data/config/locales/om-ET.yml +1 -0
  121. data/config/locales/pl.yml +113 -26
  122. data/config/locales/pt-BR.yml +8 -5
  123. data/config/locales/pt.yml +111 -24
  124. data/config/locales/ro-RO.yml +167 -0
  125. data/config/locales/ru.yml +4 -2
  126. data/config/locales/sk-SK.yml +88 -0
  127. data/config/locales/sk.yml +90 -0
  128. data/config/locales/sl.yml +12 -0
  129. data/config/locales/so-SO.yml +1 -0
  130. data/config/locales/sr-CS.yml +1 -0
  131. data/config/locales/sv.yml +88 -7
  132. data/config/locales/ti-ER.yml +1 -0
  133. data/config/locales/tr-TR.yml +7 -4
  134. data/config/locales/vi-VN.yml +1 -0
  135. data/config/locales/vi.yml +1 -0
  136. data/config/locales/zh-CN.yml +172 -0
  137. data/config/locales/zh-TW.yml +1 -0
  138. data/db/migrate/20200130194123_create_decidim_forms_display_conditions.rb +20 -0
  139. data/db/migrate/20200225123810_create_decidim_forms_question_matrix_rows.rb +11 -0
  140. data/db/migrate/20200304152939_add_matrix_row_id_to_decidim_forms_answer_choices.rb +11 -0
  141. data/lib/decidim/api/questionnaire_entity_interface.rb +18 -0
  142. data/lib/decidim/exporters/form_pdf.rb +33 -0
  143. data/lib/decidim/exporters/form_pdf_controller_helper.rb +11 -0
  144. data/lib/decidim/forms.rb +6 -0
  145. data/lib/decidim/forms/admin_engine.rb +1 -1
  146. data/lib/decidim/forms/api.rb +7 -0
  147. data/lib/decidim/forms/test.rb +6 -0
  148. data/lib/decidim/forms/test/factories.rb +55 -0
  149. data/lib/decidim/forms/test/shared_examples/has_questionnaire.rb +918 -60
  150. data/lib/decidim/forms/test/shared_examples/manage_questionnaire_answers.rb +108 -0
  151. data/lib/decidim/forms/test/shared_examples/manage_questionnaires.rb +33 -575
  152. data/lib/decidim/forms/test/shared_examples/manage_questionnaires/add_display_conditions.rb +179 -0
  153. data/lib/decidim/forms/test/shared_examples/manage_questionnaires/add_questions.rb +463 -0
  154. data/lib/decidim/forms/test/shared_examples/manage_questionnaires/update_display_conditions.rb +93 -0
  155. data/lib/decidim/forms/test/shared_examples/manage_questionnaires/update_questions.rb +461 -0
  156. data/lib/decidim/forms/user_answers_serializer.rb +21 -4
  157. data/lib/decidim/forms/version.rb +1 -1
  158. metadata +133 -10
@@ -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
- choices.map do |choice|
36
- choice.try(:custom_body) || choice.try(:body)
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
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-forms version.
5
5
  module Forms
6
6
  def self.version
7
- "0.20.1"
7
+ "0.23.1"
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-forms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.1
4
+ version: 0.23.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2020-03-27 00:00:00.000000000 Z
14
+ date: 2020-11-12 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.20.1
22
+ version: 0.23.1
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.20.1
29
+ version: 0.23.1
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.20.1
64
+ version: 0.23.1
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.20.1
71
+ version: 0.23.1
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.20.1
78
+ version: 0.23.1
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.20.1
85
+ version: 0.23.1
58
86
  description: A forms gem for decidim.
59
87
  email:
60
88
  - josepjaume@gmail.com
@@ -67,79 +95,162 @@ 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
159
+ - app/types/decidim/forms/answer_option_type.rb
160
+ - app/types/decidim/forms/question_type.rb
161
+ - app/types/decidim/forms/questionnaire_type.rb
105
162
  - app/views/decidim/forms/admin/questionnaires/_answer_option.html.erb
106
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
107
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
108
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
109
175
  - app/views/decidim/forms/admin/questionnaires/edit.html.erb
110
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
111
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
112
189
  - config/locales/ar-SA.yml
113
190
  - config/locales/ar.yml
191
+ - config/locales/bg-BG.yml
192
+ - config/locales/bg.yml
114
193
  - config/locales/ca.yml
115
194
  - config/locales/cs-CZ.yml
116
195
  - config/locales/cs.yml
196
+ - config/locales/da-DK.yml
197
+ - config/locales/da.yml
117
198
  - config/locales/de.yml
118
199
  - config/locales/el-GR.yml
200
+ - config/locales/el.yml
119
201
  - config/locales/en.yml
120
202
  - config/locales/eo-UY.yml
203
+ - config/locales/eo.yml
121
204
  - config/locales/es-MX.yml
122
205
  - config/locales/es-PY.yml
123
206
  - config/locales/es.yml
207
+ - config/locales/et-EE.yml
208
+ - config/locales/et.yml
124
209
  - config/locales/eu.yml
125
210
  - config/locales/fi-pl.yml
126
211
  - config/locales/fi-plain.yml
127
212
  - config/locales/fi.yml
213
+ - config/locales/fr-CA.yml
128
214
  - config/locales/fr.yml
215
+ - config/locales/ga-IE.yml
129
216
  - config/locales/gl.yml
217
+ - config/locales/hr-HR.yml
218
+ - config/locales/hr.yml
130
219
  - config/locales/hu.yml
131
220
  - config/locales/id-ID.yml
132
221
  - config/locales/is-IS.yml
222
+ - config/locales/is.yml
133
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
134
233
  - config/locales/nl.yml
135
234
  - config/locales/no.yml
235
+ - config/locales/om-ET.yml
136
236
  - config/locales/pl.yml
137
237
  - config/locales/pt-BR.yml
138
238
  - config/locales/pt.yml
239
+ - config/locales/ro-RO.yml
139
240
  - config/locales/ru.yml
241
+ - config/locales/sk-SK.yml
242
+ - config/locales/sk.yml
243
+ - config/locales/sl.yml
244
+ - config/locales/so-SO.yml
245
+ - config/locales/sr-CS.yml
140
246
  - config/locales/sv.yml
247
+ - config/locales/ti-ER.yml
141
248
  - config/locales/tr-TR.yml
142
249
  - config/locales/uk.yml
250
+ - config/locales/vi-VN.yml
251
+ - config/locales/vi.yml
252
+ - config/locales/zh-CN.yml
253
+ - config/locales/zh-TW.yml
143
254
  - db/migrate/20170511092231_create_decidim_forms_questionnaires.rb
144
255
  - db/migrate/20170515090916_create_decidim_forms_questions.rb
145
256
  - db/migrate/20170515144119_create_decidim_forms_answers.rb
@@ -147,15 +258,27 @@ files:
147
258
  - db/migrate/20180405015147_create_decidim_forms_answer_choices.rb
148
259
  - db/migrate/20190315203056_add_session_token_to_decidim_forms_answers.rb
149
260
  - db/migrate/20190930094710_add_ip_hash_to_decidim_form_answers.rb
261
+ - db/migrate/20200130194123_create_decidim_forms_display_conditions.rb
262
+ - db/migrate/20200225123810_create_decidim_forms_question_matrix_rows.rb
263
+ - db/migrate/20200304152939_add_matrix_row_id_to_decidim_forms_answer_choices.rb
264
+ - lib/decidim/api/questionnaire_entity_interface.rb
265
+ - lib/decidim/exporters/form_pdf.rb
266
+ - lib/decidim/exporters/form_pdf_controller_helper.rb
150
267
  - lib/decidim/forms.rb
151
268
  - lib/decidim/forms/admin.rb
152
269
  - lib/decidim/forms/admin_engine.rb
270
+ - lib/decidim/forms/api.rb
153
271
  - lib/decidim/forms/data_portability_user_answers_serializer.rb
154
272
  - lib/decidim/forms/engine.rb
155
273
  - lib/decidim/forms/test.rb
156
274
  - lib/decidim/forms/test/factories.rb
157
275
  - lib/decidim/forms/test/shared_examples/has_questionnaire.rb
276
+ - lib/decidim/forms/test/shared_examples/manage_questionnaire_answers.rb
158
277
  - lib/decidim/forms/test/shared_examples/manage_questionnaires.rb
278
+ - lib/decidim/forms/test/shared_examples/manage_questionnaires/add_display_conditions.rb
279
+ - lib/decidim/forms/test/shared_examples/manage_questionnaires/add_questions.rb
280
+ - lib/decidim/forms/test/shared_examples/manage_questionnaires/update_display_conditions.rb
281
+ - lib/decidim/forms/test/shared_examples/manage_questionnaires/update_questions.rb
159
282
  - lib/decidim/forms/user_answers_serializer.rb
160
283
  - lib/decidim/forms/version.rb
161
284
  homepage: https://github.com/decidim/decidim
@@ -170,14 +293,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
170
293
  requirements:
171
294
  - - ">="
172
295
  - !ruby/object:Gem::Version
173
- version: '2.5'
296
+ version: '2.6'
174
297
  required_rubygems_version: !ruby/object:Gem::Requirement
175
298
  requirements:
176
299
  - - ">="
177
300
  - !ruby/object:Gem::Version
178
301
  version: '0'
179
302
  requirements: []
180
- rubygems_version: 3.1.2
303
+ rubygems_version: 3.0.3
181
304
  signing_key:
182
305
  specification_version: 4
183
306
  summary: Decidim forms