decidim-surveys 0.4.4 → 0.5.0
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/app/assets/images/decidim/surveys/icon.svg +1 -1
- data/app/views/decidim/surveys/admin/surveys/_answer_option.html.erb +7 -3
- data/app/views/decidim/surveys/admin/surveys/_form.html.erb +1 -1
- data/app/views/decidim/surveys/admin/surveys/_question.html.erb +12 -5
- data/app/views/decidim/surveys/surveys/show.html.erb +2 -0
- data/config/i18n-tasks.yml +0 -2
- data/config/locales/ca.yml +1 -1
- data/config/locales/en.yml +3 -0
- data/config/locales/es.yml +1 -1
- data/config/locales/eu.yml +67 -1
- data/config/locales/fi.yml +1 -1
- data/config/locales/fr.yml +64 -1
- data/config/locales/it.yml +1 -1
- data/config/locales/nl.yml +1 -1
- data/config/locales/pl.yml +5 -0
- data/lib/decidim/surveys/feature.rb +4 -5
- metadata +9 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a316d179b99c6256f52de8c35691ea45401c5406
|
|
4
|
+
data.tar.gz: c1de6c6d7dac9273af67e37718264c44e45aaac3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: da4b4873268f1459086dba2cce9cb52802f781ec44de99c13384e0d84261961dd612f950bbcb9381fa2087aa9ae28a91a103bfb878899b32d00fc3224feac97f
|
|
7
|
+
data.tar.gz: 62ed3a28b009c8c2200b1d975fbce32c0a6e8d5bb0eff440cb3bdf26b54147e83563370d8a0243ae301449a9660e2b50f01943650a51ff1dfd95f438864cb13e
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36.02 36.02"><path d="M373,545.54a18,18,0,1,1,18-18A18,18,0,0,1,373,545.54Zm0-34a16,16,0,1,0,16,16A16,16,0,0,0,373,511.53Z" transform="translate(-354.99 -509.53)"/><path d="M377.73,536.41h-9.46a1,1,0,1,1,0-2h9.46A1,1,0,0,1,377.73,536.41Z" transform="translate(-354.99 -509.53)"/><path d="M375,525.54h-6.73a1,1,0,1,1,0-2H375A1,1,0,1,1,375,525.54Z" transform="translate(-354.99 -509.53)"/><path d="M375,535.41a1,1,0,0,1-1-1v-9.87a1,1,0,1,1,2,0v9.87A1,1,0,0,1,375,535.41Z" transform="translate(-354.99 -509.53)"/><path d="M373,523a3,3,0,1,1,3-3A3,3,0,0,1,373,523Zm0-4a1,1,0,1,0,1,1A1,1,0,0,0,373,519Z" transform="translate(-354.99 -509.53)"/><path d="M371,535.41a1,1,0,0,1-1-1v-9.87a1,1,0,1,1,2,0v9.87A1,1,0,0,1,371,535.41Z" transform="translate(-354.99 -509.53)"/></svg>
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36.02 36.02"><path d="M373,545.54a18,18,0,1,1,18-18A18,18,0,0,1,373,545.54Zm0-34a16,16,0,1,0,16,16A16,16,0,0,0,373,511.53Z" transform="translate(-354.99 -509.53)"/><path d="M377.73,536.41h-9.46a1,1,0,1,1,0-2h9.46A1,1,0,0,1,377.73,536.41Z" transform="translate(-354.99 -509.53)"/><path d="M375,525.54h-6.73a1,1,0,1,1,0-2H375A1,1,0,1,1,375,525.54Z" transform="translate(-354.99 -509.53)"/><path d="M375,535.41a1,1,0,0,1-1-1v-9.87a1,1,0,1,1,2,0v9.87A1,1,0,0,1,375,535.41Z" transform="translate(-354.99 -509.53)"/><path d="M373,523a3,3,0,1,1,3-3A3,3,0,0,1,373,523Zm0-4a1,1,0,1,0,1,1A1,1,0,0,0,373,519Z" transform="translate(-354.99 -509.53)"/><path d="M371,535.41a1,1,0,0,1-1-1v-9.87a1,1,0,1,1,2,0v9.87A1,1,0,0,1,371,535.41Z" transform="translate(-354.99 -509.53)"/></svg>
|
|
@@ -11,13 +11,17 @@
|
|
|
11
11
|
<div class="card-section">
|
|
12
12
|
<div class="row column">
|
|
13
13
|
<%=
|
|
14
|
-
translated_field_tag
|
|
14
|
+
translated_field_tag(
|
|
15
|
+
:text_field_tag,
|
|
16
|
+
"survey[questions][][answer_options][]",
|
|
17
|
+
"body",
|
|
18
|
+
answer_option.body,
|
|
15
19
|
tabs_id: tabs_id_for_question_answer_option(question, idx),
|
|
16
20
|
label: t('.statement'),
|
|
17
21
|
disabled: question.nil? || disabled_for_question(survey, question),
|
|
18
22
|
enable_tabs: question.present?
|
|
19
|
-
|
|
23
|
+
)
|
|
20
24
|
%>
|
|
21
25
|
</div>
|
|
22
26
|
</div>
|
|
23
|
-
</div>
|
|
27
|
+
</div>
|
|
@@ -11,21 +11,28 @@
|
|
|
11
11
|
<div class="card-section">
|
|
12
12
|
<div class="row column">
|
|
13
13
|
<%=
|
|
14
|
-
translated_field_tag
|
|
14
|
+
translated_field_tag(
|
|
15
|
+
:text_field_tag,
|
|
16
|
+
"survey[questions][]",
|
|
17
|
+
"body",
|
|
18
|
+
question.body,
|
|
15
19
|
tabs_id: tabs_id_for_question(question),
|
|
16
20
|
label: t('.statement'),
|
|
17
21
|
disabled: disabled_for_question(survey, question),
|
|
18
22
|
enable_tabs: question.persisted?
|
|
19
|
-
|
|
23
|
+
)
|
|
20
24
|
%>
|
|
21
25
|
</div>
|
|
22
26
|
|
|
23
27
|
<div class="row column">
|
|
24
28
|
<%=
|
|
25
|
-
check_box_tag
|
|
29
|
+
check_box_tag(
|
|
30
|
+
"survey[questions][][mandatory]",
|
|
31
|
+
"1",
|
|
32
|
+
question.mandatory,
|
|
26
33
|
id: mandatory_id_for_question(question),
|
|
27
34
|
disabled: disabled_for_question(survey, question)
|
|
28
|
-
|
|
35
|
+
)
|
|
29
36
|
%>
|
|
30
37
|
<%= label_tag "", t('activemodel.attributes.survey_question.mandatory'), for: mandatory_id_for_question(question) %>
|
|
31
38
|
</div>
|
|
@@ -54,4 +61,4 @@
|
|
|
54
61
|
</div>
|
|
55
62
|
</div>
|
|
56
63
|
</div>
|
|
57
|
-
</div>
|
|
64
|
+
</div>
|
data/config/i18n-tasks.yml
CHANGED
data/config/locales/ca.yml
CHANGED
|
@@ -66,4 +66,4 @@ ca:
|
|
|
66
66
|
survey_closed:
|
|
67
67
|
body: L'enquesta està tancada i no s'hi pot participar.
|
|
68
68
|
title: Enquesta tancada
|
|
69
|
-
tos_agreement: En participar en aquesta enquesta acceptes els Termes de Servei
|
|
69
|
+
tos_agreement: En participar en aquesta enquesta acceptes els Termes de Servei
|
data/config/locales/en.yml
CHANGED
data/config/locales/es.yml
CHANGED
|
@@ -66,4 +66,4 @@ es:
|
|
|
66
66
|
survey_closed:
|
|
67
67
|
body: La encuesta está cerrada y no se puede responder.
|
|
68
68
|
title: Encuesta cerrada
|
|
69
|
-
tos_agreement: Al participar en esta encuesta, aceptas sus términos de servicio
|
|
69
|
+
tos_agreement: Al participar en esta encuesta, aceptas sus términos de servicio
|
data/config/locales/eu.yml
CHANGED
|
@@ -2,4 +2,70 @@ eu:
|
|
|
2
2
|
activemodel:
|
|
3
3
|
attributes:
|
|
4
4
|
survey_answer:
|
|
5
|
-
body: Erantzuna
|
|
5
|
+
body: Erantzuna
|
|
6
|
+
survey_question:
|
|
7
|
+
mandatory: Derrigorrezkoa
|
|
8
|
+
question_type: Mota
|
|
9
|
+
decidim:
|
|
10
|
+
features:
|
|
11
|
+
surveys:
|
|
12
|
+
actions:
|
|
13
|
+
answer: Erantzuna
|
|
14
|
+
name: Inkesta
|
|
15
|
+
settings:
|
|
16
|
+
global:
|
|
17
|
+
announcement: Oharra
|
|
18
|
+
step:
|
|
19
|
+
allow_answers: Baimendu erantzunak
|
|
20
|
+
surveys:
|
|
21
|
+
admin:
|
|
22
|
+
application_helper:
|
|
23
|
+
label_for_question:
|
|
24
|
+
question: Galdera
|
|
25
|
+
exports:
|
|
26
|
+
survey_user_answers: Inkesta erabiltzaile erantzunak
|
|
27
|
+
models:
|
|
28
|
+
components:
|
|
29
|
+
description: Deskribapena
|
|
30
|
+
tos: Zerbitzu-baldintzak
|
|
31
|
+
surveys:
|
|
32
|
+
answer_option:
|
|
33
|
+
answer_option: Erantzuna aukera
|
|
34
|
+
remove_answer_option: Kendu erantzun aukera
|
|
35
|
+
statement: Adierazpena
|
|
36
|
+
edit:
|
|
37
|
+
save: Gorde
|
|
38
|
+
title: Titulua
|
|
39
|
+
form:
|
|
40
|
+
add_question: Galdera gehitu
|
|
41
|
+
already_answered_warning: Inkesta dagoeneko erabiltzaile batzuek erantzun dute, beraz, ezin dituzu bere galderak aldatu.
|
|
42
|
+
question:
|
|
43
|
+
add_answer_option: Gehitu erantzun aukera
|
|
44
|
+
question: Galdera
|
|
45
|
+
remove_question: Galdera kendu
|
|
46
|
+
statement: Adierazpena
|
|
47
|
+
update:
|
|
48
|
+
invalid: Inkesta gordetzean erroreak gertatu dira.
|
|
49
|
+
success: Inkesta ondo gorde da.
|
|
50
|
+
question_types:
|
|
51
|
+
long_answer: Erantzun luzea
|
|
52
|
+
multiple_option: Aukera anitz
|
|
53
|
+
short_answer: Erantzun laburra
|
|
54
|
+
single_option: Aukera bakarra
|
|
55
|
+
surveys:
|
|
56
|
+
answer:
|
|
57
|
+
invalid: Inkesta erantzutean erroreak gertatu dira.
|
|
58
|
+
success: Inkesta ondo bete da.
|
|
59
|
+
show:
|
|
60
|
+
answer_survey:
|
|
61
|
+
anonymous_user_message: <a href="%{sign_in_link}">Sartu zure kontuarekin</a> edo <a href="%{sign_up_link}">kontua sortu</a> inkesta erantzuteko.
|
|
62
|
+
title: Inkesta erantzun
|
|
63
|
+
are_you_sure: Ekintza hau ezin da desegin eta ezin izango dituzu zure erantzunak editatu. Ziur zaude?
|
|
64
|
+
submit: Bidali
|
|
65
|
+
survey_answered:
|
|
66
|
+
body: Dagoeneko inkesta hau erantzun duzu.
|
|
67
|
+
title: Inkesta jadanik erantzuna
|
|
68
|
+
survey_closed:
|
|
69
|
+
body: Inkesta itxita dago eta ezin da erantzun.
|
|
70
|
+
title: Inkesta itxia
|
|
71
|
+
tos_agreement: Inkestan parte hartuz, Zerbitzu-baldintzak onartzen dituzu
|
data/config/locales/fi.yml
CHANGED
data/config/locales/fr.yml
CHANGED
|
@@ -1,5 +1,68 @@
|
|
|
1
1
|
fr:
|
|
2
|
+
activemodel:
|
|
3
|
+
attributes:
|
|
4
|
+
survey_answer:
|
|
5
|
+
body: Répondre
|
|
6
|
+
survey_question:
|
|
7
|
+
mandatory: Requis
|
|
8
|
+
question_type: Type de question
|
|
2
9
|
decidim:
|
|
3
10
|
features:
|
|
4
11
|
surveys:
|
|
5
|
-
|
|
12
|
+
actions:
|
|
13
|
+
answer: Répondre
|
|
14
|
+
name: Enquête
|
|
15
|
+
settings:
|
|
16
|
+
step:
|
|
17
|
+
allow_answers: Autoriser les réponses
|
|
18
|
+
surveys:
|
|
19
|
+
admin:
|
|
20
|
+
application_helper:
|
|
21
|
+
label_for_question:
|
|
22
|
+
question: Question
|
|
23
|
+
exports:
|
|
24
|
+
survey_user_answers: Réponses des participants à l'enquête
|
|
25
|
+
models:
|
|
26
|
+
components:
|
|
27
|
+
description: Description
|
|
28
|
+
tos: Conditions d'utilisation
|
|
29
|
+
surveys:
|
|
30
|
+
answer_option:
|
|
31
|
+
answer_option: Option de réponse
|
|
32
|
+
remove_answer_option: Supprimer l'option de réponse
|
|
33
|
+
edit:
|
|
34
|
+
save: Sauvegarder
|
|
35
|
+
title: Titre
|
|
36
|
+
form:
|
|
37
|
+
add_question: Ajouter une question
|
|
38
|
+
already_answered_warning: Votre enquête a déjà reçu des réponses, vous ne pouvez donc pas modifier ses questions.
|
|
39
|
+
question:
|
|
40
|
+
add_answer_option: Ajouter une option de réponse
|
|
41
|
+
question: Question
|
|
42
|
+
remove_question: Supprimer la question
|
|
43
|
+
statement: Déclaration
|
|
44
|
+
update:
|
|
45
|
+
invalid: Il y a eu des erreurs lors de la sauvegarde de l'enquête.
|
|
46
|
+
success: Enquête enregistrée avec succès.
|
|
47
|
+
question_types:
|
|
48
|
+
long_answer: Réponse longue
|
|
49
|
+
multiple_option: Options multiples
|
|
50
|
+
short_answer: Réponse courte
|
|
51
|
+
single_option: Option unique
|
|
52
|
+
surveys:
|
|
53
|
+
answer:
|
|
54
|
+
invalid: Votre réponse à l'enquête comporte des erreurs.
|
|
55
|
+
success: Votre réponse à l'enquête a bien été enregistrée.
|
|
56
|
+
show:
|
|
57
|
+
answer_survey:
|
|
58
|
+
anonymous_user_message: Pour répondre à l'enquête<a href="%{sign_in_link}"> identifiez-vous avec votre compte</a> ou <a href="%{sign_up_link}">inscrivez-vous.</a> .
|
|
59
|
+
title: Participer à l'enquête
|
|
60
|
+
are_you_sure: Cette action ne peut pas être annulée et vous ne pourrez pas modifier vos réponses. Êtes-vous sûr?
|
|
61
|
+
submit: Envoyer
|
|
62
|
+
survey_answered:
|
|
63
|
+
body: Vous avez déjà participé à cette enquête.
|
|
64
|
+
title: Enquête complétée
|
|
65
|
+
survey_closed:
|
|
66
|
+
body: L'enquête est fermée et n'accepte plus de réponse.
|
|
67
|
+
title: Enquête fermée
|
|
68
|
+
tos_agreement: En participant à ce sondage, vous acceptez ses conditions d'utilisation
|
data/config/locales/it.yml
CHANGED
data/config/locales/nl.yml
CHANGED
|
@@ -38,14 +38,13 @@ Decidim.register_feature(:surveys) do |feature|
|
|
|
38
38
|
# These actions permissions can be configured in the admin panel
|
|
39
39
|
feature.actions = %w(answer)
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
# # settings.attribute :vote_limit, type: :integer, default: 0
|
|
45
|
-
# end
|
|
41
|
+
feature.settings(:global) do |settings|
|
|
42
|
+
settings.attribute :announcement, type: :text, translated: true, editor: true
|
|
43
|
+
end
|
|
46
44
|
|
|
47
45
|
feature.settings(:step) do |settings|
|
|
48
46
|
settings.attribute :allow_answers, type: :boolean, default: false
|
|
47
|
+
settings.attribute :announcement, type: :text, translated: true, editor: true
|
|
49
48
|
end
|
|
50
49
|
|
|
51
50
|
# feature.register_resource do |resource|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: decidim-surveys
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Josep Jaume Rey Peroy
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2017-08-
|
|
13
|
+
date: 2017-08-17 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: decidim-core
|
|
@@ -18,14 +18,14 @@ dependencies:
|
|
|
18
18
|
requirements:
|
|
19
19
|
- - '='
|
|
20
20
|
- !ruby/object:Gem::Version
|
|
21
|
-
version: 0.
|
|
21
|
+
version: 0.5.0
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
25
25
|
requirements:
|
|
26
26
|
- - '='
|
|
27
27
|
- !ruby/object:Gem::Version
|
|
28
|
-
version: 0.
|
|
28
|
+
version: 0.5.0
|
|
29
29
|
- !ruby/object:Gem::Dependency
|
|
30
30
|
name: jquery-tmpl-rails
|
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -46,28 +46,28 @@ dependencies:
|
|
|
46
46
|
requirements:
|
|
47
47
|
- - '='
|
|
48
48
|
- !ruby/object:Gem::Version
|
|
49
|
-
version: 0.
|
|
49
|
+
version: 0.5.0
|
|
50
50
|
type: :development
|
|
51
51
|
prerelease: false
|
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
|
53
53
|
requirements:
|
|
54
54
|
- - '='
|
|
55
55
|
- !ruby/object:Gem::Version
|
|
56
|
-
version: 0.
|
|
56
|
+
version: 0.5.0
|
|
57
57
|
- !ruby/object:Gem::Dependency
|
|
58
58
|
name: decidim-admin
|
|
59
59
|
requirement: !ruby/object:Gem::Requirement
|
|
60
60
|
requirements:
|
|
61
61
|
- - '='
|
|
62
62
|
- !ruby/object:Gem::Version
|
|
63
|
-
version: 0.
|
|
63
|
+
version: 0.5.0
|
|
64
64
|
type: :development
|
|
65
65
|
prerelease: false
|
|
66
66
|
version_requirements: !ruby/object:Gem::Requirement
|
|
67
67
|
requirements:
|
|
68
68
|
- - '='
|
|
69
69
|
- !ruby/object:Gem::Version
|
|
70
|
-
version: 0.
|
|
70
|
+
version: 0.5.0
|
|
71
71
|
description: A component for decidim's participatory processes.
|
|
72
72
|
email:
|
|
73
73
|
- josepjaume@gmail.com
|
|
@@ -120,6 +120,7 @@ files:
|
|
|
120
120
|
- config/locales/fr.yml
|
|
121
121
|
- config/locales/it.yml
|
|
122
122
|
- config/locales/nl.yml
|
|
123
|
+
- config/locales/pl.yml
|
|
123
124
|
- db/migrate/20170511092231_create_decidim_surveys.rb
|
|
124
125
|
- db/migrate/20170515090916_create_decidim_survey_questions.rb
|
|
125
126
|
- db/migrate/20170515144119_create_decidim_survey_answers.rb
|