gov_uk_date_fields 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gov_uk_date_fields/form_fields.rb +3 -1
- data/lib/gov_uk_date_fields/version.rb +1 -1
- data/test/dummy/log/test.log +1461 -0
- data/test/form_fields_test.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51056c28ec17537c61e91c9839be5680f2b6a6f0
|
4
|
+
data.tar.gz: 68c09a342d5d296259d3e3112cae579f1f89ea2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3c0e23520a2964399b1b451dd7a1dd5826c00d03b48acb4a567bf8848ad4948eaba5ec309bf3dfdc2cd9f0e42531e53dad45d0835f54491eae9305867d2e7ba
|
7
|
+
data.tar.gz: e9ab04ec6ca5302d245b92146a0641d2466335d41da01dfc368df54c325e170eae0a2ac5e4b28ca59e8fc9e069a02e7cc50240356188cd0501bc9f624e21850a
|
@@ -75,7 +75,9 @@ module GovUkDateFields
|
|
75
75
|
def generate_fieldset_tag
|
76
76
|
result = "<fieldset"
|
77
77
|
result += %Q| id="#{@fieldset_id}"| unless @fieldset_id.nil?
|
78
|
-
|
78
|
+
css_class = "gov_uk_date"
|
79
|
+
css_class += " error" if error_for_attr?
|
80
|
+
result += %Q| class="#{css_class}"|
|
79
81
|
result += ">"
|
80
82
|
result
|
81
83
|
end
|