decidim-forms 0.26.1 → 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: f404f65c4c4078d0c7ba93cbfc1a44788d676d4b9cb95a0f60877c4ceea5d09e
4
- data.tar.gz: 477c064024398597eef4bcc54ed09589dd006a3cf01377415f392647e3f9c932
3
+ metadata.gz: c05c5c0a4333cc4dbefaa5e8d37fa861059a6881d5d47d075fd618e7f7169826
4
+ data.tar.gz: f46c7ea6704161d57385dd589360b78fe3763057e532640004cbb539aee5c0e4
5
5
  SHA512:
6
- metadata.gz: 0bfa63e6b84c76c3d06d23f114108e1c0855fc1df925530a16adb706908f0c4eb2ef54577ce7c6a9721833dca3be38cc3341df96c216a6210a16f04d5241b5d4
7
- data.tar.gz: 7f3f34e5af22ad66e92624d3fab90f556c3773eec9278f70c8300b46f1ba8dea6ec9c62ed48e3ae7de05c0cdc1031eab6e56b68d20d0acdcfb269c57ae6d5b9f
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>
@@ -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.1"
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.1
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-03-25 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.1
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.1
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.1
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.1
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.1
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.1
85
+ version: 0.26.2
86
86
  description: A forms gem for decidim.
87
87
  email:
88
88
  - josepjaume@gmail.com