decidim-forms 0.30.3 → 0.31.0.rc1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -10
  3. data/app/cells/decidim/forms/matrix_readonly/show.erb +1 -1
  4. data/app/cells/decidim/forms/matrix_readonly_cell.rb +3 -3
  5. data/app/cells/decidim/forms/question_readonly/show.erb +5 -5
  6. data/app/cells/decidim/forms/question_readonly/title_and_description.erb +3 -3
  7. data/app/cells/decidim/forms/response_readonly_cell.rb +9 -0
  8. data/app/cells/decidim/forms/step_navigation/show.erb +3 -3
  9. data/app/cells/decidim/forms/step_navigation_cell.rb +3 -3
  10. data/app/commands/decidim/forms/admin/update_questions.rb +6 -6
  11. data/app/commands/decidim/forms/{answer_questionnaire.rb → response_questionnaire.rb} +35 -35
  12. data/app/controllers/decidim/forms/admin/concerns/has_questionnaire.rb +12 -12
  13. data/app/controllers/decidim/forms/admin/concerns/{has_questionnaire_answers.rb → has_questionnaire_responses.rb} +23 -19
  14. data/app/controllers/decidim/forms/concerns/has_questionnaire.rb +38 -33
  15. data/app/forms/decidim/forms/admin/display_condition_form.rb +14 -14
  16. data/app/forms/decidim/forms/admin/question_form.rb +3 -3
  17. data/app/forms/decidim/forms/admin/{answer_option_form.rb → response_option_form.rb} +3 -3
  18. data/app/forms/decidim/forms/questionnaire_form.rb +8 -9
  19. data/app/forms/decidim/forms/{answer_choice_form.rb → response_choice_form.rb} +5 -5
  20. data/app/forms/decidim/forms/{answer_form.rb → response_form.rb} +9 -9
  21. data/app/helpers/decidim/forms/admin/application_helper.rb +2 -2
  22. data/app/helpers/decidim/forms/admin/concerns/{has_questionnaire_answers_pagination_helper.rb → has_questionnaire_responses_pagination_helper.rb} +4 -4
  23. data/app/helpers/decidim/forms/admin/concerns/{has_questionnaire_answers_url_helper.rb → has_questionnaire_responses_url_helper.rb} +5 -5
  24. data/app/helpers/decidim/forms/admin/questionnaire_responses_helper.rb +32 -0
  25. data/app/helpers/decidim/forms/application_helper.rb +1 -2
  26. data/app/jobs/decidim/forms/{export_questionnaire_answers_job.rb → export_questionnaire_responses_job.rb} +5 -5
  27. data/app/models/decidim/forms/display_condition.rb +20 -20
  28. data/app/models/decidim/forms/question.rb +14 -13
  29. data/app/models/decidim/forms/question_matrix_row.rb +1 -1
  30. data/app/models/decidim/forms/questionnaire.rb +11 -6
  31. data/app/models/decidim/forms/{answer.rb → response.rb} +9 -9
  32. data/app/models/decidim/forms/response_choice.rb +22 -0
  33. data/app/models/decidim/forms/{answer_option.rb → response_option.rb} +5 -5
  34. data/app/packs/entrypoints/decidim_forms_admin.js +3 -3
  35. data/app/packs/src/decidim/forms/admin/collapsible_questions.js +12 -10
  36. data/app/packs/src/decidim/forms/admin/forms.js +35 -35
  37. data/app/packs/src/decidim/forms/admin/{publish_answers_buttons.js → publish_responses_buttons.js} +12 -12
  38. data/app/packs/src/decidim/forms/display_conditions.component.js +12 -12
  39. data/app/packs/src/decidim/forms/forms.js +8 -29
  40. data/app/packs/stylesheets/decidim/forms/forms.scss +2 -2
  41. data/app/presenters/decidim/forms/admin/questionnaire_participant_presenter.rb +13 -13
  42. data/app/presenters/decidim/forms/admin/{questionnaire_answer_presenter.rb → questionnaire_response_presenter.rb} +15 -15
  43. data/app/presenters/decidim/forms/admin_log/question_presenter.rb +3 -3
  44. data/app/presenters/decidim/forms/{answer_option_presenter.rb → response_option_presenter.rb} +2 -2
  45. data/app/queries/decidim/forms/questionnaire_participant.rb +5 -5
  46. data/app/queries/decidim/forms/questionnaire_participants.rb +6 -6
  47. data/app/queries/decidim/forms/questionnaire_user_responses.rb +32 -0
  48. data/app/views/decidim/forms/admin/questionnaires/_display_condition.html.erb +9 -9
  49. data/app/views/decidim/forms/admin/questionnaires/_form.html.erb +2 -2
  50. data/app/views/decidim/forms/admin/questionnaires/_matrix_row.html.erb +3 -3
  51. data/app/views/decidim/forms/admin/questionnaires/_question.html.erb +21 -11
  52. data/app/views/decidim/forms/admin/questionnaires/_questions_form.html.erb +13 -41
  53. data/app/views/decidim/forms/admin/questionnaires/{_answer_option.html.erb → _response_option.html.erb} +7 -7
  54. data/app/views/decidim/forms/admin/questionnaires/_response_option_template.html.erb +7 -0
  55. data/app/views/decidim/forms/admin/questionnaires/_separator.html.erb +11 -1
  56. data/app/views/decidim/forms/admin/questionnaires/_title_and_description.html.erb +12 -2
  57. data/app/views/decidim/forms/admin/questionnaires/edit.html.erb +1 -1
  58. data/app/views/decidim/forms/admin/questionnaires/edit_questions.html.erb +8 -8
  59. data/app/views/decidim/forms/admin/questionnaires/responses/index.html.erb +80 -0
  60. data/app/views/decidim/forms/admin/questionnaires/responses/show.html.erb +43 -0
  61. data/app/views/decidim/forms/questionnaires/_questionnaire.html.erb +22 -26
  62. data/app/views/decidim/forms/questionnaires/_questionnaire_readonly.html.erb +8 -3
  63. data/app/views/decidim/forms/questionnaires/_response.html.erb +61 -0
  64. data/app/views/decidim/forms/questionnaires/edit.html.erb +2 -2
  65. data/app/views/decidim/forms/questionnaires/responses/_files.html.erb +1 -0
  66. data/app/views/decidim/forms/questionnaires/responses/_long_response.html.erb +3 -0
  67. data/app/views/decidim/forms/questionnaires/{answers → responses}/_matrix_multiple.html.erb +16 -15
  68. data/app/views/decidim/forms/questionnaires/{answers → responses}/_matrix_single.html.erb +17 -16
  69. data/app/views/decidim/forms/questionnaires/responses/_multiple_option.html.erb +26 -0
  70. data/app/views/decidim/forms/questionnaires/responses/_separator.html.erb +1 -0
  71. data/app/views/decidim/forms/questionnaires/responses/_short_response.html.erb +3 -0
  72. data/app/views/decidim/forms/questionnaires/responses/_single_option.html.erb +33 -0
  73. data/app/views/decidim/forms/questionnaires/responses/_sorting.html.erb +26 -0
  74. data/app/views/decidim/forms/questionnaires/responses/_title_and_description.html.erb +1 -0
  75. data/app/views/decidim/forms/questionnaires/show.html.erb +10 -10
  76. data/config/assets.rb +2 -2
  77. data/config/locales/ar.yml +2 -22
  78. data/config/locales/bg.yml +10 -36
  79. data/config/locales/ca-IT.yml +80 -74
  80. data/config/locales/ca.yml +80 -74
  81. data/config/locales/cs.yml +79 -76
  82. data/config/locales/de.yml +79 -72
  83. data/config/locales/el.yml +10 -36
  84. data/config/locales/en.yml +90 -84
  85. data/config/locales/es-MX.yml +82 -76
  86. data/config/locales/es-PY.yml +82 -76
  87. data/config/locales/es.yml +80 -74
  88. data/config/locales/eu.yml +78 -72
  89. data/config/locales/fi-plain.yml +78 -72
  90. data/config/locales/fi.yml +76 -70
  91. data/config/locales/fr-CA.yml +77 -68
  92. data/config/locales/fr.yml +77 -68
  93. data/config/locales/ga-IE.yml +4 -7
  94. data/config/locales/gl.yml +4 -22
  95. data/config/locales/hu.yml +4 -22
  96. data/config/locales/id-ID.yml +2 -22
  97. data/config/locales/it.yml +8 -40
  98. data/config/locales/ja.yml +87 -81
  99. data/config/locales/lb.yml +8 -36
  100. data/config/locales/lt.yml +10 -36
  101. data/config/locales/lv.yml +4 -22
  102. data/config/locales/nl.yml +10 -36
  103. data/config/locales/no.yml +10 -36
  104. data/config/locales/pl.yml +10 -36
  105. data/config/locales/pt-BR.yml +10 -36
  106. data/config/locales/pt.yml +8 -36
  107. data/config/locales/ro-RO.yml +29 -51
  108. data/config/locales/ru.yml +2 -9
  109. data/config/locales/sk.yml +2 -22
  110. data/config/locales/sl.yml +0 -5
  111. data/config/locales/sv.yml +89 -55
  112. data/config/locales/tr-TR.yml +8 -36
  113. data/config/locales/val-ES.yml +2 -0
  114. data/config/locales/zh-CN.yml +8 -36
  115. data/config/locales/zh-TW.yml +10 -36
  116. data/db/migrate/20190315203056_add_session_token_to_decidim_forms_answers.rb +1 -1
  117. data/db/migrate/20250314150250_rename_answer_to_response_in_decidim_forms.rb +30 -0
  118. data/db/migrate/20250319130003_change_question_types_in_questions.rb +14 -0
  119. data/lib/decidim/api/question_matrix_row_type.rb +13 -0
  120. data/lib/decidim/api/question_type.rb +4 -3
  121. data/lib/decidim/api/questionnaire_type.rb +1 -0
  122. data/lib/decidim/api/response_option_type.rb +13 -0
  123. data/lib/decidim/exporters/form_pdf.rb +33 -33
  124. data/lib/decidim/forms/api.rb +2 -1
  125. data/lib/decidim/forms/{download_your_data_user_answers_serializer.rb → download_your_data_user_responses_serializer.rb} +3 -3
  126. data/lib/decidim/forms/engine.rb +2 -2
  127. data/lib/decidim/forms/test/factories.rb +24 -24
  128. data/lib/decidim/forms/test/shared_examples/has_questionnaire.rb +176 -176
  129. data/lib/decidim/forms/test/shared_examples/manage_questionnaire_responses.rb +159 -0
  130. data/lib/decidim/forms/test/shared_examples/manage_questionnaires/add_display_conditions.rb +19 -19
  131. data/lib/decidim/forms/test/shared_examples/manage_questionnaires/add_questions.rb +44 -44
  132. data/lib/decidim/forms/test/shared_examples/manage_questionnaires/update_display_conditions.rb +10 -10
  133. data/lib/decidim/forms/test/shared_examples/manage_questionnaires/update_questions.rb +43 -140
  134. data/lib/decidim/forms/test/shared_examples/manage_questionnaires.rb +4 -4
  135. data/lib/decidim/forms/test.rb +1 -1
  136. data/lib/decidim/forms/user_responses_serializer.rb +110 -0
  137. data/lib/decidim/forms/version.rb +1 -1
  138. data/lib/decidim/forms.rb +2 -2
  139. metadata +48 -45
  140. data/app/cells/decidim/forms/answer_readonly_cell.rb +0 -9
  141. data/app/helpers/decidim/forms/admin/questionnaire_answers_helper.rb +0 -30
  142. data/app/models/decidim/forms/answer_choice.rb +0 -22
  143. data/app/queries/decidim/forms/questionnaire_user_answers.rb +0 -32
  144. data/app/views/decidim/forms/admin/questionnaires/_answer_option_template.html.erb +0 -7
  145. data/app/views/decidim/forms/admin/questionnaires/answers/index.html.erb +0 -49
  146. data/app/views/decidim/forms/admin/questionnaires/answers/show.html.erb +0 -43
  147. data/app/views/decidim/forms/questionnaires/_answer.html.erb +0 -61
  148. data/app/views/decidim/forms/questionnaires/answers/_files.html.erb +0 -1
  149. data/app/views/decidim/forms/questionnaires/answers/_long_answer.html.erb +0 -3
  150. data/app/views/decidim/forms/questionnaires/answers/_multiple_option.html.erb +0 -25
  151. data/app/views/decidim/forms/questionnaires/answers/_separator.html.erb +0 -1
  152. data/app/views/decidim/forms/questionnaires/answers/_short_answer.html.erb +0 -3
  153. data/app/views/decidim/forms/questionnaires/answers/_single_option.html.erb +0 -32
  154. data/app/views/decidim/forms/questionnaires/answers/_sorting.html.erb +0 -26
  155. data/app/views/decidim/forms/questionnaires/answers/_title_and_description.html.erb +0 -1
  156. data/lib/decidim/api/answer_option_type.rb +0 -13
  157. data/lib/decidim/forms/test/shared_examples/manage_questionnaire_answers.rb +0 -149
  158. data/lib/decidim/forms/user_answers_serializer.rb +0 -105
  159. /data/app/cells/decidim/forms/{answer_readonly → response_readonly}/show.erb +0 -0
@@ -2,19 +2,21 @@
2
2
  en:
3
3
  activemodel:
4
4
  attributes:
5
- answer:
6
- body: Answer
7
- choices: Choices
8
- selected_choices: Selected choices
9
5
  question:
10
6
  max_choices: Maximum number of choices
11
7
  question_type: Type
12
8
  questionnaire_question:
13
9
  mandatory: Mandatory
14
10
  max_characters: Character limit (leave to 0 if no limit)
11
+ response:
12
+ body: Response
13
+ choices: Choices
14
+ selected_choices: Selected choices
15
15
  errors:
16
16
  models:
17
- answer:
17
+ questionnaire:
18
+ request_invalid: There was a problem handling the request. Please try again.
19
+ response:
18
20
  attributes:
19
21
  add_documents:
20
22
  needs_to_be_reattached: Needs to be reattached
@@ -23,81 +25,57 @@ en:
23
25
  choices:
24
26
  missing: are not complete
25
27
  too_many: You can choose a maximum of %{count}.
26
- questionnaire:
27
- request_invalid: There was a problem handling the request. Please try again.
28
28
  decidim:
29
29
  download_your_data:
30
30
  help:
31
- answers:
32
- answer: The answer to the question
33
- id: The unique identifier of the answer
34
- question: The question that was answered
35
- questionnaire: The questionnaire that was answered
36
- user: The user who answered the questionnaire
31
+ responses:
32
+ id: The unique identifier of the response
33
+ question: The question that was responded
34
+ questionnaire: The questionnaire that was responded
35
+ response: The response to the question
36
+ user: The user who responded the questionnaire
37
37
  show:
38
- answers: Answers export
39
- survey_user_answers: Survey user answers
38
+ responses: Responses export
39
+ survey_user_responses: Survey user responses
40
40
  forms:
41
41
  admin:
42
42
  models:
43
43
  components:
44
- allow_answers: Allow answers
45
- allow_editing_answers: Allow registered users to edit own survey answers
46
- allow_unregistered: Allow unregistered users to answer the survey
47
- allow_unregistered_help: If active, no login will be required in order to answer the survey. This may lead to poor or unreliable data and it will be more vulnerable to automated attacks. Use with caution! Mind that a participant could answer the same survey multiple times, by using different browsers or the "private browsing" feature of her web browser.
44
+ allow_editing_responses: Allow registered users to edit own survey responses
45
+ allow_responses: Allow responses
46
+ allow_unregistered: Allow unregistered users to response the survey
47
+ allow_unregistered_help: If active, no login will be required in order to response the survey. This may lead to poor or unreliable data and it will be more vulnerable to automated attacks. Use with caution! Mind that a participant could response the same survey multiple times, by using different browsers or the "private browsing" feature of her web browser.
48
48
  announcement: Announcement
49
- clean_after_publish: Delete answers when publishing the survey
49
+ clean_after_publish: Delete responses when publishing the survey
50
50
  description: Description
51
- ends_at: Answers accepted until
51
+ ends_at: Responses accepted until
52
52
  ends_at_help: Leave blank for no specific date
53
- starts_at: Answers accepted from
53
+ starts_at: Responses accepted from
54
54
  starts_at_help: Leave blank for no specific date
55
55
  tos: Terms of service
56
56
  questionnaires:
57
57
  actions:
58
- back: Back to responses
59
- publish_answers: Publish answers
60
- show: Show responses
61
- answer_option:
62
- answer_option: Answer option
63
- free_text: Free text
64
- remove: Remove
65
- statement: Statement
66
- answers:
67
- actions:
68
- back: Back to responses
69
- export: Export
70
- next: Next ›
71
- previous: "‹ Prev"
72
- show: Show answers
73
- empty: No answers yet
74
- export:
75
- answer:
76
- title: 'Response #%{number}'
77
- export_response:
78
- title: survey_user_answers_%{token}
79
- index:
80
- title: "%{total} total responses"
81
- show:
82
- title: 'Answer #%{number}'
58
+ back: Back to questions
59
+ publish_responses: Publish responses
60
+ show: Responses
83
61
  display_condition:
84
- answer_option: Answer option
85
62
  condition_question: Question
86
63
  condition_type: Condition
87
64
  condition_types:
88
- answered: Answered
89
65
  equal: Equal
90
66
  match: Includes text
91
- not_answered: Not answered
92
67
  not_equal: Not equal
68
+ not_responded: Not responded
69
+ responded: Responded
93
70
  condition_value: Included text
94
71
  display_condition: Display condition
95
72
  mandatory: This condition needs to be satisfied always regardless the status of other conditions
96
73
  remove: Remove
74
+ response_option: Response option
97
75
  save_warning: Remember to save the form before configuring display conditions
98
- select_answer_option: Select answer option
99
76
  select_condition_question: Select a question
100
77
  select_condition_type: Select a condition type
78
+ select_response_option: Select response option
101
79
  edit:
102
80
  save: Save
103
81
  title: Edit questionnaire
@@ -118,45 +96,73 @@ en:
118
96
  remove: Remove
119
97
  statement: Statement
120
98
  question:
121
- add_answer_option: Add answer option
122
99
  add_display_condition: Add display condition
123
100
  add_display_condition_info: Save the form to configure display conditions
124
101
  add_matrix_row: Add row
102
+ add_response_option: Add response option
125
103
  any: Any
126
104
  collapse: Collapse
127
105
  description: Description
106
+ down: Down
128
107
  expand: Expand
129
108
  question: Question
130
109
  remove: Remove
131
110
  statement: Statement
111
+ up: Up
132
112
  questions_form:
133
- already_answered_warning: The form is already answered by some users so you cannot modify its questions.
113
+ already_responded_warning: The form is already responded by some users so you cannot modify its questions.
134
114
  collapse: Collapse all questions
135
115
  expand: Expand all questions
136
- unpublished_warning: The form is not published. You may modify its questions, but doing so will delete current answers.
116
+ unpublished_warning: The form is not published. You may modify its questions, but doing so will delete current responses.
137
117
  update:
138
118
  success: Survey questions successfully saved.
119
+ response_option:
120
+ free_text: Free text
121
+ remove: Remove
122
+ response_option: Response option
123
+ statement: Statement
124
+ responses:
125
+ actions:
126
+ back: Back to responses
127
+ export: Export
128
+ next: Next ›
129
+ previous: "‹ Prev"
130
+ show: Show responses
131
+ empty: No responses yet
132
+ export:
133
+ response:
134
+ title: 'Response #%{number}'
135
+ export_response:
136
+ title: survey_user_responses_%{token}
137
+ index:
138
+ title: "%{total} total responses"
139
+ show:
140
+ title: 'Response #%{number}'
139
141
  separator:
142
+ down: Down
140
143
  remove: Remove
141
144
  separator: Separator
145
+ up: Up
142
146
  title_and_description:
143
147
  collapse: Collapse
144
148
  description: Description
149
+ down: Down
145
150
  expand: Expand
146
151
  remove: Remove
147
152
  title: Title
148
153
  title_and_description: Title and description
154
+ up: Up
149
155
  update:
150
156
  invalid: There was a problem saving the form.
151
157
  success: Form successfully saved.
152
158
  admin_log:
153
159
  question:
154
- publish_answers: "%{user_name} published the %{resource_name} question's answers on the %{space_name} space"
155
- unpublish_answers: "%{user_name} unpublished the %{resource_name} question's answers on the %{space_name} space"
160
+ publish_responses: "%{user_name} published the %{resource_name} question's responses on the %{space_name} space"
161
+ unpublish_responses: "%{user_name} unpublished the %{resource_name} question's responses on the %{space_name} space"
156
162
  questionnaire:
157
163
  update: "%{user_name} updated the %{resource_name} questionnaire"
158
164
  errors:
159
- answer:
165
+ response:
160
166
  body: Body cannot be blank
161
167
  images:
162
168
  dimensions: "%{width} x %{height} px"
@@ -165,41 +171,29 @@ en:
165
171
  resize_to_fit: This image will be resized to fit %{dimensions}.
166
172
  question_types:
167
173
  files: Files
168
- long_answer: Long answer
174
+ long_response: Long response
169
175
  matrix_multiple: Matrix (Multiple option)
170
176
  matrix_single: Matrix (Single option)
171
177
  multiple_option: Multiple option
172
- short_answer: Short answer
178
+ short_response: Short response
173
179
  single_option: Single option
174
180
  sorting: Sorting
175
181
  title_and_description: Title and description
176
- questionnaire_answer_presenter:
182
+ questionnaire_response_presenter:
177
183
  download_attachment: Download attachment
178
184
  questionnaires:
179
- answer:
180
- invalid: There was a problem answering the form.
181
- max_choices_alert: There are too many choices selected
182
- success: Form successfully answered.
183
185
  question:
184
186
  max_choices: 'Max choices: %{n}'
187
+ response:
188
+ invalid: There was a problem responding the form.
189
+ max_choices_alert: There are too many choices selected
190
+ success: Form successfully responded.
185
191
  show:
186
- answer_questionnaire:
187
- already_have_an_account?: Already have an account?
188
- are_you_new?: New user?
189
- sign_in_description: Log in to take the survey
190
- sign_up_description: Create a participant account to take the survey
191
- title: Answer the form
192
192
  current_step: Step %{step}
193
193
  empty: No questions configured for this form yet.
194
194
  of_total_steps: of %{total_steps}
195
- questionnaire_answered:
196
- body: You have already answered this form.
197
- title: Already answered
198
- questionnaire_answered_edit:
199
- body: You have already answered this form. %{link}
200
- edit: Edit your answers
201
195
  questionnaire_closed:
202
- body: The form is closed and cannot be answered.
196
+ body: The form is closed and cannot be responded.
203
197
  title: Form closed
204
198
  questionnaire_for_private_users:
205
199
  body: The form is available only for private users
@@ -209,20 +203,32 @@ en:
209
203
  title: JavaScript is disabled
210
204
  questionnaire_not_published:
211
205
  body: This form is not published yet.
206
+ questionnaire_responded:
207
+ body: You have already responded this form.
208
+ title: Already responded
209
+ questionnaire_responded_edit:
210
+ body: You have already responded this form. %{link}
211
+ edit: Edit your responses
212
+ response_questionnaire:
213
+ already_have_an_account?: Already have an account?
214
+ are_you_new?: New user?
215
+ sign_in_description: Log in to take the survey
216
+ sign_up_description: Create a participant account to take the survey
217
+ title: Response the form
212
218
  tos_agreement: By participating you accept its Terms of Service
213
219
  step_navigation:
214
220
  show:
215
- are_you_sure_edit_guest: If you want to be able to edit your answers afterwards, then you need to log in or create an account.
216
- are_you_sure_no_edit: This action cannot be undone and you will not be able to edit your answers. Are you sure?
221
+ are_you_sure_edit_guest: If you want to be able to edit your responses afterwards, then you need to log in or create an account.
222
+ are_you_sure_no_edit: This action cannot be undone and you will not be able to edit your responses. Are you sure?
217
223
  back: Back
218
224
  continue: Continue
219
- disallowed: You are not allowed to edit your answers.
225
+ disallowed: You are not allowed to edit your responses.
220
226
  submit: Submit
221
- user_answers_serializer:
222
- body: Answer
227
+ user_responses_serializer:
228
+ body: Response
223
229
  completion: Completion
224
- created_at: Answered on
225
- id: Answer ID
230
+ created_at: Responded on
231
+ id: Response ID
226
232
  ip_hash: IP Hash
227
233
  question: Question
228
234
  registered: Registered
@@ -2,19 +2,21 @@
2
2
  es-MX:
3
3
  activemodel:
4
4
  attributes:
5
- answer:
6
- body: Responder
7
- choices: Opciones
8
- selected_choices: Opciones seleccionadas
9
5
  question:
10
6
  max_choices: Número máximo de opciones
11
7
  question_type: Tipo
12
8
  questionnaire_question:
13
9
  mandatory: Obligatorio
14
10
  max_characters: Límite de caracteres (dejar a 0 si no hay límite)
11
+ response:
12
+ body: Respuesta
13
+ choices: Opciones
14
+ selected_choices: Opciones seleccionadas
15
15
  errors:
16
16
  models:
17
- answer:
17
+ questionnaire:
18
+ request_invalid: Se ha producido un problema al procesar la solicitud. Por favor, vuelve a intentarlo.
19
+ response:
18
20
  attributes:
19
21
  add_documents:
20
22
  needs_to_be_reattached: Es necesario volver a adjuntar el fichero
@@ -23,81 +25,57 @@ es-MX:
23
25
  choices:
24
26
  missing: no están completas
25
27
  too_many: Puedes elegir un máximo de %{count} opciones.
26
- questionnaire:
27
- request_invalid: Se ha producido un problema al procesar la solicitud. Por favor, vuelve a intentarlo.
28
28
  decidim:
29
29
  download_your_data:
30
30
  help:
31
- answers:
32
- answer: La respuesta a la pregunta
33
- id: El identificador único de la respuesta
31
+ responses:
32
+ id: El identificador único del resultado
34
33
  question: La pregunta que se respondió
35
34
  questionnaire: La encuesta que fue respondida
36
- user: La usuaria que respondió a la encuesta
35
+ response: La respuesta a la pregunta
36
+ user: La usuaria que respondió al cuestionario
37
37
  show:
38
- answers: Exportar las respuestas
39
- survey_user_answers: Respuestas de las usuarias a la encuesta
38
+ responses: Exportar respuestas
39
+ survey_user_responses: Respuestas de las usuarias a la encuesta
40
40
  forms:
41
41
  admin:
42
42
  models:
43
43
  components:
44
- allow_answers: Permitir respuestas
45
- allow_editing_answers: Permitir a las usuarias registradas editar sus respuestas en la encuesta
44
+ allow_editing_responses: Permitir a las usuarias registradas editar sus respuestas en la encuesta
45
+ allow_responses: Permitir respuestas
46
46
  allow_unregistered: Permitir a las usuarias no registradas responder a la encuesta
47
47
  allow_unregistered_help: Si está activo, no será necesario iniciar sesión para responder a la encuesta. Esto puede llevar a datos pobres o poco fiables y será más vulnerable a ataques automatizados. ¡Usar con precaución! Es importante que un participante pueda responder a la misma encuesta varias veces, utilizando diferentes navegadores o la función de "navegación privada" de su navegador web.
48
48
  announcement: Aviso
49
- clean_after_publish: Borrar respuestas al publicar la encuesta
49
+ clean_after_publish: Borrar las respuestas al publicar la encuesta
50
50
  description: Descripción
51
51
  ends_at: Respuestas aceptadas hasta
52
52
  ends_at_help: Dejar en blanco si no hay ninguna fecha específica
53
- starts_at: Respuestas aceptadas desde
53
+ starts_at: Respuestas aceptadas hasta
54
54
  starts_at_help: Dejar en blanco si no hay ninguna fecha específica
55
55
  tos: Términos y condiciones de uso
56
56
  questionnaires:
57
57
  actions:
58
- back: Volver a las respuestas
59
- publish_answers: Publicar respuestas
60
- show: Mostrar las respuestas
61
- answer_option:
62
- answer_option: Opción de respuesta
63
- free_text: Texto libre
64
- remove: Borrar
65
- statement: Declaración
66
- answers:
67
- actions:
68
- back: Volver a las respuestas
69
- export: Exportar
70
- next: Siguiente ›
71
- previous: "‹ Anterior"
72
- show: Mostrar las respuestas
73
- empty: Aún no hay respuestas
74
- export:
75
- answer:
76
- title: 'Respuesta #%{number}'
77
- export_response:
78
- title: survey_user_answers_%{token}
79
- index:
80
- title: "%{total} respuestas en total"
81
- show:
82
- title: 'Respuesta #%{number}'
58
+ back: Volver a las preguntas
59
+ publish_responses: Publicar las respuestas
60
+ show: Respuestas
83
61
  display_condition:
84
- answer_option: Opción de respuesta
85
62
  condition_question: Pregunta
86
63
  condition_type: Condición
87
64
  condition_types:
88
- answered: Contestada
89
65
  equal: Igual a
90
66
  match: Incluye texto
91
- not_answered: No contestada
92
67
  not_equal: No es igual
68
+ not_responded: Sin respuesta
69
+ responded: Respondida
93
70
  condition_value: Texto incluido
94
71
  display_condition: Condiciones de visualización
95
72
  mandatory: Esta condición debe cumplirse siempre independientemente del estado de otras condiciones
96
73
  remove: Eliminar
74
+ response_option: Opción de respuesta
97
75
  save_warning: Recuerda guardar la encuesta antes de configurar las condiciones de visualización
98
- select_answer_option: Eliminar la opción de respuesta
99
76
  select_condition_question: Seleccionar una pregunta
100
77
  select_condition_type: Seleccionar un tipo de confirmación
78
+ select_response_option: Seleccionar opción de respuesta
101
79
  edit:
102
80
  save: Guardar
103
81
  title: Editar el cuestionario
@@ -118,45 +96,73 @@ es-MX:
118
96
  remove: Retirar
119
97
  statement: Declaración
120
98
  question:
121
- add_answer_option: Añadir opción de respuesta
122
99
  add_display_condition: Agregar condición de visualización
123
100
  add_display_condition_info: Guardar la encuesta para configurar las condiciones de visualización
124
101
  add_matrix_row: Añadir fila
102
+ add_response_option: Añadir opción de respuesta
125
103
  any: Alguna
126
104
  collapse: Contraer
127
105
  description: Descripción
106
+ down: Abajo
128
107
  expand: Expandir
129
108
  question: Pregunta
130
109
  remove: Borrar
131
110
  statement: Declaración
111
+ up: Arriba
132
112
  questions_form:
133
- already_answered_warning: No puedes modificar las preguntas porque algunas participantes ya han respondido el formulario.
113
+ already_responded_warning: La encuesta ya está contestada por algunas usuarias, así que no puedes modificar sus preguntas.
134
114
  collapse: Contraer todas las preguntas
135
115
  expand: Desplegar todas las preguntas
136
116
  unpublished_warning: El formulario no está publicado. Puedes modificar sus preguntas, pero al hacerlo se borrarán las respuestas actuales.
137
117
  update:
138
118
  success: Pregunta/s añadida/s correctamente a la encuesta.
119
+ response_option:
120
+ free_text: Texto libre
121
+ remove: Eliminar
122
+ response_option: Opción de respuesta
123
+ statement: Enunciado
124
+ responses:
125
+ actions:
126
+ back: Volver a las respuestas
127
+ export: Exportar
128
+ next: Siguiente ›
129
+ previous: "‹ Anterior"
130
+ show: Mostrar las respuestas
131
+ empty: Aún no hay respuestas
132
+ export:
133
+ response:
134
+ title: 'Respuesta #%{number}'
135
+ export_response:
136
+ title: repuestas_usuaria_encuesta_%{token}
137
+ index:
138
+ title: "%{total} respuestas en total"
139
+ show:
140
+ title: 'Respuesta #%{number}'
139
141
  separator:
142
+ down: Bajar
140
143
  remove: Eliminar
141
144
  separator: Separador
145
+ up: Subir
142
146
  title_and_description:
143
147
  collapse: Contraer
144
148
  description: Descripción
149
+ down: Bajar
145
150
  expand: Expandir
146
151
  remove: Eliminar
147
152
  title: Título
148
153
  title_and_description: Título y descripción
154
+ up: Subir
149
155
  update:
150
156
  invalid: Ha habido errores al guardar el cuestionario.
151
157
  success: Formulario guardado correctamente.
152
158
  admin_log:
153
159
  question:
154
- publish_answers: "%{user_name} publicó respuestas a las preguntas de la encuesta %{resource_name} en el espacio de participación %{space_name}"
155
- unpublish_answers: "%{user_name} despublicó respuestas a las preguntas de la encuesta %{resource_name} en el espacio de participación %{space_name}"
160
+ publish_responses: "%{user_name} publicó las respuestas a las preguntas de la encuesta %{resource_name} en el espacio de participación %{space_name}"
161
+ unpublish_responses: "%{user_name} despublicó las respuestas a las preguntas de la encuesta %{resource_name} en el espacio de participación %{space_name}"
156
162
  questionnaire:
157
163
  update: "%{user_name} actualizó el cuestionario %{resource_name}"
158
164
  errors:
159
- answer:
165
+ response:
160
166
  body: El campo no puede estar en blanco
161
167
  images:
162
168
  dimensions: "%{width} x %{height} px"
@@ -165,41 +171,29 @@ es-MX:
165
171
  resize_to_fit: Esta imagen será redimensionada para ajustarse a %{dimensions}.
166
172
  question_types:
167
173
  files: Archivos
168
- long_answer: Respuesta larga
174
+ long_response: Respuesta larga
169
175
  matrix_multiple: Matriz (opción múltiple)
170
176
  matrix_single: Matriz (opción única)
171
177
  multiple_option: Opción múltiple
172
- short_answer: Respuesta corta
178
+ short_response: Respuesta larga
173
179
  single_option: Opción única
174
180
  sorting: Ordenación
175
181
  title_and_description: Titulo y descripción
176
- questionnaire_answer_presenter:
182
+ questionnaire_response_presenter:
177
183
  download_attachment: Descargar el archivo adjunto
178
184
  questionnaires:
179
- answer:
180
- invalid: Ha habido errores al responder al cuestionario.
181
- max_choices_alert: Has seleccionado demasiadas opciones
182
- success: Has respondido al cuestionario con éxito.
183
185
  question:
184
186
  max_choices: 'Opciones máximas: %{n}'
187
+ response:
188
+ invalid: Se ha producido un error al responder el formulario.
189
+ max_choices_alert: Has seleccionado demasiadas opciones
190
+ success: El formulario se ha respondido correctamente.
185
191
  show:
186
- answer_questionnaire:
187
- already_have_an_account?: '¿Ya tienes una cuenta?'
188
- are_you_new?: '¿Eres una nueva usuaria?'
189
- sign_in_description: Inicia tu sesión para responder la encuesta
190
- sign_up_description: Crea una cuenta de participante para responder la encuesta
191
- title: Responde al cuestionario
192
192
  current_step: Paso %{step}
193
193
  empty: Aún no hay preguntas configuradas para este formulario.
194
194
  of_total_steps: de %{total_steps}
195
- questionnaire_answered:
196
- body: Ya has respondido este cuestionario.
197
- title: Ya has respondido
198
- questionnaire_answered_edit:
199
- body: 'Ya has respondido a este formulario: %{link}'
200
- edit: Editar las respuestas
201
195
  questionnaire_closed:
202
- body: El cuestionario está cerrado y ya no puedes responder.
196
+ body: El formulario está cerrado y no puedes responder.
203
197
  title: Cuestionario cerrado
204
198
  questionnaire_for_private_users:
205
199
  body: El cuestionario está disponible solo para usuarios privados
@@ -209,20 +203,32 @@ es-MX:
209
203
  title: Javascript está desactivado
210
204
  questionnaire_not_published:
211
205
  body: Este formulario no se ha publicado todavía.
206
+ questionnaire_responded:
207
+ body: Ya has respondido a este formulario.
208
+ title: Ya has respondido
209
+ questionnaire_responded_edit:
210
+ body: 'Ya has respondido a este formulario: %{link}'
211
+ edit: Edita tus respuestas
212
+ response_questionnaire:
213
+ already_have_an_account?: '¿Ya tienes una cuenta?'
214
+ are_you_new?: '¿Eres una nueva usuaria?'
215
+ sign_in_description: Inicia tu sesión para responder la encuesta
216
+ sign_up_description: Crea una cuenta de participante para responder la encuesta
217
+ title: Responder al formulario
212
218
  tos_agreement: Al responder aceptas los Términos y condiciones de uso
213
219
  step_navigation:
214
220
  show:
215
- are_you_sure_edit_guest: Si quieres poder editar tus respuestas más tarde, necesitas inicies tu sesión o crees una cuenta.
216
- are_you_sure_no_edit: Esta acción no se puede deshacer y no podrás editar tus respuestas. ¿Seguro que quieres continuar?
221
+ are_you_sure_edit_guest: Si quieres poder editar tus respuestas más tarde, es necesario que inicies tu sesión o te crees una cuenta.
222
+ are_you_sure_no_edit: Esta acción es irreversible y no podrás editar tus respuestas posteriormente. ¿Seguro que quieres continuar?
217
223
  back: Atrás
218
224
  continue: Continuar
219
225
  disallowed: No puedes editar tus respuestas.
220
226
  submit: Enviar
221
- user_answers_serializer:
227
+ user_responses_serializer:
222
228
  body: Respuesta
223
229
  completion: Finalización
224
- created_at: Respondido en
225
- id: ID de respuesta
230
+ created_at: Respondido el
231
+ id: ID de la repuesta
226
232
  ip_hash: Hash de la dirección IP
227
233
  question: Pregunta
228
234
  registered: Registrada