bulma_form_builder 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +1 -1
- data/lib/bulma_form_builder/form_field.rb +7 -1
- data/lib/bulma_form_builder/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3810c3622b59cb88b1c2861f1a441f63ff79717eba2e2f25472d44ad1049aaad
|
4
|
+
data.tar.gz: 4d67a0cc8e74e5bcc59788ce87b9f555802673211abbe9f8f9b123face322d52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39c52166549b552ef11da6e2c67159c03f57a95024997839a90b81f80bccdb11797b7475e5df3261012183f348307f0adf80a4c5a918e07285710e0a0ed1447c
|
7
|
+
data.tar.gz: da8ebbb5f51ea6b1bf58c9a3abeea9cb25784860873a4652a2b2edc15f5684e9382d48bc9b5af1c708635f531f24db54d67e85c5359556118444cda5edb8cef8
|
data/CHANGELOG.md
ADDED
data/Gemfile.lock
CHANGED
@@ -6,7 +6,7 @@ module BulmaFormBuilder
|
|
6
6
|
name = args.first
|
7
7
|
options = args.extract_options!
|
8
8
|
|
9
|
-
content_tag(:div, class:
|
9
|
+
content_tag(:div, class: form_field_classes(options)) do
|
10
10
|
concat field_label(name, options) unless options[:hide_label]
|
11
11
|
concat field_control(&block)
|
12
12
|
concat field_help(name, options)
|
@@ -32,5 +32,11 @@ module BulmaFormBuilder
|
|
32
32
|
classes << 'required' if options[:required]
|
33
33
|
label(name, options[:label], class: classes)
|
34
34
|
end
|
35
|
+
|
36
|
+
def form_field_classes(options)
|
37
|
+
classes = %w[field]
|
38
|
+
classes << options.delete(:wrapper_class) if options[:wrapper_class].present?
|
39
|
+
classes
|
40
|
+
end
|
35
41
|
end
|
36
42
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bulma_form_builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- aki77
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-11-
|
11
|
+
date: 2019-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -77,6 +77,7 @@ files:
|
|
77
77
|
- ".gitignore"
|
78
78
|
- ".rspec"
|
79
79
|
- ".travis.yml"
|
80
|
+
- CHANGELOG.md
|
80
81
|
- CODE_OF_CONDUCT.md
|
81
82
|
- Gemfile
|
82
83
|
- Gemfile.lock
|