base_editing_bootstrap 0.15.0 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/base_editing_bootstrap/VERSION +1 -1
- data/lib/base_editing_bootstrap/forms/base.rb +9 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 032ff91aed1deaf467baa86fc493c3c43239f90ecada9d9525d4a1a0b481a380
|
4
|
+
data.tar.gz: 46f68625ee2cad88c0a266cbcbfb8636b5933a55c2ee51a4aa0853345393d2ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 970c5dfea8476b01b2a2ba57009c41a83fefeeb3bd0f8e8add56ced18618ebbf74dd72808c52be2d167f2d7576ee51e07db177a2134de4cce8214f0b38b7b0aa
|
7
|
+
data.tar.gz: e9d827c56ede5ef4b6c75d06e922b3f5730f1644c8a6065ab833e741bf3ed6a274a66179e5729657f67ada1d5882545844c41eb4ec2343cff5c4d011cadbb55a
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,12 @@
|
|
2
2
|
All notable changes to this project will be documented in this file. See [conventional commits](https://www.conventionalcommits.org/) for commit guidelines.
|
3
3
|
|
4
4
|
- - -
|
5
|
+
## 0.16.0 - 2024-11-22
|
6
|
+
#### Features
|
7
|
+
- Add custom class to check-box forms - (0ff856c) - Marino Bonetti
|
8
|
+
|
9
|
+
- - -
|
10
|
+
|
5
11
|
## 0.15.0 - 2024-11-11
|
6
12
|
#### Bug Fixes
|
7
13
|
- Add Password for in standard fields - (593c8c2) - Marino Bonetti
|
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.16.0
|
@@ -68,9 +68,16 @@ module BaseEditingBootstrap::Forms
|
|
68
68
|
self.check_box(method, options, checked_value, unchecked_value)
|
69
69
|
end
|
70
70
|
|
71
|
-
def collection_check_boxes(method,
|
71
|
+
def collection_check_boxes(method,
|
72
|
+
collection,
|
73
|
+
value_method,
|
74
|
+
text_method,
|
75
|
+
options = {},
|
76
|
+
html_options = {},
|
77
|
+
&block)
|
78
|
+
form_check_classes = (["form-check"] + [(html_options.delete(:form_check_class){""}).split(" ").collect(&:strip)]).compact.join(" ")
|
72
79
|
super do |builder|
|
73
|
-
@template.content_tag(:div, class:
|
80
|
+
@template.content_tag(:div, class: form_check_classes) do
|
74
81
|
builder.check_box(class: "form-check-input") + builder.label(class: "form-check-label")
|
75
82
|
end
|
76
83
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: base_editing_bootstrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marino Bonetti
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|