decidim-forms 0.26.0.rc2 → 0.26.2

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
  SHA256:
3
- metadata.gz: 0b9bda71f82ea8834423fdd0160f804ffd07b4f2463374c06c497fbac9311349
4
- data.tar.gz: 734131fa283abc6c4985cccb00221e2899cbe9a51bb6f4526a6235d144a318ad
3
+ metadata.gz: c05c5c0a4333cc4dbefaa5e8d37fa861059a6881d5d47d075fd618e7f7169826
4
+ data.tar.gz: f46c7ea6704161d57385dd589360b78fe3763057e532640004cbb539aee5c0e4
5
5
  SHA512:
6
- metadata.gz: 0eef2098c5cb0e0239051c2889a1ab727a746622d78ceccaf3b9a74249c0e605d713b4d6189d15c68114fe17cf30cd0ed55105c8e2392c866906bc0efeea6ef9
7
- data.tar.gz: 77b2ce921a9dfd4415f59d1227bc24b22c3307a81a5214e8b66fdfe9b12a117ec91d70f0655e9dafaaaf5ba491e1a453053e4008e32744b6280a292d3011bf6b
6
+ metadata.gz: fb39a317c541eca9a1d3ed286b8b3873a79bc7f748a37ae4a20a693e19900b473b6e83f46ec82d07c3d5d5b603143d5d46327addfd19d99f014f163f8a741775
7
+ data.tar.gz: 593ac4089260f909886fa7b05de438d2da561a4d5801742044c79a7c2ee5343c1c59df55282c8fd18af036ce272fc04329c3ef9bb04699de5cf5182dd361ed36
@@ -30,7 +30,9 @@
30
30
 
31
31
  <%= answer_form.hidden_field :question_id %>
32
32
 
33
- <small class="form-error max-choices-alert"><%= t(".max_choices_alert") %></small>
33
+ <% if answer.question.max_choices %>
34
+ <small class="form-error max-choices-alert"><%= t(".max_choices_alert") %></small>
35
+ <% end %>
34
36
 
35
37
  <% answer.errors.full_messages.each do |msg| %>
36
38
  <small class="form-error is-visible"><%= msg %></small>
@@ -8,7 +8,7 @@
8
8
  <%= render partial: "decidim/shared/component_announcement" %>
9
9
 
10
10
  <div class="row columns">
11
- <h3 class="section-heading"><%= translated_attribute questionnaire.title %></h3>
11
+ <h2 class="section-heading"><%= translated_attribute questionnaire.title %></h2>
12
12
  <div class="row">
13
13
  <div class="columns large-<%= columns %> medium-centered lead">
14
14
  <%= decidim_sanitize_editor translated_attribute questionnaire.description %>
@@ -33,7 +33,7 @@
33
33
  <% if visitor_already_answered? %>
34
34
  <div class="section">
35
35
  <div class="callout success">
36
- <h5><%= t(".questionnaire_answered.title") %></h5>
36
+ <h3 class="heading5"><%= t(".questionnaire_answered.title") %></h3>
37
37
  <p><%= t(".questionnaire_answered.body") %></p>
38
38
  </div>
39
39
  </div>
@@ -42,7 +42,7 @@
42
42
  <noscript>
43
43
  <div class="section">
44
44
  <div class="callout warning">
45
- <h5><%= t(".questionnaire_js_disabled.title") %></h5>
45
+ <h3 class="heading5"><%= t(".questionnaire_js_disabled.title") %></h3>
46
46
  <p><%= t(".questionnaire_js_disabled.body") %></p>
47
47
  </div>
48
48
  </div>
@@ -50,7 +50,7 @@
50
50
  <% unless current_participatory_space.can_participate?(current_user) %>
51
51
  <div class="section">
52
52
  <div class="callout alert">
53
- <h5><%= t(".questionnaire_for_private_users.title") %></h5>
53
+ <h3 class="heading5"><%= t(".questionnaire_for_private_users.title") %></h3>
54
54
  <p><%= t(".questionnaire_for_private_users.body") %></p>
55
55
  </div>
56
56
  </div>
@@ -64,10 +64,10 @@
64
64
  <% @form.responses_by_step.each_with_index do |step_answers, step_index| %>
65
65
  <div id="step-<%= step_index %>" class="<%= step_index.zero? ? "questionnaire-step" : "questionnaire-step hide" %>" data-toggler=".hide">
66
66
  <% if @form.total_steps > 1 %>
67
- <h4 class="section-heading">
67
+ <h3 class="section-heading">
68
68
  <%= t(".current_step", step: step_index + 1) %>
69
69
  <span class="answer-questionnaire__steps"><%= t(".of_total_steps", total_steps: @form.total_steps) %></span>
70
- </h4>
70
+ </h3>
71
71
  <% end %>
72
72
 
73
73
  <% step_answers.each do |answer| %>
@@ -128,7 +128,7 @@
128
128
  <% end %>
129
129
  <% else %>
130
130
  <div class="answer-questionnaire">
131
- <h5 class="section-heading"><%= t(".answer_questionnaire.title") %></h5>
131
+ <h3 class="section-heading"><%= t(".answer_questionnaire.title") %></h3>
132
132
  <p>
133
133
  <%= t(".answer_questionnaire.anonymous_user_message", sign_in_link: decidim.new_user_session_path, sign_up_link: decidim.new_user_registration_path).html_safe %>
134
134
  </p>
@@ -141,7 +141,7 @@
141
141
  <% else %>
142
142
  <div class="section">
143
143
  <div class="callout warning">
144
- <h4><%= t(".questionnaire_closed.title") %></h4>
144
+ <h3 class="heading4"><%= t(".questionnaire_closed.title") %></h3>
145
145
  <p><%= t(".questionnaire_closed.body") %></p>
146
146
  </div>
147
147
  </div>
@@ -3,6 +3,7 @@ ar:
3
3
  attributes:
4
4
  answer:
5
5
  body: إجابة
6
+ choices: الخيارات
6
7
  question:
7
8
  max_choices: أقصى عدد من الخيارات
8
9
  question_type: نوع
@@ -30,6 +31,9 @@ ar:
30
31
  free_text: نص حر
31
32
  remove: إزالة
32
33
  statement: بيان
34
+ display_condition:
35
+ condition_question: سؤال
36
+ remove: حذف
33
37
  edit:
34
38
  save: حفظ
35
39
  form:
@@ -47,6 +51,8 @@ ar:
47
51
  remove: إزالة
48
52
  statement: بيان
49
53
  up: فوق
54
+ title_and_description:
55
+ description: الوصف
50
56
  update:
51
57
  invalid: كانت هناك مشكلة في حفظ النموذج.
52
58
  errors:
@@ -79,6 +79,7 @@ de:
79
79
  form:
80
80
  add_question: Frage hinzufügen
81
81
  add_separator: Trennzeichen hinzufügen
82
+ add_title_and_description: Füge Titel und Beschreibung hinzu
82
83
  already_answered_warning: Der Fragebogen wird bereits von einigen Benutzern beantwortet, sodass Sie die Fragen nicht ändern können.
83
84
  collapse: Alle Fragen einklappen
84
85
  expand: Alle Fragen ausklappen
@@ -108,6 +109,15 @@ de:
108
109
  remove: Löschen
109
110
  separator: Trennzeichen
110
111
  up: Hoch
112
+ title_and_description:
113
+ collapse: Einklappen
114
+ description: Beschreibung
115
+ down: Runter
116
+ expand: Ausklappen
117
+ remove: Entfernen
118
+ title: Titel
119
+ title_and_description: Titel und Beschreibung
120
+ up: Hinauf
111
121
  update:
112
122
  invalid: Beim Speichern des Fragebogens sind Fehler aufgetreten.
113
123
  success: Formular erfolgreich gespeichert.
@@ -131,6 +141,7 @@ de:
131
141
  short_answer: Kurze Antwort
132
142
  single_option: Einzelne Option
133
143
  sorting: Sortierung
144
+ title_and_description: Titel und Beschreibung
134
145
  questionnaires:
135
146
  answer:
136
147
  invalid: Bei der Beantwortung des Fragebogens sind Fehler aufgetreten.
@@ -32,6 +32,7 @@ gl:
32
32
  save: Gardar
33
33
  form:
34
34
  add_question: Engadir pregunta
35
+ add_title_and_description: Engadir títutlo e descrición
35
36
  already_answered_warning: Algúns usuarios xa responderon o cuestionario para que non poida modificar as súas preguntas.
36
37
  matrix_row:
37
38
  remove: Quitar
@@ -45,6 +46,15 @@ gl:
45
46
  remove: Quitar
46
47
  statement: Declaración
47
48
  up: Arriba
49
+ title_and_description:
50
+ collapse: Contraer
51
+ description: Descrición
52
+ down: Abaixo
53
+ expand: Expandir
54
+ remove: Eliminar
55
+ title: Título
56
+ title_and_description: Título e descrición
57
+ up: Arriba
48
58
  update:
49
59
  invalid: Produciuse un erro ao gardar o cuestionario.
50
60
  errors:
@@ -58,6 +68,7 @@ gl:
58
68
  short_answer: Resposta curta
59
69
  single_option: Opción única
60
70
  sorting: Clasificación
71
+ title_and_description: Título e descrición
61
72
  questionnaires:
62
73
  answer:
63
74
  invalid: Houbo erros ao responder ao cuestionario.
@@ -34,6 +34,7 @@ hu:
34
34
  save: Mentés
35
35
  form:
36
36
  add_question: Kérdés hozzáadása
37
+ add_title_and_description: Adj hozzá címet és leírást
37
38
  already_answered_warning: Néhány felhasználó már válaszolt a kérdőívre, így nem változtathatja meg kérdéseit.
38
39
  collapse: Minden kérdés összecsukása
39
40
  expand: Minden kérdés kibontása
@@ -51,6 +52,15 @@ hu:
51
52
  remove: Eltávolít
52
53
  statement: Nyilatkozat
53
54
  up: Fel
55
+ title_and_description:
56
+ collapse: Összecsuk
57
+ description: Leírás
58
+ down: Le
59
+ expand: Kibont
60
+ remove: Eltávolít
61
+ title: Cím
62
+ title_and_description: Cím és leírás
63
+ up: Fel
54
64
  update:
55
65
  invalid: Hiba történt a kérdőív mentésekor.
56
66
  errors:
@@ -64,6 +74,7 @@ hu:
64
74
  short_answer: Rövid válasz
65
75
  single_option: Egy választási lehetőség
66
76
  sorting: Válogatás
77
+ title_and_description: Cím és leírás
67
78
  questionnaires:
68
79
  answer:
69
80
  invalid: Hiba történt a kérdőív megválaszolásakor.
@@ -3,15 +3,22 @@
3
3
  attributes:
4
4
  answer:
5
5
  body: Svar
6
+ choices: Valg
7
+ selected_choices: Valgte valg
6
8
  question:
7
9
  max_choices: Maksimalt antall valg
8
10
  question_type: Type
9
11
  questionnaire_question:
10
12
  mandatory: Obligatorisk
13
+ max_characters: Tegngrense (la være 0 hvis ingen begrensning)
11
14
  errors:
12
15
  models:
13
16
  answer:
14
17
  attributes:
18
+ add_documents:
19
+ needs_to_be_reattached: Må legges til på nytt
20
+ body:
21
+ too_long: er for lang
15
22
  choices:
16
23
  missing: er ikke fullstendig
17
24
  too_many: er for mange
@@ -48,16 +55,44 @@
48
55
  title: "%{total} svar totalt"
49
56
  show:
50
57
  title: 'Svar #%{number}'
58
+ display_condition:
59
+ answer_option: Svaralternativ
60
+ condition_question: Spørsmål
61
+ condition_type: Betingelse
62
+ condition_types:
63
+ answered: Besvart
64
+ equal: Lik
65
+ match: Inkluder tekst
66
+ not_answered: Ikke besvart
67
+ not_equal: Ikke lik
68
+ condition_value: Inkludert tekst
69
+ display_condition: Vis betingelse
70
+ mandatory: Denne betingelsen må alltid oppfylles uavhengig av status for andre betingelser
71
+ remove: Fjern
72
+ save_warning: Husk å lagre skjemaet før du konfigurerer visningsbetingelser
73
+ select_answer_option: Velg svaralternativ
74
+ select_condition_question: Velg et spørsmål
75
+ select_condition_type: Velg en betingelsestype
51
76
  edit:
52
77
  save: Lagre
78
+ title: Rediger spørreskjema
53
79
  form:
54
80
  add_question: Legg til spørsmål
81
+ add_separator: Legg til skilletegn
82
+ add_title_and_description: Legg til tittel og beskrivelse
55
83
  already_answered_warning: Skjemaet er allerede besvart av noen brukere derfor kan du ikke endre spørsmålene.
84
+ collapse: Skjul alle spørsmål
85
+ expand: Utvid alle spørsmål
86
+ preview: Forhåndsvis
87
+ title: Rediger skjema for %{questionnaire_for}
88
+ unpublished_warning: Skjemaet er ikke publisert. Du kan endre spørsmålet, men da slettes nåværende svar.
56
89
  matrix_row:
90
+ matrix_row: Rad
57
91
  remove: Fjern
58
92
  statement: Uttalelse
59
93
  question:
60
94
  add_answer_option: Legg til svaralternativ
95
+ add_display_condition: Legg til visningsbetingelse
61
96
  add_display_condition_info: Lagre skjemaet for å konfigurere visningsbetingelser
62
97
  add_matrix_row: Legg til rad
63
98
  any: Alle
@@ -74,8 +109,18 @@
74
109
  remove: Fjern
75
110
  separator: Skilletegn
76
111
  up: Opp
112
+ title_and_description:
113
+ collapse: Kollaps
114
+ description: Beskrivelse
115
+ down: Ned
116
+ expand: Utvid
117
+ remove: Fjern
118
+ title: Tittel
119
+ title_and_description: Tittel og beskrivelse
120
+ up: Opp
77
121
  update:
78
122
  invalid: Det oppstod et problem med å lagre dette skjema.
123
+ success: Skjemaet ble lagret.
79
124
  errors:
80
125
  answer:
81
126
  body: Teksten kan ikke være blank
@@ -84,12 +129,19 @@
84
129
  images:
85
130
  dimensions: "%{width} x %{height} px"
86
131
  dimensions_info: 'Dette bildet vil være:'
132
+ processors:
133
+ resize_and_pad: Endret størrelse og avstand til
134
+ resize_to_fit: Endret størrelse for å passe
87
135
  question_types:
136
+ files: Filer
88
137
  long_answer: Langt svar
138
+ matrix_multiple: Matrise (Flervalg)
139
+ matrix_single: Matrise (Enkeltvalg)
89
140
  multiple_option: Flere alternativer
90
141
  short_answer: Kort svar
91
142
  single_option: Enkelt alternativ
92
143
  sorting: Sortering
144
+ title_and_description: Tittel og beskrivelse
93
145
  questionnaires:
94
146
  answer:
95
147
  invalid: Det oppstod et problem med å svare på skjemaet.
@@ -112,10 +112,12 @@ ro:
112
112
  title_and_description:
113
113
  collapse: Restrânge
114
114
  description: Descriere
115
+ down: Mergi în jos
115
116
  expand: Extinde
116
117
  remove: Șterge
117
118
  title: Titlu
118
119
  title_and_description: Titlu și descriere
120
+ up: Mergi în sus
119
121
  update:
120
122
  invalid: A apărut o eroare la salvarea chestionarului.
121
123
  success: Chestionarul a fost salvat cu succes.
@@ -79,6 +79,7 @@ sv:
79
79
  form:
80
80
  add_question: Lägg till fråga
81
81
  add_separator: Lägg till separator
82
+ add_title_and_description: Lägg till titel och beskrivning
82
83
  already_answered_warning: Frågeformuläret har redan besvarats av vissa användare så du inte kan ändra dess frågor.
83
84
  collapse: Komprimera alla frågor
84
85
  expand: Expandera alla frågor
@@ -108,8 +109,18 @@ sv:
108
109
  remove: Radera
109
110
  separator: Avgränsare
110
111
  up: Upp
112
+ title_and_description:
113
+ collapse: Kollapsa
114
+ description: Beskrivning
115
+ down: Ner
116
+ expand: Expandera
117
+ remove: Ta bort
118
+ title: Titel
119
+ title_and_description: Titel och beskrivning
120
+ up: Upp
111
121
  update:
112
122
  invalid: Det gick inte att spara formuläret.
123
+ success: Formuläret har sparats.
113
124
  errors:
114
125
  answer:
115
126
  body: Kroppen kan inte vara to
@@ -130,6 +141,7 @@ sv:
130
141
  short_answer: Kort svar
131
142
  single_option: Ett alternativ
132
143
  sorting: Sortering
144
+ title_and_description: Titel och beskrivning
133
145
  questionnaires:
134
146
  answer:
135
147
  invalid: Det gick inte att besvara formuläret.
@@ -241,6 +241,9 @@ shared_examples_for "has questionnaire" do
241
241
 
242
242
  it "shows errors without submitting the form" do
243
243
  expect(page).to have_no_selector ".alert.flash"
244
+ different_error = I18n.t("decidim.forms.questionnaires.answer.max_choices_alert")
245
+ expect(different_error).to eq("There are too many choices selected")
246
+ expect(page).not_to have_content(different_error)
244
247
 
245
248
  expect(page).to have_content("can't be blank")
246
249
  end
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-forms version.
5
5
  module Forms
6
6
  def self.version
7
- "0.26.0.rc2"
7
+ "0.26.2"
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-forms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.26.0.rc2
4
+ version: 0.26.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2022-02-02 00:00:00.000000000 Z
14
+ date: 2022-06-14 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: decidim-core
@@ -19,14 +19,14 @@ dependencies:
19
19
  requirements:
20
20
  - - '='
21
21
  - !ruby/object:Gem::Version
22
- version: 0.26.0.rc2
22
+ version: 0.26.2
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - '='
28
28
  - !ruby/object:Gem::Version
29
- version: 0.26.0.rc2
29
+ version: 0.26.2
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: wicked_pdf
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -61,28 +61,28 @@ dependencies:
61
61
  requirements:
62
62
  - - '='
63
63
  - !ruby/object:Gem::Version
64
- version: 0.26.0.rc2
64
+ version: 0.26.2
65
65
  type: :development
66
66
  prerelease: false
67
67
  version_requirements: !ruby/object:Gem::Requirement
68
68
  requirements:
69
69
  - - '='
70
70
  - !ruby/object:Gem::Version
71
- version: 0.26.0.rc2
71
+ version: 0.26.2
72
72
  - !ruby/object:Gem::Dependency
73
73
  name: decidim-dev
74
74
  requirement: !ruby/object:Gem::Requirement
75
75
  requirements:
76
76
  - - '='
77
77
  - !ruby/object:Gem::Version
78
- version: 0.26.0.rc2
78
+ version: 0.26.2
79
79
  type: :development
80
80
  prerelease: false
81
81
  version_requirements: !ruby/object:Gem::Requirement
82
82
  requirements:
83
83
  - - '='
84
84
  - !ruby/object:Gem::Version
85
- version: 0.26.0.rc2
85
+ version: 0.26.2
86
86
  description: A forms gem for decidim.
87
87
  email:
88
88
  - josepjaume@gmail.com
@@ -308,9 +308,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
308
308
  version: '2.7'
309
309
  required_rubygems_version: !ruby/object:Gem::Requirement
310
310
  requirements:
311
- - - ">"
311
+ - - ">="
312
312
  - !ruby/object:Gem::Version
313
- version: 1.3.1
313
+ version: '0'
314
314
  requirements: []
315
315
  rubygems_version: 3.1.6
316
316
  signing_key: