decidim-demographics 0.31.0.rc1 → 0.31.0.rc2
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: be11affa7a14668e0a985f04a6adedc8d9471ffb9f347da6e32bd2d710308b50
|
|
4
|
+
data.tar.gz: 03fcdbd7cc1b2d93c867ba58d6d4c932b9d3d631b3c02ce64f1c0d01bec121de
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b604bf67addb82b3aca17f151a8382ea6dfa0310ffc810b23fd130ae875aafb7a9b20f02771fdde321e719f4cd1d826e3f179a63e32a2797b02caaedf4cadaa7
|
|
7
|
+
data.tar.gz: 7f21ee2df6262acf7392650211714c0197ef3bf1c1cb5152dc54072deb64510c32cea656c88dd05d4a0e0559d794f72d275dfa762a31b703e127aa6fd605ab09
|
|
@@ -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">
|
|
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">
|
|
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,6 +69,35 @@
|
|
|
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
|
+
}
|
|
72
101
|
});
|
|
73
102
|
</script>
|
|
74
103
|
<% end %>
|
data/config/locales/cs.yml
CHANGED
|
@@ -16,8 +16,23 @@ cs:
|
|
|
16
16
|
index:
|
|
17
17
|
description: Popis
|
|
18
18
|
title: Zobrazit odpovědi
|
|
19
|
+
questions:
|
|
20
|
+
edit:
|
|
21
|
+
save: Uložit
|
|
22
|
+
title: Otázky
|
|
23
|
+
questions_form:
|
|
24
|
+
add_question: Přidat otázku
|
|
25
|
+
collapse: Sbalit všechny otázky
|
|
26
|
+
expand: Rozbalit všechny otázky
|
|
27
|
+
responses:
|
|
28
|
+
index:
|
|
29
|
+
publish_responses: Zobrazit odpovědi
|
|
30
|
+
title: "%{total} odpovědí celkem"
|
|
19
31
|
settings:
|
|
20
32
|
show:
|
|
33
|
+
collect_data: Povolit sběr demografických dat
|
|
34
|
+
collect_data_help: Povolení tohoto nastavení umožní uživatelům darovat svá data na platformu.
|
|
35
|
+
save: Uložit
|
|
21
36
|
title: Nastavení
|
|
22
37
|
update:
|
|
23
38
|
invalid: Došlo k chybě při ukládání demografických dat
|
|
@@ -30,6 +45,15 @@ cs:
|
|
|
30
45
|
modal_ok: Ok
|
|
31
46
|
modal_question: Všechny vaše demografické údaje budou odstraněny.
|
|
32
47
|
modal_title: Smazat data
|
|
48
|
+
submit: Uložit data
|
|
49
|
+
terms_of_service: podmínky služby
|
|
50
|
+
tos_agreement: Zúčastněním souhlasíte s %{link}.
|
|
51
|
+
show:
|
|
52
|
+
page_title: Demografická data darování
|
|
53
|
+
destroy:
|
|
54
|
+
error: Při odstraňování darovaných dat došlo k chybě
|
|
55
|
+
success: Vaše darovaná data byla úspěšně odstraněna
|
|
56
|
+
name: Demografická data darování
|
|
33
57
|
questions:
|
|
34
58
|
age:
|
|
35
59
|
options:
|
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.0.
|
|
4
|
+
version: 0.31.0.rc2
|
|
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: 2025-
|
|
11
|
+
date: 2025-10-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.0.
|
|
19
|
+
version: 0.31.0.rc2
|
|
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.0.
|
|
26
|
+
version: 0.31.0.rc2
|
|
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.0.
|
|
33
|
+
version: 0.31.0.rc2
|
|
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.0.
|
|
40
|
+
version: 0.31.0.rc2
|
|
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.0.
|
|
47
|
+
version: 0.31.0.rc2
|
|
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.0.
|
|
54
|
+
version: 0.31.0.rc2
|
|
55
55
|
description: Module that collects demographic data about participants.
|
|
56
56
|
email:
|
|
57
57
|
- contact@alecslupu.ro
|