decidim-demographics 0.31.0.rc2 → 0.31.1
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e6df51e595575cf4bae7373ae48feb45da04a8336de1ff0659b9cb11ffda83cd
|
|
4
|
+
data.tar.gz: b9937be33b4809dc94ee606c63638d8f5b9cf643578e68ef12831900e18fd09d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4d080c58b86567544834389fad88e38138bffaf795b5db8af1158210a47e39f4b9f5e8d719a7ab1889ad3d8139d2f5ddcabb7109c132dbebea692a31865559e8
|
|
7
|
+
data.tar.gz: 3b327da013f18c75f9756e8c8e6ce20632d36820bd85c4588d2e59e58c5d5bab438690bcbb4374278996a804a5b553089147cff1e9000319179d284938124521
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
<%= render "decidim/forms/admin/questionnaires/display_condition_template", form: question_form, editable: questionnaire.questions_editable?, template_id: "display-condition-template-dummy" %>
|
|
34
34
|
<%= render "decidim/forms/admin/questionnaires/matrix_row_template", form: question_form, editable: questionnaire.questions_editable?, template_id: "matrix-row-template-dummy" %>
|
|
35
35
|
<% end %>
|
|
36
|
-
<div class="questionnaire-questions-list flex flex-col py-6 gap-6 last:pb-0" data-draggable-table data-sort-url="#" id="questionnaire-questions-list">
|
|
36
|
+
<div class="questionnaire-questions-list flex flex-col py-6 gap-6 last:pb-0" data-draggable-table data-sort-url="#" data-draggable-handle=".card-divider" id="questionnaire-questions-list">
|
|
37
37
|
<% @form.questions.each_with_index do |question, index| %>
|
|
38
38
|
<%= fields_for "questions[questions][]", question do |question_form| %>
|
|
39
39
|
<% if question.separator? %>
|
|
@@ -69,35 +69,6 @@
|
|
|
69
69
|
<script>
|
|
70
70
|
document.addEventListener("turbo:load", function () {
|
|
71
71
|
window.Decidim.createEditableForm();
|
|
72
|
-
|
|
73
|
-
// Function to initialize the sortable functionality
|
|
74
|
-
function initializeSortable() {
|
|
75
|
-
const container = document.querySelector("#questionnaire-questions-list");
|
|
76
|
-
const questionCards = container?.querySelectorAll(".card.questionnaire-question");
|
|
77
|
-
|
|
78
|
-
if (!container || !questionCards?.length) return;
|
|
79
|
-
|
|
80
|
-
questionCards.forEach(card => {
|
|
81
|
-
card.setAttribute("draggable", "true");
|
|
82
|
-
card.setAttribute("role", "option");
|
|
83
|
-
card.setAttribute("aria-grabbed", "false");
|
|
84
|
-
});
|
|
85
|
-
|
|
86
|
-
window.Decidim?.createSortableList?.("#questionnaire-questions-list");
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
// Initialize on load and when new options such as questions etc are added
|
|
90
|
-
initializeSortable();
|
|
91
|
-
|
|
92
|
-
const observer = new MutationObserver(() => {
|
|
93
|
-
clearTimeout(observer.timer);
|
|
94
|
-
observer.timer = setTimeout(initializeSortable, 500);
|
|
95
|
-
});
|
|
96
|
-
|
|
97
|
-
const container = document.querySelector("#questionnaire-questions-list");
|
|
98
|
-
if (container) {
|
|
99
|
-
observer.observe(container, { childList: true, subtree: true });
|
|
100
|
-
}
|
|
101
72
|
});
|
|
102
73
|
</script>
|
|
103
74
|
<% end %>
|
data/config/locales/ro-RO.yml
CHANGED
|
@@ -1 +1,79 @@
|
|
|
1
|
+
---
|
|
1
2
|
ro:
|
|
3
|
+
decidim:
|
|
4
|
+
demographics:
|
|
5
|
+
actions:
|
|
6
|
+
title: Acțiuni
|
|
7
|
+
admin:
|
|
8
|
+
demographics:
|
|
9
|
+
tabs_menu:
|
|
10
|
+
title: Demografice
|
|
11
|
+
demographics_menu:
|
|
12
|
+
questions: Întrebări
|
|
13
|
+
responses: Răspunsuri
|
|
14
|
+
settings: Setări
|
|
15
|
+
publish_responses:
|
|
16
|
+
index:
|
|
17
|
+
description: Descriere
|
|
18
|
+
title: Afișați răspunsurile
|
|
19
|
+
questions:
|
|
20
|
+
edit:
|
|
21
|
+
save: Salvaţi
|
|
22
|
+
title: Întrebări
|
|
23
|
+
questions_form:
|
|
24
|
+
add_question: Adăugați o întrebare
|
|
25
|
+
collapse: Restrângeți toate întrebările
|
|
26
|
+
expand: Extindeți toate întrebările
|
|
27
|
+
responses:
|
|
28
|
+
index:
|
|
29
|
+
publish_responses: Afișați răspunsurile
|
|
30
|
+
title: "%{total} răspunsuri în total"
|
|
31
|
+
settings:
|
|
32
|
+
show:
|
|
33
|
+
collect_data: Permiteți colectarea datelor demografice
|
|
34
|
+
collect_data_help: Activarea acestei opțiuni va permite participanților să își doneze datele către platformă.
|
|
35
|
+
save: Salvați
|
|
36
|
+
title: Setări
|
|
37
|
+
update:
|
|
38
|
+
invalid: A apărut o eroare la salvarea datelor demografice
|
|
39
|
+
success: Date demografice salvate cu succes
|
|
40
|
+
title: Date demografice
|
|
41
|
+
demographics:
|
|
42
|
+
questionnaire:
|
|
43
|
+
delete_my_data: Ștergeți datele
|
|
44
|
+
modal_close: Anulați
|
|
45
|
+
modal_ok: Ok
|
|
46
|
+
modal_question: Toate datele demografice vor fi eliminate.
|
|
47
|
+
modal_title: Ștergeți datele
|
|
48
|
+
submit: Salvați datele
|
|
49
|
+
terms_of_service: condițiile de utilizare
|
|
50
|
+
tos_agreement: Prin participarea dumneavoastră acceptați %{link}.
|
|
51
|
+
show:
|
|
52
|
+
page_title: Informații demografice
|
|
53
|
+
destroy:
|
|
54
|
+
error: A apărut o eroare la eliminarea datelor demografice
|
|
55
|
+
success: Datele demografice au fost eliminate cu succes
|
|
56
|
+
name: Informații demografice
|
|
57
|
+
questions:
|
|
58
|
+
age:
|
|
59
|
+
options:
|
|
60
|
+
- 15 - 29 ani
|
|
61
|
+
- 30 - 44 ani
|
|
62
|
+
- 45 - 64 ani
|
|
63
|
+
- 65 ani şi peste
|
|
64
|
+
question: Care este vârsta dumneavoastră?
|
|
65
|
+
gender:
|
|
66
|
+
options:
|
|
67
|
+
- Bărbat
|
|
68
|
+
- Femeie
|
|
69
|
+
- Non-binar
|
|
70
|
+
- Sexul meu nu este listat
|
|
71
|
+
- Prefer să nu spun
|
|
72
|
+
question: Care dintre următoarele opțiuni descriu cel mai bine sexul dumneavoastră?
|
|
73
|
+
postal:
|
|
74
|
+
question: Care este codul poștal de acasă?
|
|
75
|
+
layouts:
|
|
76
|
+
decidim:
|
|
77
|
+
shared:
|
|
78
|
+
layout_center:
|
|
79
|
+
alert: Furnizând aceste informații, contribuiți la analiza statistică ce contribuie la îmbunătățirea indicatorului de calitate. Datele dumneavoastră vor fi agregate și utilizate numai în scopuri de cercetare.
|
|
@@ -21,6 +21,12 @@ module Decidim
|
|
|
21
21
|
end
|
|
22
22
|
end
|
|
23
23
|
|
|
24
|
+
initializer "decidim_demographics.data_migrate", after: "decidim_core.data_migrate" do
|
|
25
|
+
DataMigrate.configure do |config|
|
|
26
|
+
config.data_migrations_path << root.join("db/data").to_s
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
24
30
|
initializer "decidim_demographics.user_menu" do
|
|
25
31
|
Decidim.menu :user_menu do |menu|
|
|
26
32
|
menu.add_item :demographics,
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: decidim-demographics
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.31.
|
|
4
|
+
version: 0.31.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alexandru-Emil Lupu
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-01-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: decidim-core
|
|
@@ -16,42 +16,42 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - '='
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 0.31.
|
|
19
|
+
version: 0.31.1
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - '='
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 0.31.
|
|
26
|
+
version: 0.31.1
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: decidim-forms
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
31
|
- - '='
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: 0.31.
|
|
33
|
+
version: 0.31.1
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - '='
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: 0.31.
|
|
40
|
+
version: 0.31.1
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: decidim-dev
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
45
|
- - '='
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: 0.31.
|
|
47
|
+
version: 0.31.1
|
|
48
48
|
type: :development
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
52
|
- - '='
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: 0.31.
|
|
54
|
+
version: 0.31.1
|
|
55
55
|
description: Module that collects demographic data about participants.
|
|
56
56
|
email:
|
|
57
57
|
- contact@alecslupu.ro
|