decidim-surveys 0.30.2 → 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 +3 -3
- data/app/commands/decidim/surveys/admin/create_survey.rb +14 -2
- data/app/commands/decidim/surveys/admin/publish_survey.rb +3 -3
- data/app/commands/decidim/surveys/admin/update_survey.rb +0 -13
- data/app/commands/decidim/surveys/admin/update_survey_settings.rb +53 -0
- data/app/commands/decidim/surveys/{publish_answers.rb → publish_responses.rb} +8 -8
- data/app/commands/decidim/surveys/{unpublish_answers.rb → unpublish_responses.rb} +8 -8
- data/app/controllers/decidim/surveys/admin/application_controller.rb +13 -0
- data/app/controllers/decidim/surveys/admin/{publish_answers_controller.rb → publish_responses_controller.rb} +9 -9
- data/app/controllers/decidim/surveys/admin/questions/surveys_controller.rb +48 -0
- data/app/controllers/decidim/surveys/admin/{answers_controller.rb → responses_controller.rb} +18 -13
- data/app/controllers/decidim/surveys/admin/settings/surveys_controller.rb +42 -0
- data/app/controllers/decidim/surveys/admin/surveys_controller.rb +20 -39
- data/app/controllers/decidim/surveys/surveys_controller.rb +15 -12
- data/app/forms/decidim/surveys/admin/survey_form.rb +3 -7
- data/app/forms/decidim/surveys/admin/survey_settings_form.rb +18 -0
- data/app/helpers/decidim/surveys/{publish_answers_helper.rb → publish_responses_helper.rb} +11 -11
- data/app/helpers/decidim/surveys/survey_helper.rb +1 -1
- data/app/jobs/decidim/surveys/{clean_survey_answers_job.rb → clean_survey_responses_job.rb} +4 -4
- data/app/jobs/decidim/surveys/settings_change_job.rb +5 -5
- data/app/mailers/decidim/surveys/survey_confirmation_mailer.rb +6 -6
- data/app/models/decidim/surveys/survey.rb +4 -4
- data/app/permissions/decidim/surveys/admin/permissions.rb +4 -4
- data/app/permissions/decidim/surveys/permissions.rb +1 -1
- data/app/serializers/decidim/surveys/data_importer.rb +5 -5
- data/app/serializers/decidim/surveys/data_serializer.rb +5 -5
- data/app/views/decidim/surveys/admin/publish_responses/_toggle_button.html.erb +22 -0
- data/app/views/decidim/surveys/admin/{publish_answers → publish_responses}/index.html.erb +4 -4
- data/app/views/decidim/surveys/admin/questions/surveys/edit.html.erb +44 -0
- data/app/views/decidim/surveys/admin/responses/index.html.erb +101 -0
- data/app/views/decidim/surveys/admin/responses/show.html.erb +43 -0
- data/app/views/decidim/surveys/admin/{surveys → settings/surveys}/_form.html.erb +2 -3
- data/app/views/decidim/surveys/admin/settings/surveys/edit.html.erb +23 -0
- data/app/views/decidim/surveys/admin/surveys/_tabs_menu.html.erb +11 -0
- data/app/views/decidim/surveys/admin/surveys/edit.html.erb +18 -18
- data/app/views/decidim/surveys/admin/surveys/index.html.erb +89 -23
- data/app/views/decidim/surveys/admin/surveys/new.html.erb +23 -0
- data/app/views/decidim/surveys/survey_confirmation_mailer/confirmation.html.erb +1 -1
- data/app/views/decidim/surveys/surveys/{_published_questions_answers.html.erb → _published_questions_responses.html.erb} +2 -2
- data/app/views/decidim/surveys/surveys/not_allowed.html.erb +2 -2
- data/app/views/layouts/decidim/admin/surveys.html.erb +18 -0
- data/config/assets.rb +1 -1
- data/config/locales/ar.yml +0 -20
- data/config/locales/bg.yml +0 -28
- data/config/locales/ca-IT.yml +45 -29
- data/config/locales/ca.yml +45 -29
- data/config/locales/cs.yml +33 -39
- data/config/locales/de.yml +43 -27
- data/config/locales/el.yml +0 -23
- data/config/locales/en.yml +49 -33
- data/config/locales/es-MX.yml +44 -28
- data/config/locales/es-PY.yml +44 -28
- data/config/locales/es.yml +44 -28
- data/config/locales/eu.yml +43 -27
- data/config/locales/fi-plain.yml +41 -25
- data/config/locales/fi.yml +41 -25
- data/config/locales/fr-CA.yml +35 -32
- data/config/locales/fr.yml +35 -32
- data/config/locales/ga-IE.yml +0 -13
- data/config/locales/gl.yml +0 -22
- data/config/locales/hu.yml +0 -16
- data/config/locales/id-ID.yml +0 -15
- data/config/locales/is-IS.yml +0 -2
- data/config/locales/it.yml +0 -22
- data/config/locales/ja.yml +43 -27
- data/config/locales/lb.yml +0 -22
- data/config/locales/lt.yml +0 -25
- data/config/locales/lv.yml +0 -17
- data/config/locales/nl.yml +0 -22
- data/config/locales/no.yml +0 -22
- data/config/locales/pl.yml +0 -30
- data/config/locales/pt-BR.yml +0 -22
- data/config/locales/pt.yml +0 -22
- data/config/locales/ro-RO.yml +18 -23
- data/config/locales/ru.yml +0 -13
- data/config/locales/sk.yml +0 -18
- data/config/locales/sl.yml +0 -8
- data/config/locales/sv.yml +8 -26
- data/config/locales/tr-TR.yml +0 -22
- data/config/locales/uk.yml +0 -13
- data/config/locales/zh-CN.yml +0 -15
- data/config/locales/zh-TW.yml +0 -22
- data/db/migrate/20250317110501_rename_answer_to_response_in_decidim_surveys.rb +8 -0
- data/lib/decidim/api/survey_type.rb +12 -0
- data/lib/decidim/surveys/admin_engine.rb +46 -7
- data/lib/decidim/surveys/component.rb +24 -19
- data/lib/decidim/surveys/engine.rb +8 -25
- data/lib/decidim/surveys/seeds.rb +42 -42
- data/lib/decidim/surveys/test/factories.rb +3 -3
- data/lib/decidim/surveys/version.rb +1 -1
- data/lib/tasks/surveys/upgrade/decidim_surveys_upgrade_tasks.rake +16 -82
- metadata +36 -29
- data/app/queries/decidim/surveys/metrics/answers_metric_manage.rb +0 -65
- data/app/queries/decidim/surveys/metrics/survey_participants_metric_measure.rb +0 -30
- data/app/views/decidim/surveys/admin/answers/index.html.erb +0 -49
- data/app/views/decidim/surveys/admin/answers/show.html.erb +0 -43
- data/app/views/decidim/surveys/admin/publish_answers/_toggle_button.html.erb +0 -22
- data/app/views/decidim/surveys/admin/surveys/edit_questions.html.erb +0 -47
@@ -1,12 +1,11 @@
|
|
1
|
-
<%= render "decidim/forms/admin/questionnaires/form", form: %>
|
2
1
|
<div class="form__wrapper">
|
3
2
|
<div class="card pt-4">
|
4
3
|
<div class="card-section">
|
5
4
|
<div class="row column">
|
6
|
-
<%= form.check_box :
|
5
|
+
<%= form.check_box :allow_responses, label: t("models.components.allow_responses", scope: "decidim.forms.admin"), aria: { label: :allow_responses } %>
|
7
6
|
</div>
|
8
7
|
<div class="row column">
|
9
|
-
<%= form.check_box :
|
8
|
+
<%= form.check_box :allow_editing_responses, label: t("models.components.allow_editing_responses", scope: "decidim.forms.admin"), aria: { label: :allow_editing_responses } %>
|
10
9
|
</div>
|
11
10
|
<div class="row column">
|
12
11
|
<%= form.check_box :allow_unregistered, label: t("models.components.allow_unregistered", scope: "decidim.forms.admin"), aria: { label: :allow_unregistered }, help_text: t("models.components.allow_unregistered_help", scope: "decidim.forms.admin") %>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<% add_decidim_page_title(t(".title")) %>
|
2
|
+
|
3
|
+
<div class="item_show__header" style="border-bottom: none;">
|
4
|
+
<h1 class="item_show__header-title">
|
5
|
+
<%= t(".title") %>
|
6
|
+
</h1>
|
7
|
+
</div>
|
8
|
+
|
9
|
+
<%= render "decidim/surveys/admin/surveys/tabs_menu" %>
|
10
|
+
|
11
|
+
<div class="grid-cols-1 2xl:mr-80">
|
12
|
+
<div class="item__edit-form pb-24">
|
13
|
+
<%= decidim_form_for(@form, url: settings_survey_path, html: { id: "survey-form", class: "form-defaults form edit_questionnaire" }) do |form| %>
|
14
|
+
<%= render partial: "form", object: form %>
|
15
|
+
<% end %>
|
16
|
+
</div>
|
17
|
+
|
18
|
+
<div class="item__edit-sticky">
|
19
|
+
<div class="item__edit-sticky-container">
|
20
|
+
<%= button_tag t("save", scope: "decidim.forms.admin.questionnaires.edit"), class: "button button__sm button__secondary", form: "survey-form" %>
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
</div>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<% show_button = local_assigns.fetch(:show_button, true) %>
|
2
|
+
|
3
|
+
<div class="main-tabs-menu">
|
4
|
+
<div class="main-tabs-menu__tabs">
|
5
|
+
<%= admin_tabs(:admin_surveys_menu).render %>
|
6
|
+
</div>
|
7
|
+
|
8
|
+
<div class="main-tabs-menu__buttons">
|
9
|
+
<%= yield if block_given? %>
|
10
|
+
</div>
|
11
|
+
</div>
|
@@ -1,23 +1,23 @@
|
|
1
1
|
<% add_decidim_page_title(t(".title")) %>
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
3
|
+
<div class="item_show__header" style="border-bottom: none;">
|
4
|
+
<h1 class="item_show__header-title">
|
5
|
+
<%= t(".title") %>
|
6
|
+
</h1>
|
7
|
+
</div>
|
8
|
+
|
9
|
+
<%= render "decidim/surveys/admin/surveys/tabs_menu" %>
|
10
|
+
|
11
|
+
<div class="grid-cols-1 2xl:mr-80">
|
12
|
+
<div class="item__edit-form pb-24">
|
13
|
+
<%= decidim_form_for(@form, url: survey_path(@survey), html: { id: "survey-form", class: "form-defaults form edit_questionnaire" }) do |form| %>
|
14
|
+
<%= render "decidim/forms/admin/questionnaires/form", form: %>
|
15
|
+
<% end %>
|
10
16
|
</div>
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
<div class="item__edit-sticky">
|
16
|
-
<div class="item__edit-sticky-container">
|
17
|
-
<%= form.submit t("save", scope: "decidim.forms.admin.questionnaires.edit"), class: "button button__sm button__secondary" %>
|
18
|
-
</div>
|
19
|
-
</div>
|
20
|
-
<% end %>
|
17
|
+
|
18
|
+
<div class="item__edit-sticky">
|
19
|
+
<div class="item__edit-sticky-container">
|
20
|
+
<%= button_tag t("save", scope: "decidim.forms.admin.questionnaires.edit"), class: "button button__sm button__secondary", form: "survey-form" %>
|
21
21
|
</div>
|
22
22
|
</div>
|
23
|
-
|
23
|
+
</div>
|
@@ -3,17 +3,17 @@
|
|
3
3
|
<div class="item_show__header item_show__header--with-action-options">
|
4
4
|
<h1 class="item_show__header-title">
|
5
5
|
<%= t(".title") %>
|
6
|
-
<%= link_to t("actions.new_survey", scope: "decidim.surveys"),
|
6
|
+
<%= link_to t("actions.new_survey", scope: "decidim.surveys"), new_survey_path, class: "button button__sm button__secondary" %>
|
7
7
|
<%= render partial: "decidim/admin/components/resource_action" %>
|
8
8
|
</h1>
|
9
9
|
</div>
|
10
|
-
<div class="table-
|
10
|
+
<div class="table-stacked mt-8">
|
11
11
|
<table class="table-list">
|
12
12
|
<thead>
|
13
13
|
<tr>
|
14
14
|
<th><%= t("models.survey.fields.title", scope: "decidim.surveys") %></th>
|
15
15
|
<th><%= t("models.survey.fields.questions", scope: "decidim.surveys") %></th>
|
16
|
-
<th><%= t("models.survey.fields.
|
16
|
+
<th><%= t("models.survey.fields.responses", scope: "decidim.surveys") %></th>
|
17
17
|
<th><%= t("models.survey.fields.status", scope: "decidim.surveys") %></th>
|
18
18
|
<th><%= t("actions.title", scope: "decidim.surveys") %></th>
|
19
19
|
</tr>
|
@@ -21,27 +21,93 @@
|
|
21
21
|
<tbody>
|
22
22
|
<% surveys.each do |survey| %>
|
23
23
|
<tr>
|
24
|
-
<td
|
25
|
-
|
26
|
-
|
27
|
-
<td
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
24
|
+
<td data-label="<%= t("models.survey.fields.title", scope: "decidim.surveys") %>">
|
25
|
+
<%= decidim_sanitize_translated(survey.title) %>
|
26
|
+
</td>
|
27
|
+
<td data-label="<%= t("models.survey.fields.questions", scope: "decidim.surveys") %>">
|
28
|
+
<%= survey.questionnaire.questions.size %>
|
29
|
+
</td>
|
30
|
+
<td data-label="<%= t("models.survey.fields.responses", scope: "decidim.surveys") %>">
|
31
|
+
<%= survey.questionnaire.count_participants %>
|
32
|
+
</td>
|
33
|
+
<td data-label="<%= t("models.survey.fields.status", scope: "decidim.surveys") %>">
|
34
|
+
<%= survey.open? ? t("models.survey.status.open", scope: "decidim.surveys") : t("models.survey.status.closed", scope: "decidim.surveys") %>
|
35
|
+
</td>
|
36
|
+
<td data-label="<%= t("actions.title", scope: "decidim.surveys") %>" class="table-list__actions">
|
37
|
+
<button type="button" data-controller="dropdown" data-target="actions-survey-<%= survey.id %>" aria-label="<%= t("decidim.admin.actions.actions_label", resource: survey.title) %>">
|
38
|
+
<%= icon "more-fill", class: "text-secondary" %>
|
39
|
+
</button>
|
40
|
+
|
41
|
+
<div class="inline-block relative">
|
42
|
+
<ul id="actions-survey-<%= survey.id %>" class="dropdown dropdown__action" aria-hidden="true">
|
43
|
+
<li class="dropdown__item">
|
44
|
+
<%= link_to edit_survey_path(survey), class: "dropdown__button" do %>
|
45
|
+
<%= icon "pencil-line" %>
|
46
|
+
<%= t("actions.edit", scope: "decidim.surveys") %>
|
47
|
+
<% end %>
|
48
|
+
</li>
|
49
|
+
|
50
|
+
<li class="dropdown__item">
|
51
|
+
<%= link_to edit_questions_questions_survey_path(survey), class: "dropdown__button" do %>
|
52
|
+
<%= icon "survey-line" %>
|
53
|
+
<%= t("actions.manage_questions", scope: "decidim.surveys") %>
|
54
|
+
<% end %>
|
55
|
+
</li>
|
56
|
+
|
57
|
+
<hr>
|
58
|
+
|
59
|
+
<% if allowed_to?(:update, :questionnaire) %>
|
60
|
+
<% if survey.published? %>
|
61
|
+
<li class="dropdown__item">
|
62
|
+
<%= link_to unpublish_survey_path(survey), method: :put, class: "dropdown__button" do %>
|
63
|
+
<%= icon "close-circle-line" %>
|
64
|
+
<%= t("actions.unpublish", scope: "decidim.admin") %>
|
65
|
+
<% end %>
|
66
|
+
</li>
|
67
|
+
<% elsif survey.clean_after_publish? %>
|
68
|
+
<li class="dropdown__item">
|
69
|
+
<%= link_to publish_survey_path(survey), method: :put, data: { confirm: t("actions.responses_alert", scope: "decidim.surveys", responses_count: survey.questionnaire.responses.size) }, class: "dropdown__button" do %>
|
70
|
+
<%= icon "check-line" %>
|
71
|
+
<%= t("actions.publish", scope: "decidim.admin") %>
|
72
|
+
<% end %>
|
73
|
+
</li>
|
74
|
+
<% else %>
|
75
|
+
<li class="dropdown__item">
|
76
|
+
<%= link_to publish_survey_path(survey), method: :put, class: "dropdown__button" do %>
|
77
|
+
<%= icon "check-line" %>
|
78
|
+
<%= t("actions.publish", scope: "decidim.admin") %>
|
79
|
+
<% end %>
|
80
|
+
</li>
|
81
|
+
<% end %>
|
82
|
+
|
83
|
+
<hr>
|
84
|
+
<% end %>
|
85
|
+
|
86
|
+
<% if allowed_to? :preview, :questionnaire %>
|
87
|
+
<li class="dropdown__item">
|
88
|
+
<%= link_to resource_locator(survey).path, target: :blank, data: { "external-link": false }, class: "dropdown__button" do %>
|
89
|
+
<%= icon "eye-line" %>
|
90
|
+
<%= t("actions.preview", scope: "decidim.surveys") %>
|
91
|
+
<% end %>
|
92
|
+
</li>
|
93
|
+
|
94
|
+
<hr>
|
41
95
|
<% end %>
|
42
|
-
|
43
|
-
|
44
|
-
|
96
|
+
|
97
|
+
<li class="dropdown__item">
|
98
|
+
<%= dropdown_resource_permissions_link(survey) %>
|
99
|
+
</li>
|
100
|
+
|
101
|
+
<hr>
|
102
|
+
|
103
|
+
<li class="dropdown__item">
|
104
|
+
<%= link_to survey_path(survey), method: :delete, data: { confirm: t("actions.confirm_destroy", scope: "decidim.surveys") }, class: "dropdown__button" do %>
|
105
|
+
<%= icon "delete-bin-line" %>
|
106
|
+
<%= t("actions.destroy", scope: "decidim.surveys") %>
|
107
|
+
<% end %>
|
108
|
+
</li>
|
109
|
+
</ul>
|
110
|
+
</div>
|
45
111
|
</td>
|
46
112
|
</tr>
|
47
113
|
<% end %>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<% add_decidim_page_title(t(".title")) %>
|
2
|
+
|
3
|
+
<div class="item_show__header" style="border-bottom: none;">
|
4
|
+
<h1 class="item_show__header-title">
|
5
|
+
<%= t(".title") %>
|
6
|
+
</h1>
|
7
|
+
</div>
|
8
|
+
|
9
|
+
<%= render "decidim/surveys/admin/surveys/tabs_menu" %>
|
10
|
+
|
11
|
+
<div class="grid-cols-1 2xl:mr-80">
|
12
|
+
<div class="item__edit-form pb-24">
|
13
|
+
<%= decidim_form_for(@form, html: { id: "survey-form", class: "form-defaults form edit_questionnaire" }) do |form| %>
|
14
|
+
<%= render "decidim/forms/admin/questionnaires/form", form: %>
|
15
|
+
<% end %>
|
16
|
+
</div>
|
17
|
+
|
18
|
+
<div class="item__edit-sticky">
|
19
|
+
<div class="item__edit-sticky-container">
|
20
|
+
<%= button_tag t("save", scope: "decidim.forms.admin.questionnaires.edit"), class: "button button__sm button__secondary", form: "survey-form" %>
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
</div>
|
@@ -1,11 +1,11 @@
|
|
1
1
|
<% questionnaire.questions.each do |question| %>
|
2
2
|
<% next if question.question_type == "separator" %>
|
3
|
-
<% next unless question.
|
3
|
+
<% next unless question.survey_responses_published_at %>
|
4
4
|
|
5
5
|
<div class="mb-12">
|
6
6
|
<div class="mb-4">
|
7
7
|
<h2 class="h5 inline"><%= translated_attribute question.body %></h2>
|
8
|
-
<span><%= I18n.t("decidim.surveys.admin.
|
8
|
+
<span><%= I18n.t("decidim.surveys.admin.publish_responses.index.responses", count: question.responses.count) %></span>
|
9
9
|
</div>
|
10
10
|
|
11
11
|
<%= chart_for_question(question.id) %>
|
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
<%= render partial: "decidim/shared/component_announcement" if current_component.manifest_name == "surveys" %>
|
18
18
|
<section>
|
19
|
-
<% body = t("decidim.forms.questionnaires.show.
|
20
|
-
<%= cell("decidim/announcement", { title: t("decidim.forms.questionnaires.show.
|
19
|
+
<% body = t("decidim.forms.questionnaires.show.questionnaire_responded.body") %>
|
20
|
+
<%= cell("decidim/announcement", { title: t("decidim.forms.questionnaires.show.questionnaire_responded.title"), body: body }) %>
|
21
21
|
</section>
|
22
22
|
<% end %>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<% add_secondary_root_menu(:admin_participatory_process_menu) %>
|
2
|
+
|
3
|
+
<% content_for :breadcrumb_context_menu do %>
|
4
|
+
<div class="process-title-content-breadcrumb-container-right">
|
5
|
+
<% if allowed_to? :preview, :questionnaire %>
|
6
|
+
<%= link_to public_url, class: "button button__sm button__transparent process-title-content-breadcrumb-container-right-link", target: :_blank, data: { "external-link": false } do %>
|
7
|
+
<%= icon "eye-line" %>
|
8
|
+
<span>
|
9
|
+
<%= t("actions.see_survey", scope: "decidim.admin") %>
|
10
|
+
</span>
|
11
|
+
<% end %>
|
12
|
+
<% end %>
|
13
|
+
</div>
|
14
|
+
<% end %>
|
15
|
+
|
16
|
+
<%= render "layouts/decidim/admin/application" do %>
|
17
|
+
<%= yield %>
|
18
|
+
<% end %>
|
data/config/assets.rb
CHANGED
data/config/locales/ar.yml
CHANGED
@@ -13,18 +13,9 @@ ar:
|
|
13
13
|
few: الدراسات الاستقصائية
|
14
14
|
many: الدراسات الاستقصائية
|
15
15
|
other: الدراسات الاستقصائية
|
16
|
-
decidim/surveys/survey_answer:
|
17
|
-
zero: الأجوبة
|
18
|
-
one: إجابة
|
19
|
-
two: الأجوبة
|
20
|
-
few: الأجوبة
|
21
|
-
many: الأجوبة
|
22
|
-
other: الأجوبة
|
23
16
|
decidim:
|
24
17
|
components:
|
25
18
|
surveys:
|
26
|
-
actions:
|
27
|
-
answer: إجابة
|
28
19
|
settings:
|
29
20
|
global:
|
30
21
|
announcement: إعلان
|
@@ -42,24 +33,13 @@ ar:
|
|
42
33
|
email_outro: لقد تلقيت هذا الإشعار لأنك تتابع %{participatory_space_title}. يمكنك إيقاف تلقي الإخطارات باتباع الرابط السابق.
|
43
34
|
email_subject: استطلاع جديد في %{participatory_space_title}
|
44
35
|
notification_title: المسح <a href="%{resource_path}">%{resource_title}</a> في <a href="%{participatory_space_url}">%{participatory_space_title}</a> مفتوح الآن.
|
45
|
-
metrics:
|
46
|
-
survey_answers:
|
47
|
-
description: عدد الاستطلاعات التي أجاب عليها المشاركون
|
48
|
-
object: إجابات على الدراسات الاستقصائية
|
49
|
-
title: إجابات للمسوحات
|
50
36
|
surveys:
|
51
37
|
actions:
|
52
38
|
edit: تعديل
|
53
39
|
preview: معاينة
|
54
40
|
title: الإجراءات
|
55
41
|
admin:
|
56
|
-
exports:
|
57
|
-
survey_user_answers: إجابات المشاركين في الاستطلاع
|
58
42
|
surveys:
|
59
43
|
update:
|
60
44
|
invalid: كانت هناك مشكلة في إنقاذ المسح.
|
61
45
|
success: تم حفظ الاستطلاع بنجاح.
|
62
|
-
surveys:
|
63
|
-
answer:
|
64
|
-
invalid: كانت هناك مشكلة في الإجابة على الاستبيان.
|
65
|
-
success: مسح أجاب بنجاح.
|
data/config/locales/bg.yml
CHANGED
@@ -9,14 +9,9 @@ bg:
|
|
9
9
|
decidim/surveys/survey:
|
10
10
|
one: Анкета
|
11
11
|
other: Анкети
|
12
|
-
decidim/surveys/survey_answer:
|
13
|
-
one: Отговор
|
14
|
-
other: Отговори
|
15
12
|
decidim:
|
16
13
|
components:
|
17
14
|
surveys:
|
18
|
-
actions:
|
19
|
-
answer: Отговор
|
20
15
|
settings:
|
21
16
|
global:
|
22
17
|
announcement: Съобщение
|
@@ -34,34 +29,11 @@ bg:
|
|
34
29
|
email_outro: Получавате това известие, защото следвате %{participatory_space_title}. Може да прекратите известията чрез предходния линк.
|
35
30
|
email_subject: Нова анкета в(ъв) %{participatory_space_title}
|
36
31
|
notification_title: Анкетата <a href="%{resource_path}">%{resource_title}</a> в(ъв) <a href="%{participatory_space_url}">%{participatory_space_title}</a> вече е отворена.
|
37
|
-
metrics:
|
38
|
-
survey_answers:
|
39
|
-
description: Брой на анкетите с отговори от участници
|
40
|
-
object: отговори на анкети
|
41
|
-
title: Отговори на анкети
|
42
|
-
statistics:
|
43
|
-
answers_count: Отговори
|
44
32
|
surveys:
|
45
33
|
admin:
|
46
|
-
exports:
|
47
|
-
survey_user_answers: Отговори на участник в анкети
|
48
34
|
surveys:
|
49
35
|
update:
|
50
36
|
invalid: Възникна проблем при запазването на анкетата.
|
51
37
|
success: Анкетата беше запазена успешно.
|
52
38
|
last_activity:
|
53
39
|
new_survey: 'Нова анкета:'
|
54
|
-
models:
|
55
|
-
survey:
|
56
|
-
fields:
|
57
|
-
answers: Отговори
|
58
|
-
survey_confirmation_mailer:
|
59
|
-
confirmation:
|
60
|
-
body: Вие успешно отговорихте на анкетата %{questionnaire_title} в %{participatory_space}
|
61
|
-
subject: Въпросникът %{questionnaire_title} се нуждае от потвърждение
|
62
|
-
export_name: Анкетни отговори
|
63
|
-
surveys:
|
64
|
-
answer:
|
65
|
-
invalid: Възникна проблем при попълването на отговорите на анкетата.
|
66
|
-
spam_detected: Възникна проблем при попълването на отговорите във формуляра. Навярно сте били твърде бързи, бихте ли опитали отново?
|
67
|
-
success: Отговорите на анкетата са попълнени успешно.
|
data/config/locales/ca-IT.yml
CHANGED
@@ -9,18 +9,26 @@ ca-IT:
|
|
9
9
|
decidim/surveys/survey:
|
10
10
|
one: Enquesta
|
11
11
|
other: Enquestes
|
12
|
-
decidim/surveys/
|
12
|
+
decidim/surveys/survey_response:
|
13
13
|
one: Resposta
|
14
14
|
other: Respostes
|
15
15
|
decidim:
|
16
16
|
admin:
|
17
|
+
actions:
|
18
|
+
see_survey: Veure enquesta
|
17
19
|
admin_log:
|
18
20
|
changeset:
|
19
21
|
surveys: enquestes
|
22
|
+
menu:
|
23
|
+
surveys_menu:
|
24
|
+
main: Principal
|
25
|
+
questions: Preguntes
|
26
|
+
responses: Respostes
|
27
|
+
settings: Configuració
|
20
28
|
components:
|
21
29
|
surveys:
|
22
30
|
actions:
|
23
|
-
|
31
|
+
respond: Respondre
|
24
32
|
name: Enquestes
|
25
33
|
settings:
|
26
34
|
announcement: Avís
|
@@ -40,44 +48,50 @@ ca-IT:
|
|
40
48
|
email_outro: Has rebut aquesta notificació perquè estàs seguint l'espai "%{participatory_space_title}". Pots deixar de rebre notificacions seguint l'enllaç anterior.
|
41
49
|
email_subject: Una nova enquesta a %{participatory_space_title}
|
42
50
|
notification_title: L'enquesta <a href="%{resource_path}">%{resource_title}</a> en <a href="%{participatory_space_url}">%{participatory_space_title}</a> ja està oberta.
|
43
|
-
metrics:
|
44
|
-
survey_answers:
|
45
|
-
description: Nombre d'enquestes contestades per les participants
|
46
|
-
object: respostes a enquestes
|
47
|
-
title: Respostes a enquestes
|
48
51
|
statistics:
|
49
|
-
|
52
|
+
responses: 'Respostes:'
|
53
|
+
responses_count: Respostes
|
54
|
+
surveys_count_tooltip: El nombre d'enquestes fetes i de respostes recollides.
|
50
55
|
surveys:
|
51
56
|
actions:
|
52
|
-
answers_alert: L'opció d'esborrar les respostes en publicar l'enquesta està activada. Si segueixes, s'esborraran les %{answers_count} existents actualment.
|
53
57
|
confirm_destroy: Segur que ho vols eliminar?
|
54
58
|
destroy: Eliminar
|
55
59
|
edit: Editar
|
56
|
-
manage_questions:
|
60
|
+
manage_questions: Preguntes
|
57
61
|
new_survey: Nova enquesta
|
58
62
|
preview: Previsualitzar
|
63
|
+
responses_alert: L'opció d'esborrar les respostes en publicar l'enquesta està activada. Si segueixes, s'esborraran les %{responses_count} existents actualment.
|
59
64
|
title: Accions
|
60
65
|
admin:
|
61
|
-
answers:
|
62
|
-
index:
|
63
|
-
title: "%{total} respostes en total"
|
64
|
-
show:
|
65
|
-
title: 'Resposta #%{number}'
|
66
66
|
exports:
|
67
|
-
|
68
|
-
|
67
|
+
survey_user_responses: Respostes de les participants de l'enquesta
|
68
|
+
publish_responses:
|
69
69
|
index:
|
70
|
-
answers:
|
71
|
-
one: "%{count} resposta"
|
72
|
-
other: "%{count} respostes"
|
73
70
|
description: |-
|
74
|
-
Publicant les respostes a les
|
75
|
-
Pots seleccionar les
|
71
|
+
Publicant les respostes a les repostes de l'enquesta, aquestes seran visibles per a les visitants.
|
72
|
+
Pots seleccionar les repostes que vols publicar marcant el "checkbox" de cadascuna d'elles.
|
76
73
|
Només pots publicar les respostes de les preguntes que són del tipus de resposta: "Opció única", "Opció múltiple", "Matriu (opció única)", "Matriu (opció múltiple), i "Ordenació".
|
74
|
+
responses:
|
75
|
+
one: "%{count} resposta"
|
76
|
+
other: "%{count} respostes"
|
77
77
|
status:
|
78
78
|
not_published: No publicades
|
79
79
|
published: Publicades
|
80
|
-
title: Publicar respostes
|
80
|
+
title: Publicar les respostes
|
81
|
+
questions:
|
82
|
+
surveys:
|
83
|
+
edit:
|
84
|
+
title: Preguntes
|
85
|
+
responses:
|
86
|
+
index:
|
87
|
+
no_responses: Encara no hi ha cap resposta
|
88
|
+
title: "%{total} respostes en total"
|
89
|
+
show:
|
90
|
+
title: 'Resposta #%{number}'
|
91
|
+
settings:
|
92
|
+
surveys:
|
93
|
+
edit:
|
94
|
+
title: Configuració
|
81
95
|
surveys:
|
82
96
|
create:
|
83
97
|
invalid: S'ha produït un error creant l'enquesta.
|
@@ -88,6 +102,8 @@ ca-IT:
|
|
88
102
|
title: Editar l'enquesta
|
89
103
|
index:
|
90
104
|
title: Enquestes
|
105
|
+
new:
|
106
|
+
title: Nova enquesta
|
91
107
|
publish:
|
92
108
|
invalid: S'ha produït un error en publicar aquesta enquesta.
|
93
109
|
success: Enquesta publicada correctament.
|
@@ -113,8 +129,8 @@ ca-IT:
|
|
113
129
|
models:
|
114
130
|
survey:
|
115
131
|
fields:
|
116
|
-
answers: Respostes
|
117
132
|
questions: Preguntes
|
133
|
+
responses: Respostes
|
118
134
|
status: Estat
|
119
135
|
title: Títol
|
120
136
|
status:
|
@@ -124,12 +140,8 @@ ca-IT:
|
|
124
140
|
confirmation:
|
125
141
|
body: Has respost amb èxit a l'enquesta %{questionnaire_title} dins de %{participatory_space}
|
126
142
|
subject: Confirmació de resposta al qüestionari %{questionnaire_title}
|
127
|
-
export_name:
|
143
|
+
export_name: Respuestas a l'encuesta
|
128
144
|
surveys:
|
129
|
-
answer:
|
130
|
-
invalid: S'ha produït un error en respondre l'enquesta.
|
131
|
-
spam_detected: Hi ha hagut un problema responent el formulari. Potser has anat massa ràpid, ho pots tornar a intentar?
|
132
|
-
success: Enquesta resposta correctament.
|
133
145
|
count:
|
134
146
|
surveys_count:
|
135
147
|
one: "%{count} enquesta"
|
@@ -140,6 +152,10 @@ ca-IT:
|
|
140
152
|
closed: Tancada
|
141
153
|
open: Obertes
|
142
154
|
no_surveys_warning: No hi ha enquestes que coincideixin amb el teu criteri de cerca o no hi ha cap enquesta.
|
155
|
+
response:
|
156
|
+
invalid: S'ha produït un error en respondre l'enquesta.
|
157
|
+
spam_detected: Hi ha hagut un problema responent el formulari. Potser has anat massa ràpid, ho pots tornar a intentar?
|
158
|
+
success: L'enquesta s'ha respost correctament.
|
143
159
|
show:
|
144
160
|
closed: Tancada
|
145
161
|
open: Oberta
|