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.
- checksums.yaml +4 -4
- data/README.md +10 -10
- data/app/cells/decidim/forms/matrix_readonly/show.erb +1 -1
- data/app/cells/decidim/forms/matrix_readonly_cell.rb +3 -3
- data/app/cells/decidim/forms/question_readonly/show.erb +5 -5
- data/app/cells/decidim/forms/question_readonly/title_and_description.erb +3 -3
- data/app/cells/decidim/forms/response_readonly_cell.rb +9 -0
- data/app/cells/decidim/forms/step_navigation/show.erb +3 -3
- data/app/cells/decidim/forms/step_navigation_cell.rb +3 -3
- data/app/commands/decidim/forms/admin/update_questions.rb +6 -6
- data/app/commands/decidim/forms/{answer_questionnaire.rb → response_questionnaire.rb} +35 -35
- data/app/controllers/decidim/forms/admin/concerns/has_questionnaire.rb +12 -12
- data/app/controllers/decidim/forms/admin/concerns/{has_questionnaire_answers.rb → has_questionnaire_responses.rb} +23 -19
- data/app/controllers/decidim/forms/concerns/has_questionnaire.rb +38 -33
- data/app/forms/decidim/forms/admin/display_condition_form.rb +14 -14
- data/app/forms/decidim/forms/admin/question_form.rb +3 -3
- data/app/forms/decidim/forms/admin/{answer_option_form.rb → response_option_form.rb} +3 -3
- data/app/forms/decidim/forms/questionnaire_form.rb +8 -9
- data/app/forms/decidim/forms/{answer_choice_form.rb → response_choice_form.rb} +5 -5
- data/app/forms/decidim/forms/{answer_form.rb → response_form.rb} +9 -9
- data/app/helpers/decidim/forms/admin/application_helper.rb +2 -2
- data/app/helpers/decidim/forms/admin/concerns/{has_questionnaire_answers_pagination_helper.rb → has_questionnaire_responses_pagination_helper.rb} +4 -4
- data/app/helpers/decidim/forms/admin/concerns/{has_questionnaire_answers_url_helper.rb → has_questionnaire_responses_url_helper.rb} +5 -5
- data/app/helpers/decidim/forms/admin/questionnaire_responses_helper.rb +32 -0
- data/app/helpers/decidim/forms/application_helper.rb +1 -2
- data/app/jobs/decidim/forms/{export_questionnaire_answers_job.rb → export_questionnaire_responses_job.rb} +5 -5
- data/app/models/decidim/forms/display_condition.rb +20 -20
- data/app/models/decidim/forms/question.rb +14 -13
- data/app/models/decidim/forms/question_matrix_row.rb +1 -1
- data/app/models/decidim/forms/questionnaire.rb +11 -6
- data/app/models/decidim/forms/{answer.rb → response.rb} +9 -9
- data/app/models/decidim/forms/response_choice.rb +22 -0
- data/app/models/decidim/forms/{answer_option.rb → response_option.rb} +5 -5
- data/app/packs/entrypoints/decidim_forms_admin.js +3 -3
- data/app/packs/src/decidim/forms/admin/collapsible_questions.js +12 -10
- data/app/packs/src/decidim/forms/admin/forms.js +35 -35
- data/app/packs/src/decidim/forms/admin/{publish_answers_buttons.js → publish_responses_buttons.js} +12 -12
- data/app/packs/src/decidim/forms/display_conditions.component.js +12 -12
- data/app/packs/src/decidim/forms/forms.js +8 -29
- data/app/packs/stylesheets/decidim/forms/forms.scss +2 -2
- data/app/presenters/decidim/forms/admin/questionnaire_participant_presenter.rb +13 -13
- data/app/presenters/decidim/forms/admin/{questionnaire_answer_presenter.rb → questionnaire_response_presenter.rb} +15 -15
- data/app/presenters/decidim/forms/admin_log/question_presenter.rb +3 -3
- data/app/presenters/decidim/forms/{answer_option_presenter.rb → response_option_presenter.rb} +2 -2
- data/app/queries/decidim/forms/questionnaire_participant.rb +5 -5
- data/app/queries/decidim/forms/questionnaire_participants.rb +6 -6
- data/app/queries/decidim/forms/questionnaire_user_responses.rb +32 -0
- data/app/views/decidim/forms/admin/questionnaires/_display_condition.html.erb +9 -9
- data/app/views/decidim/forms/admin/questionnaires/_form.html.erb +2 -2
- data/app/views/decidim/forms/admin/questionnaires/_matrix_row.html.erb +3 -3
- data/app/views/decidim/forms/admin/questionnaires/_question.html.erb +21 -11
- data/app/views/decidim/forms/admin/questionnaires/_questions_form.html.erb +13 -41
- data/app/views/decidim/forms/admin/questionnaires/{_answer_option.html.erb → _response_option.html.erb} +7 -7
- data/app/views/decidim/forms/admin/questionnaires/_response_option_template.html.erb +7 -0
- data/app/views/decidim/forms/admin/questionnaires/_separator.html.erb +11 -1
- data/app/views/decidim/forms/admin/questionnaires/_title_and_description.html.erb +12 -2
- data/app/views/decidim/forms/admin/questionnaires/edit.html.erb +1 -1
- data/app/views/decidim/forms/admin/questionnaires/edit_questions.html.erb +8 -8
- data/app/views/decidim/forms/admin/questionnaires/responses/index.html.erb +80 -0
- data/app/views/decidim/forms/admin/questionnaires/responses/show.html.erb +43 -0
- data/app/views/decidim/forms/questionnaires/_questionnaire.html.erb +22 -26
- data/app/views/decidim/forms/questionnaires/_questionnaire_readonly.html.erb +8 -3
- data/app/views/decidim/forms/questionnaires/_response.html.erb +61 -0
- data/app/views/decidim/forms/questionnaires/edit.html.erb +2 -2
- data/app/views/decidim/forms/questionnaires/responses/_files.html.erb +1 -0
- data/app/views/decidim/forms/questionnaires/responses/_long_response.html.erb +3 -0
- data/app/views/decidim/forms/questionnaires/{answers → responses}/_matrix_multiple.html.erb +16 -15
- data/app/views/decidim/forms/questionnaires/{answers → responses}/_matrix_single.html.erb +17 -16
- data/app/views/decidim/forms/questionnaires/responses/_multiple_option.html.erb +26 -0
- data/app/views/decidim/forms/questionnaires/responses/_separator.html.erb +1 -0
- data/app/views/decidim/forms/questionnaires/responses/_short_response.html.erb +3 -0
- data/app/views/decidim/forms/questionnaires/responses/_single_option.html.erb +33 -0
- data/app/views/decidim/forms/questionnaires/responses/_sorting.html.erb +26 -0
- data/app/views/decidim/forms/questionnaires/responses/_title_and_description.html.erb +1 -0
- data/app/views/decidim/forms/questionnaires/show.html.erb +10 -10
- data/config/assets.rb +2 -2
- data/config/locales/ar.yml +2 -22
- data/config/locales/bg.yml +10 -36
- data/config/locales/ca-IT.yml +80 -74
- data/config/locales/ca.yml +80 -74
- data/config/locales/cs.yml +79 -76
- data/config/locales/de.yml +79 -72
- data/config/locales/el.yml +10 -36
- data/config/locales/en.yml +90 -84
- data/config/locales/es-MX.yml +82 -76
- data/config/locales/es-PY.yml +82 -76
- data/config/locales/es.yml +80 -74
- data/config/locales/eu.yml +78 -72
- data/config/locales/fi-plain.yml +78 -72
- data/config/locales/fi.yml +76 -70
- data/config/locales/fr-CA.yml +77 -68
- data/config/locales/fr.yml +77 -68
- data/config/locales/ga-IE.yml +4 -7
- data/config/locales/gl.yml +4 -22
- data/config/locales/hu.yml +4 -22
- data/config/locales/id-ID.yml +2 -22
- data/config/locales/it.yml +8 -40
- data/config/locales/ja.yml +87 -81
- data/config/locales/lb.yml +8 -36
- data/config/locales/lt.yml +10 -36
- data/config/locales/lv.yml +4 -22
- data/config/locales/nl.yml +10 -36
- data/config/locales/no.yml +10 -36
- data/config/locales/pl.yml +10 -36
- data/config/locales/pt-BR.yml +10 -36
- data/config/locales/pt.yml +8 -36
- data/config/locales/ro-RO.yml +29 -51
- data/config/locales/ru.yml +2 -9
- data/config/locales/sk.yml +2 -22
- data/config/locales/sl.yml +0 -5
- data/config/locales/sv.yml +89 -55
- data/config/locales/tr-TR.yml +8 -36
- data/config/locales/val-ES.yml +2 -0
- data/config/locales/zh-CN.yml +8 -36
- data/config/locales/zh-TW.yml +10 -36
- data/db/migrate/20190315203056_add_session_token_to_decidim_forms_answers.rb +1 -1
- data/db/migrate/20250314150250_rename_answer_to_response_in_decidim_forms.rb +30 -0
- data/db/migrate/20250319130003_change_question_types_in_questions.rb +14 -0
- data/lib/decidim/api/question_matrix_row_type.rb +13 -0
- data/lib/decidim/api/question_type.rb +4 -3
- data/lib/decidim/api/questionnaire_type.rb +1 -0
- data/lib/decidim/api/response_option_type.rb +13 -0
- data/lib/decidim/exporters/form_pdf.rb +33 -33
- data/lib/decidim/forms/api.rb +2 -1
- data/lib/decidim/forms/{download_your_data_user_answers_serializer.rb → download_your_data_user_responses_serializer.rb} +3 -3
- data/lib/decidim/forms/engine.rb +2 -2
- data/lib/decidim/forms/test/factories.rb +24 -24
- data/lib/decidim/forms/test/shared_examples/has_questionnaire.rb +176 -176
- data/lib/decidim/forms/test/shared_examples/manage_questionnaire_responses.rb +159 -0
- data/lib/decidim/forms/test/shared_examples/manage_questionnaires/add_display_conditions.rb +19 -19
- data/lib/decidim/forms/test/shared_examples/manage_questionnaires/add_questions.rb +44 -44
- data/lib/decidim/forms/test/shared_examples/manage_questionnaires/update_display_conditions.rb +10 -10
- data/lib/decidim/forms/test/shared_examples/manage_questionnaires/update_questions.rb +43 -140
- data/lib/decidim/forms/test/shared_examples/manage_questionnaires.rb +4 -4
- data/lib/decidim/forms/test.rb +1 -1
- data/lib/decidim/forms/user_responses_serializer.rb +110 -0
- data/lib/decidim/forms/version.rb +1 -1
- data/lib/decidim/forms.rb +2 -2
- metadata +48 -45
- data/app/cells/decidim/forms/answer_readonly_cell.rb +0 -9
- data/app/helpers/decidim/forms/admin/questionnaire_answers_helper.rb +0 -30
- data/app/models/decidim/forms/answer_choice.rb +0 -22
- data/app/queries/decidim/forms/questionnaire_user_answers.rb +0 -32
- data/app/views/decidim/forms/admin/questionnaires/_answer_option_template.html.erb +0 -7
- data/app/views/decidim/forms/admin/questionnaires/answers/index.html.erb +0 -49
- data/app/views/decidim/forms/admin/questionnaires/answers/show.html.erb +0 -43
- data/app/views/decidim/forms/questionnaires/_answer.html.erb +0 -61
- data/app/views/decidim/forms/questionnaires/answers/_files.html.erb +0 -1
- data/app/views/decidim/forms/questionnaires/answers/_long_answer.html.erb +0 -3
- data/app/views/decidim/forms/questionnaires/answers/_multiple_option.html.erb +0 -25
- data/app/views/decidim/forms/questionnaires/answers/_separator.html.erb +0 -1
- data/app/views/decidim/forms/questionnaires/answers/_short_answer.html.erb +0 -3
- data/app/views/decidim/forms/questionnaires/answers/_single_option.html.erb +0 -32
- data/app/views/decidim/forms/questionnaires/answers/_sorting.html.erb +0 -26
- data/app/views/decidim/forms/questionnaires/answers/_title_and_description.html.erb +0 -1
- data/lib/decidim/api/answer_option_type.rb +0 -13
- data/lib/decidim/forms/test/shared_examples/manage_questionnaire_answers.rb +0 -149
- data/lib/decidim/forms/user_answers_serializer.rb +0 -105
- /data/app/cells/decidim/forms/{answer_readonly → response_readonly}/show.erb +0 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<div class="response-questionnaire__sorting-container js-sortable-check-box-collection">
|
|
2
|
+
<%
|
|
3
|
+
# This is a block that aims to identify the order to the response questions, and if there is an user response, use that
|
|
4
|
+
# to order the date that needs to be displayed. It is done like this to help with edit user response form
|
|
5
|
+
%>
|
|
6
|
+
<% ordering = response.question.response_options.pluck(:id) %>
|
|
7
|
+
<% if response.selected_choices.present? %>
|
|
8
|
+
<% ordering = response.selected_choices.map(&:response_option_id) %>
|
|
9
|
+
<% end %>
|
|
10
|
+
|
|
11
|
+
<% ids_for_order = ordering.map.with_index { |id, index| "#{id}=#{index + 1}" }.join(", ") %>
|
|
12
|
+
|
|
13
|
+
<% response.question.reload.response_options.reorder(Arel.sql("POSITION(id::text in '#{ids_for_order}')")).each_with_index do |response_option, idx| %>
|
|
14
|
+
<% choice = response.selected_choices.find { |choice| choice.response_option_id == response_option.id } %>
|
|
15
|
+
|
|
16
|
+
<div class="response-questionnaire__sorting js-collection-input" role="button">
|
|
17
|
+
<%= translated_attribute(response_option.body) %>
|
|
18
|
+
|
|
19
|
+
<%= icon "drag-move-2-line" %>
|
|
20
|
+
|
|
21
|
+
<%= hidden_field_tag "questionnaire[responses][#{response_idx}][choices][#{idx}][position]", choice.try(:position) %>
|
|
22
|
+
<%= hidden_field_tag "questionnaire[responses][#{response_idx}][choices][#{idx}][body]", translated_attribute(response_option.body) %>
|
|
23
|
+
<%= hidden_field_tag "questionnaire[responses][#{response_idx}][choices][#{idx}][response_option_id]", response_option.id %>
|
|
24
|
+
</div>
|
|
25
|
+
<% end %>
|
|
26
|
+
</div>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<%= response_form.hidden_field :body, value: "title-and-description", id: field_id, disabled: %>
|
|
@@ -29,17 +29,17 @@
|
|
|
29
29
|
<% end %>
|
|
30
30
|
|
|
31
31
|
<section>
|
|
32
|
-
<% if
|
|
33
|
-
<% if
|
|
34
|
-
<% if
|
|
35
|
-
<% if
|
|
36
|
-
<% body = t("decidim.forms.questionnaires.show.
|
|
37
|
-
link: link_to(t("decidim.forms.questionnaires.show.
|
|
32
|
+
<% if allow_responses? %>
|
|
33
|
+
<% if visitor_can_respond? %>
|
|
34
|
+
<% if visitor_already_responded? %>
|
|
35
|
+
<% if visitor_can_edit_responses? && current_component.manifest_name == "surveys" %>
|
|
36
|
+
<% body = t("decidim.forms.questionnaires.show.questionnaire_responded_edit.body",
|
|
37
|
+
link: link_to(t("decidim.forms.questionnaires.show.questionnaire_responded_edit.edit"), edit_survey_path(questionnaire_for))
|
|
38
38
|
) %>
|
|
39
39
|
<% else %>
|
|
40
|
-
<% body = t("decidim.forms.questionnaires.show.
|
|
40
|
+
<% body = t("decidim.forms.questionnaires.show.questionnaire_responded.body") %>
|
|
41
41
|
<% end %>
|
|
42
|
-
<%= cell("decidim/announcement", { title: t("decidim.forms.questionnaires.show.
|
|
42
|
+
<%= cell("decidim/announcement", { title: t("decidim.forms.questionnaires.show.questionnaire_responded.title"), body: body }) %>
|
|
43
43
|
<% else %>
|
|
44
44
|
<% if @form.responses_by_step.flatten.empty? %>
|
|
45
45
|
<%= cell("decidim/announcement", t("decidim.forms.questionnaires.show.empty")) %>
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
<%= render partial: "decidim/forms/questionnaires/questionnaire_readonly" %>
|
|
52
52
|
<% end %>
|
|
53
53
|
<% else %>
|
|
54
|
-
<% if questionnaire_for.class.name == "Decidim::Surveys::Survey" &&
|
|
55
|
-
<%= render partial: "decidim/surveys/surveys/
|
|
54
|
+
<% if questionnaire_for.class.name == "Decidim::Surveys::Survey" && show_published_questions_responses? %>
|
|
55
|
+
<%= render partial: "decidim/surveys/surveys/published_questions_responses" %>
|
|
56
56
|
<% else %>
|
|
57
57
|
<%= cell("decidim/announcement", { title: t("decidim.forms.questionnaires.show.questionnaire_closed.title"), body: t("decidim.forms.questionnaires.show.questionnaire_closed.body") }, callout_class: "warning") %>
|
|
58
58
|
<% end %>
|
data/config/assets.rb
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
base_path = File.expand_path("..", __dir__)
|
|
4
4
|
|
|
5
|
-
Decidim::
|
|
6
|
-
Decidim::
|
|
5
|
+
Decidim::Shakapacker.register_path("#{base_path}/app/packs")
|
|
6
|
+
Decidim::Shakapacker.register_entrypoints(
|
|
7
7
|
decidim_forms: "#{base_path}/app/packs/entrypoints/decidim_forms.js",
|
|
8
8
|
decidim_forms_admin: "#{base_path}/app/packs/entrypoints/decidim_forms_admin.js"
|
|
9
9
|
)
|
data/config/locales/ar.yml
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
ar:
|
|
3
3
|
activemodel:
|
|
4
4
|
attributes:
|
|
5
|
-
answer:
|
|
6
|
-
body: إجابة
|
|
7
5
|
question:
|
|
8
6
|
max_choices: أقصى عدد من الخيارات
|
|
9
7
|
question_type: نوع
|
|
@@ -17,10 +15,6 @@ ar:
|
|
|
17
15
|
description: وصف
|
|
18
16
|
tos: شروط الخدمة
|
|
19
17
|
questionnaires:
|
|
20
|
-
answer_option:
|
|
21
|
-
answer_option: خيار الإجابة
|
|
22
|
-
remove: إزالة
|
|
23
|
-
statement: بيان
|
|
24
18
|
display_condition:
|
|
25
19
|
condition_question: سؤال
|
|
26
20
|
remove: حذف
|
|
@@ -32,36 +26,26 @@ ar:
|
|
|
32
26
|
remove: إزالة
|
|
33
27
|
statement: بيان
|
|
34
28
|
question:
|
|
35
|
-
add_answer_option: إضافة خيار الإجابة
|
|
36
29
|
any: أي
|
|
37
30
|
description: وصف
|
|
31
|
+
down: أسفل
|
|
38
32
|
question: سؤال
|
|
39
33
|
remove: إزالة
|
|
40
34
|
statement: بيان
|
|
35
|
+
up: فوق
|
|
41
36
|
title_and_description:
|
|
42
37
|
description: الوصف
|
|
43
38
|
update:
|
|
44
39
|
invalid: كانت هناك مشكلة في حفظ النموذج.
|
|
45
40
|
question_types:
|
|
46
|
-
long_answer: اجابة طويلة
|
|
47
41
|
multiple_option: خيار متعدد
|
|
48
|
-
short_answer: اجابة قصيرة
|
|
49
42
|
single_option: خيار واحد
|
|
50
43
|
sorting: فرز
|
|
51
44
|
questionnaires:
|
|
52
|
-
answer:
|
|
53
|
-
invalid: كانت هناك مشكلة في الإجابة على النموذج.
|
|
54
|
-
success: نموذج أجاب بنجاح.
|
|
55
45
|
question:
|
|
56
46
|
max_choices: 'خيارات ماكس: %{n}'
|
|
57
47
|
show:
|
|
58
|
-
answer_questionnaire:
|
|
59
|
-
title: أجب عن النموذج
|
|
60
|
-
questionnaire_answered:
|
|
61
|
-
body: لقد أجبت بالفعل على هذا النموذج.
|
|
62
|
-
title: تمت الاجابة مسبقا
|
|
63
48
|
questionnaire_closed:
|
|
64
|
-
body: النموذج مغلق ولا يمكن الرد عليه.
|
|
65
49
|
title: شكل مغلق
|
|
66
50
|
questionnaire_for_private_users:
|
|
67
51
|
body: النموذج متاح فقط للمستخدمين من القطاع الخاص
|
|
@@ -70,7 +54,3 @@ ar:
|
|
|
70
54
|
step_navigation:
|
|
71
55
|
show:
|
|
72
56
|
submit: خضع
|
|
73
|
-
user_answers_serializer:
|
|
74
|
-
created_at: أجاب على
|
|
75
|
-
id: معرف الإجابة
|
|
76
|
-
question: سؤال
|
data/config/locales/bg.yml
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
bg:
|
|
3
3
|
activemodel:
|
|
4
4
|
attributes:
|
|
5
|
-
answer:
|
|
6
|
-
body: Отговор
|
|
7
5
|
question:
|
|
8
6
|
max_choices: Максимален брой възможности
|
|
9
7
|
question_type: Тип
|
|
@@ -19,35 +17,19 @@ bg:
|
|
|
19
17
|
tos: Условия за ползване
|
|
20
18
|
questionnaires:
|
|
21
19
|
actions:
|
|
22
|
-
|
|
23
|
-
answer_option:
|
|
24
|
-
answer_option: Възможност за отговор
|
|
25
|
-
remove: Премахни
|
|
26
|
-
statement: Изявление
|
|
27
|
-
answers:
|
|
28
|
-
actions:
|
|
29
|
-
show: Показване на отговорите
|
|
30
|
-
empty: Все още няма отговори
|
|
31
|
-
export_response:
|
|
32
|
-
title: survey_user_answers_%{token}
|
|
33
|
-
show:
|
|
34
|
-
title: 'Отговор № %{number}'
|
|
20
|
+
back: Назад към въпросите
|
|
35
21
|
display_condition:
|
|
36
|
-
answer_option: Възможност за отговор
|
|
37
22
|
condition_question: Въпрос
|
|
38
23
|
condition_type: Условие
|
|
39
24
|
condition_types:
|
|
40
|
-
answered: Отговорено
|
|
41
25
|
equal: Равно
|
|
42
26
|
match: Включва текст
|
|
43
|
-
not_answered: Неотговорено
|
|
44
27
|
not_equal: Не е равно
|
|
45
28
|
condition_value: Включен текст
|
|
46
29
|
display_condition: Условие за показване
|
|
47
30
|
mandatory: Това условие винаги трябва да бъде удовлетворено, независимо от състоянието на другите условия
|
|
48
31
|
remove: Премахни
|
|
49
32
|
save_warning: Не забравяйте да запазите формуляра, преди да конфигурирате условията за показване
|
|
50
|
-
select_answer_option: Изберете вариант за отговор
|
|
51
33
|
select_condition_question: Изберете въпрос
|
|
52
34
|
select_condition_type: Изберете тип условие
|
|
53
35
|
edit:
|
|
@@ -64,27 +46,35 @@ bg:
|
|
|
64
46
|
remove: Премахни
|
|
65
47
|
statement: Изявление
|
|
66
48
|
question:
|
|
67
|
-
add_answer_option: Добавяне на възможност за отговор
|
|
68
49
|
add_display_condition: Добавяне на условие за показване
|
|
69
50
|
add_display_condition_info: Запазете формуляра, за да конфигурирате условията за показване
|
|
70
51
|
add_matrix_row: Добавяне на ред
|
|
71
52
|
any: Някой
|
|
72
53
|
collapse: Свий
|
|
73
54
|
description: Описание
|
|
55
|
+
down: Надолу
|
|
74
56
|
expand: Разтваряне
|
|
75
57
|
question: Въпрос
|
|
76
58
|
remove: Премахни
|
|
77
59
|
statement: Изявление
|
|
60
|
+
up: Горе
|
|
61
|
+
responses:
|
|
62
|
+
actions:
|
|
63
|
+
show: Показване на отговорите
|
|
78
64
|
separator:
|
|
65
|
+
down: Долу
|
|
79
66
|
remove: Премахни
|
|
80
67
|
separator: Разделител
|
|
68
|
+
up: Горе
|
|
81
69
|
title_and_description:
|
|
82
70
|
collapse: Свий
|
|
83
71
|
description: Описание
|
|
72
|
+
down: Долу
|
|
84
73
|
expand: Разтваряне
|
|
85
74
|
remove: Премахни
|
|
86
75
|
title: Заглавие
|
|
87
76
|
title_and_description: Заглавие и описание
|
|
77
|
+
up: Горе
|
|
88
78
|
update:
|
|
89
79
|
invalid: Възникна проблем при запазването на формуляра.
|
|
90
80
|
success: Формулярите бяха запазени успешно.
|
|
@@ -98,31 +88,20 @@ bg:
|
|
|
98
88
|
resize_to_fit: Това изображение ще бъде преоразмерено и уплътнено до %{dimensions}.
|
|
99
89
|
question_types:
|
|
100
90
|
files: Файлове
|
|
101
|
-
long_answer: Дълъг отговор
|
|
102
91
|
matrix_multiple: Матрица (множество опции)
|
|
103
92
|
matrix_single: Матрица (единична опция)
|
|
104
93
|
multiple_option: Множество опции
|
|
105
|
-
short_answer: Кратък отговор
|
|
106
94
|
single_option: Единична опция
|
|
107
95
|
sorting: Сортиране
|
|
108
96
|
title_and_description: Заглавие и описание
|
|
109
97
|
questionnaires:
|
|
110
|
-
answer:
|
|
111
|
-
invalid: Възникна проблем при попълването на отговорите във формуляра.
|
|
112
|
-
success: Отговорите са попълнени успешно във формуляра.
|
|
113
98
|
question:
|
|
114
99
|
max_choices: 'Максимален брой избрани варианти: %{n}'
|
|
115
100
|
show:
|
|
116
|
-
answer_questionnaire:
|
|
117
|
-
title: Попълване на отговори във формуляра
|
|
118
101
|
current_step: Стъпка %{step}
|
|
119
102
|
empty: Все още няма конфигурирани въпроси за този формуляр.
|
|
120
103
|
of_total_steps: от %{total_steps}
|
|
121
|
-
questionnaire_answered:
|
|
122
|
-
body: Вече сте попълнили отговорите в този формуляр.
|
|
123
|
-
title: Вече сте отговорили
|
|
124
104
|
questionnaire_closed:
|
|
125
|
-
body: Формулярът е затворен и не можете да попълните отговорите си.
|
|
126
105
|
title: Формулярът е затворен
|
|
127
106
|
questionnaire_for_private_users:
|
|
128
107
|
body: Формулярът е налице само за частни потребители
|
|
@@ -138,8 +117,3 @@ bg:
|
|
|
138
117
|
back: Назад
|
|
139
118
|
continue: Продължи
|
|
140
119
|
submit: Изпрати
|
|
141
|
-
user_answers_serializer:
|
|
142
|
-
body: Отговор
|
|
143
|
-
created_at: Отговорено на
|
|
144
|
-
id: ID на отговора
|
|
145
|
-
question: Въпрос
|
data/config/locales/ca-IT.yml
CHANGED
|
@@ -2,19 +2,21 @@
|
|
|
2
2
|
ca-IT:
|
|
3
3
|
activemodel:
|
|
4
4
|
attributes:
|
|
5
|
-
answer:
|
|
6
|
-
body: Resposta
|
|
7
|
-
choices: Opcions
|
|
8
|
-
selected_choices: Opcions seleccionades
|
|
9
5
|
question:
|
|
10
6
|
max_choices: Nombre màxim d'opcions
|
|
11
7
|
question_type: Tipus
|
|
12
8
|
questionnaire_question:
|
|
13
9
|
mandatory: Obligatori
|
|
14
10
|
max_characters: Límit de caràcters (deixa-ho a 0 si no hi ha límit)
|
|
11
|
+
response:
|
|
12
|
+
body: Resposta
|
|
13
|
+
choices: Opcions
|
|
14
|
+
selected_choices: Opcions seleccionades
|
|
15
15
|
errors:
|
|
16
16
|
models:
|
|
17
|
-
|
|
17
|
+
questionnaire:
|
|
18
|
+
request_invalid: Hi ha hagut un problema en gestionar la sol·licitud. Si us plau, torna-ho a provar.
|
|
19
|
+
response:
|
|
18
20
|
attributes:
|
|
19
21
|
add_documents:
|
|
20
22
|
needs_to_be_reattached: És necessari tornar a adjuntar el fitxer
|
|
@@ -23,26 +25,24 @@ ca-IT:
|
|
|
23
25
|
choices:
|
|
24
26
|
missing: no estan completes
|
|
25
27
|
too_many: Pots triar un màxim de %{count} opcions.
|
|
26
|
-
questionnaire:
|
|
27
|
-
request_invalid: Hi ha hagut un problema en gestionar la sol·licitud. Si us plau, torna-ho a provar.
|
|
28
28
|
decidim:
|
|
29
29
|
download_your_data:
|
|
30
30
|
help:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
id: L'identificador únic de la resposta
|
|
31
|
+
responses:
|
|
32
|
+
id: L'identificador únic del resultat
|
|
34
33
|
question: La pregunta que es va respondre
|
|
35
|
-
questionnaire:
|
|
36
|
-
|
|
34
|
+
questionnaire: El qüestionari que es va respondre
|
|
35
|
+
response: La resposta a la pregunta
|
|
36
|
+
user: La usuària que va respondre al qüestionari
|
|
37
37
|
show:
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
responses: Exportar respostes
|
|
39
|
+
survey_user_responses: Resposta de les usuàries a l'enquesta
|
|
40
40
|
forms:
|
|
41
41
|
admin:
|
|
42
42
|
models:
|
|
43
43
|
components:
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
allow_editing_responses: Permetre a les usuàries registrades editar les seves respostes a l'enquesta
|
|
45
|
+
allow_responses: Permetre respostes
|
|
46
46
|
allow_unregistered: Permet a usuàries no registrades contestar l'enquesta
|
|
47
47
|
allow_unregistered_help: Si està activat, no serà necessari iniciar sessió per a respondre l'enquesta. Això pot implicar una recollida de dades pobra o poc fiable i serà més vulnerable a atacs automatitzats. Fes-ho servir amb precaució! És important que una participant pugui respondre a la mateixa enquesta diverses vegades, fent servir diferents navegador o la funció de "navegació privada" del seu navegador web.
|
|
48
48
|
announcement: Avís
|
|
@@ -50,54 +50,32 @@ ca-IT:
|
|
|
50
50
|
description: Descripció
|
|
51
51
|
ends_at: Respostes acceptades fins a
|
|
52
52
|
ends_at_help: Deixar en blanc si no hi ha cap data específica
|
|
53
|
-
starts_at: Respostes acceptades
|
|
53
|
+
starts_at: Respostes acceptades fins a
|
|
54
54
|
starts_at_help: Deixar en blanc si no hi ha cap data específica
|
|
55
55
|
tos: Termes del servei
|
|
56
56
|
questionnaires:
|
|
57
57
|
actions:
|
|
58
|
-
back: Tornar a les
|
|
59
|
-
|
|
60
|
-
show:
|
|
61
|
-
answer_option:
|
|
62
|
-
answer_option: Opció de resposta
|
|
63
|
-
free_text: Text lliure
|
|
64
|
-
remove: Eliminar
|
|
65
|
-
statement: Declaració
|
|
66
|
-
answers:
|
|
67
|
-
actions:
|
|
68
|
-
back: Tornar a les respostes
|
|
69
|
-
export: Exportar
|
|
70
|
-
next: Següent ›
|
|
71
|
-
previous: "‹ Anterior"
|
|
72
|
-
show: Mostrar les respostes
|
|
73
|
-
empty: Encara no hi ha respostes
|
|
74
|
-
export:
|
|
75
|
-
answer:
|
|
76
|
-
title: 'Resposta #%{number}'
|
|
77
|
-
export_response:
|
|
78
|
-
title: survey_user_answers_%{token}
|
|
79
|
-
index:
|
|
80
|
-
title: "%{total} respostes en total"
|
|
81
|
-
show:
|
|
82
|
-
title: 'Resposta #%{number}'
|
|
58
|
+
back: Tornar a les preguntes
|
|
59
|
+
publish_responses: Publicar les respostes
|
|
60
|
+
show: Respostes
|
|
83
61
|
display_condition:
|
|
84
|
-
answer_option: Opció de resposta
|
|
85
62
|
condition_question: Pregunta
|
|
86
63
|
condition_type: Condició
|
|
87
64
|
condition_types:
|
|
88
|
-
answered: Amb resposta
|
|
89
65
|
equal: Igual a
|
|
90
66
|
match: Inclou text
|
|
91
|
-
not_answered: No resposta
|
|
92
67
|
not_equal: No és igual
|
|
68
|
+
not_responded: Sense resposta
|
|
69
|
+
responded: Amb resposta
|
|
93
70
|
condition_value: Text inclòs
|
|
94
71
|
display_condition: Condicions de visualització
|
|
95
72
|
mandatory: Aquesta condició s'ha de complir sempre independentment de l'estat d'altres condicions
|
|
96
73
|
remove: Eliminar
|
|
74
|
+
response_option: Opció de resposta
|
|
97
75
|
save_warning: Recorda de guardar l'enquesta abans de configurar les condicions de visualitzacióó
|
|
98
|
-
select_answer_option: Eliminar l'opció de resposta
|
|
99
76
|
select_condition_question: Seleccionar una pregunta
|
|
100
77
|
select_condition_type: Seleccionar un tipus de condició
|
|
78
|
+
select_response_option: Seleccionar opció de resposta
|
|
101
79
|
edit:
|
|
102
80
|
save: Desa
|
|
103
81
|
title: Editar el qüestionari
|
|
@@ -118,45 +96,73 @@ ca-IT:
|
|
|
118
96
|
remove: Elimina
|
|
119
97
|
statement: Declaració
|
|
120
98
|
question:
|
|
121
|
-
add_answer_option: Afegeix una opció de resposta
|
|
122
99
|
add_display_condition: Afegir condició de visualització
|
|
123
100
|
add_display_condition_info: Guardar l'enquesta per a configurar les condicions de visualització
|
|
124
101
|
add_matrix_row: Afegir fila
|
|
102
|
+
add_response_option: Afegir opció de resposta
|
|
125
103
|
any: Cap
|
|
126
104
|
collapse: Redueix
|
|
127
105
|
description: Descripció
|
|
106
|
+
down: Avall
|
|
128
107
|
expand: Expandeix
|
|
129
108
|
question: Pregunta
|
|
130
109
|
remove: Eliminar
|
|
131
110
|
statement: Declaració
|
|
111
|
+
up: Amunt
|
|
132
112
|
questions_form:
|
|
133
|
-
|
|
113
|
+
already_responded_warning: L'enquesta ja està contestada per algunes usuàries i per tant no pots modificar les seves preguntes.
|
|
134
114
|
collapse: Replega totes les preguntes
|
|
135
115
|
expand: Desplega totes les preguntes
|
|
136
116
|
unpublished_warning: El formulari no està publicat. Pots modificar les preguntes, però en fer-ho s'esborraran les respostes actuals.
|
|
137
117
|
update:
|
|
138
118
|
success: Pregunta/es afegida/es correctament a l'enquesta.
|
|
119
|
+
response_option:
|
|
120
|
+
free_text: Text lliure
|
|
121
|
+
remove: Eliminar
|
|
122
|
+
response_option: Opció de resposta
|
|
123
|
+
statement: Enunciat
|
|
124
|
+
responses:
|
|
125
|
+
actions:
|
|
126
|
+
back: Tornar a les respostes
|
|
127
|
+
export: Exportar
|
|
128
|
+
next: Següent ›
|
|
129
|
+
previous: "‹ Anterior"
|
|
130
|
+
show: Mostrar les respostes
|
|
131
|
+
empty: Encara no hi ha respostes
|
|
132
|
+
export:
|
|
133
|
+
response:
|
|
134
|
+
title: 'Resposta #%{number}'
|
|
135
|
+
export_response:
|
|
136
|
+
title: repostes_usuaria_enquesta_%{token}
|
|
137
|
+
index:
|
|
138
|
+
title: "%{total} respostes en total"
|
|
139
|
+
show:
|
|
140
|
+
title: 'Resposta #%{number}'
|
|
139
141
|
separator:
|
|
142
|
+
down: Baixar
|
|
140
143
|
remove: Eliminar
|
|
141
144
|
separator: Separador
|
|
145
|
+
up: Pujar
|
|
142
146
|
title_and_description:
|
|
143
147
|
collapse: Replegar
|
|
144
148
|
description: Descripció
|
|
149
|
+
down: Baixar
|
|
145
150
|
expand: Expandir
|
|
146
151
|
remove: Esborrar
|
|
147
152
|
title: Títol
|
|
148
153
|
title_and_description: Títol i descripció
|
|
154
|
+
up: Pujar
|
|
149
155
|
update:
|
|
150
156
|
invalid: S'ha produït un error en desar el formulari.
|
|
151
157
|
success: Formulari desat correctament.
|
|
152
158
|
admin_log:
|
|
153
159
|
question:
|
|
154
|
-
|
|
155
|
-
|
|
160
|
+
publish_responses: "%{user_name} va publicar respostes a les preguntes de l'enquesta %{resource_name} a l'espai de participació %{space_name}"
|
|
161
|
+
unpublish_responses: "%{user_name} va despublicar respostes a les preguntes de l'enquesta %{resource_name} a l'espai de participació %{space_name}"
|
|
156
162
|
questionnaire:
|
|
157
163
|
update: "%{user_name} ha actualitzat el qüestionari %{resource_name}"
|
|
158
164
|
errors:
|
|
159
|
-
|
|
165
|
+
response:
|
|
160
166
|
body: El camp no pot estar en blanc
|
|
161
167
|
images:
|
|
162
168
|
dimensions: "%{width} x %{height} px"
|
|
@@ -165,39 +171,27 @@ ca-IT:
|
|
|
165
171
|
resize_to_fit: Aquesta imatge serà redimensionada per ajustar-se a %{dimensions}.
|
|
166
172
|
question_types:
|
|
167
173
|
files: Arxius
|
|
168
|
-
|
|
174
|
+
long_response: Resposta llarga
|
|
169
175
|
matrix_multiple: Matriu (opció multiple)
|
|
170
176
|
matrix_single: Matriu (opció única)
|
|
171
177
|
multiple_option: Opció múltiple
|
|
172
|
-
|
|
178
|
+
short_response: Resposta curta
|
|
173
179
|
single_option: Opció única
|
|
174
180
|
sorting: Ordenació
|
|
175
181
|
title_and_description: Títol i descripció
|
|
176
|
-
|
|
182
|
+
questionnaire_response_presenter:
|
|
177
183
|
download_attachment: Descarregar l'arxiu adjunt
|
|
178
184
|
questionnaires:
|
|
179
|
-
answer:
|
|
180
|
-
invalid: S'han produït un error en respondre el formulari.
|
|
181
|
-
max_choices_alert: Has seleccionat massa opcions
|
|
182
|
-
success: Has contestat el formulari correctament.
|
|
183
185
|
question:
|
|
184
186
|
max_choices: 'Opcions màximes: %{n}'
|
|
187
|
+
response:
|
|
188
|
+
invalid: S'han produït un error en respondre el formulari.
|
|
189
|
+
max_choices_alert: Has seleccionat massa opcions
|
|
190
|
+
success: El formulari s'ha respost correctament.
|
|
185
191
|
show:
|
|
186
|
-
answer_questionnaire:
|
|
187
|
-
already_have_an_account?: Ja tens un compte?
|
|
188
|
-
are_you_new?: Ets una nova usuària?
|
|
189
|
-
sign_in_description: Inicia la teva sessió per respondre l'enquesta
|
|
190
|
-
sign_up_description: Crea un compte de participant per a respondre l'enquesta
|
|
191
|
-
title: Respon el formulari
|
|
192
192
|
current_step: Pas %{step}
|
|
193
193
|
empty: No s'ha configurat cap pregunta encara en aquest formulari.
|
|
194
194
|
of_total_steps: de %{total_steps}
|
|
195
|
-
questionnaire_answered:
|
|
196
|
-
body: Ja has respost a aquest formulari.
|
|
197
|
-
title: Ja has respost
|
|
198
|
-
questionnaire_answered_edit:
|
|
199
|
-
body: 'Ja has respost a aquest formulari: %{link}'
|
|
200
|
-
edit: Edita les respostes
|
|
201
195
|
questionnaire_closed:
|
|
202
196
|
body: El formulari està tancat i no es pot respondre.
|
|
203
197
|
title: S'ha tancat el formulari
|
|
@@ -209,20 +203,32 @@ ca-IT:
|
|
|
209
203
|
title: JavaScript està desactivat
|
|
210
204
|
questionnaire_not_published:
|
|
211
205
|
body: Aquest formulari no s'ha publicat encara.
|
|
206
|
+
questionnaire_responded:
|
|
207
|
+
body: Ja has respost a aquest formulari.
|
|
208
|
+
title: Ja has respost
|
|
209
|
+
questionnaire_responded_edit:
|
|
210
|
+
body: 'Ja has respost a aquest formulari: %{link}'
|
|
211
|
+
edit: Edita les teves respostes
|
|
212
|
+
response_questionnaire:
|
|
213
|
+
already_have_an_account?: Ja tens un compte?
|
|
214
|
+
are_you_new?: Ets una nova usuària?
|
|
215
|
+
sign_in_description: Inicia la teva sessió per respondre l'enquesta
|
|
216
|
+
sign_up_description: Crea un compte de participant per a respondre l'enquesta
|
|
217
|
+
title: Respondre al formulari
|
|
212
218
|
tos_agreement: En participar acceptes els Termes i condicions d'ús
|
|
213
219
|
step_navigation:
|
|
214
220
|
show:
|
|
215
|
-
are_you_sure_edit_guest: Si vols poder editar les teves respostes més tard, cal que iniciïs la teva sessió o
|
|
216
|
-
are_you_sure_no_edit: Aquesta acció
|
|
221
|
+
are_you_sure_edit_guest: Si vols poder editar les teves respostes més tard, cal que iniciïs la teva sessió o et creïs un compte.
|
|
222
|
+
are_you_sure_no_edit: Aquesta acció és irreversible i no podràs editar les teves respostes posteriorment. Segur que vols continuar?
|
|
217
223
|
back: Enrere
|
|
218
224
|
continue: Continuar
|
|
219
225
|
disallowed: No pots editar les teves respostes.
|
|
220
226
|
submit: Enviar respostes
|
|
221
|
-
|
|
227
|
+
user_responses_serializer:
|
|
222
228
|
body: Resposta
|
|
223
229
|
completion: Finalització
|
|
224
230
|
created_at: Respost el
|
|
225
|
-
id:
|
|
231
|
+
id: ID de la resposta
|
|
226
232
|
ip_hash: Hash de l'adreça IP
|
|
227
233
|
question: Pregunta
|
|
228
234
|
registered: Registrada
|