decidim-surveys 0.4.4 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ac6eccc7e1fa0861b67609403d6d9668494e5960
4
- data.tar.gz: fa8da36871f31f1b77d84d1fba7cc893b2ea402e
3
+ metadata.gz: a316d179b99c6256f52de8c35691ea45401c5406
4
+ data.tar.gz: c1de6c6d7dac9273af67e37718264c44e45aaac3
5
5
  SHA512:
6
- metadata.gz: 47ce7f70e447f5545917fcc8a930a6f2be87349d69b77e8999198546b1763dbcedac6d437b609cd79c7da460c77d36ee077e7184b71165a53d9680b6d7e33708
7
- data.tar.gz: b191229066b83ac755c0ce7428a41bbe923b321b5b58a1802fcd4bbfbf8366d3011dd7bccda9f0d217bf9aa6f5050e247fb6090618c40652cd101a53131f4652
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 :text_field_tag, "survey[questions][][answer_options][]", "body", answer_option.body, {
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>
@@ -44,4 +44,4 @@
44
44
  </div>
45
45
  </div>
46
46
 
47
- <%= javascript_include_tag "decidim/surveys/admin/surveys" %>
47
+ <%= javascript_include_tag "decidim/surveys/admin/surveys" %>
@@ -11,21 +11,28 @@
11
11
  <div class="card-section">
12
12
  <div class="row column">
13
13
  <%=
14
- translated_field_tag :text_field_tag, "survey[questions][]", "body", question.body, {
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 "survey[questions][][mandatory]", "1", question.mandatory, {
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>
@@ -3,6 +3,8 @@
3
3
  description: translated_attribute(survey.description),
4
4
  }) %>
5
5
 
6
+ <%= render partial: "decidim/shared/feature_announcement" %>
7
+
6
8
  <div class="row columns">
7
9
  <h2 class="section-heading"><%= translated_attribute survey.title %></h2>
8
10
  <div class="row">
@@ -7,5 +7,3 @@ ignore_unused:
7
7
  - "decidim.surveys.admin.surveys.question.question"
8
8
  - "decidim.surveys.admin.exports.*"
9
9
  - "activemodel.attributes.survey_answer.*"
10
- ignore_missing:
11
- - decidim.participatory_processes.scopes.global
@@ -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
@@ -14,8 +14,11 @@ en:
14
14
  answer: Answer
15
15
  name: Survey
16
16
  settings:
17
+ global:
18
+ announcement: Announcement
17
19
  step:
18
20
  allow_answers: Allow answers
21
+ announcement: Announcement
19
22
  surveys:
20
23
  admin:
21
24
  application_helper:
@@ -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
@@ -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
@@ -2,4 +2,4 @@ fi:
2
2
  decidim:
3
3
  features:
4
4
  surveys:
5
- name: Tutkimus
5
+ name: Tutkimus
@@ -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
- name: Enquête
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
@@ -2,4 +2,4 @@ it:
2
2
  activemodel:
3
3
  attributes:
4
4
  survey_answer:
5
- body: Risposta
5
+ body: Risposta
@@ -2,4 +2,4 @@ nl:
2
2
  activemodel:
3
3
  attributes:
4
4
  survey_answer:
5
- body: Antwoord
5
+ body: Antwoord
@@ -0,0 +1,5 @@
1
+ pl:
2
+ activemodel:
3
+ attributes:
4
+ survey_answer:
5
+ body: Odpowiedź
@@ -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
- # feature.settings(:global) do |settings|
42
- # # Add your global settings
43
- # # Available types: :integer, :boolean
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.4
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-02 00:00:00.000000000 Z
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.4.4
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.4.4
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.4.4
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.4.4
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.4.4
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.4.4
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