base_editing_bootstrap 0.15.0 → 0.16.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 +14 -0
- data/README.md +1 -1
- data/app/views/base_editing/cell_field/_base.html.erb +1 -1
- data/app/views/base_editing/cell_field/_boolean.html.erb +1 -1
- data/app/views/base_editing/cell_field/_timestamps.html.erb +1 -1
- 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: e764be908fc80fc7426404c064b407cd2b47239c30d81cb812f30d26e013e0c6
|
4
|
+
data.tar.gz: ce54c97213e70582b4493632cfd9652e2a33c8774d91106854381af17119adda
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac4e714e64560dbaa5b5851e67ff3ac439cd9ec5aa2d21b8a5fa246e0850da6f45f641b892576343604ca01bfb3dc984e7afab63470f1818e53479f20e1c5aff
|
7
|
+
data.tar.gz: ae23fcf542349cd98c4d4a1c9f6435261a54fa39c44fdf981e30f179319e04f1c6b0cdba4485acff348fa6fc8d0e0241b30e28d5f8f42f08a18b6fddfc73346a
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,20 @@
|
|
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.1 - 2024-11-22
|
6
|
+
#### Bug Fixes
|
7
|
+
- Correct case when attribute to print is virtual - (b86e478) - Marino Bonetti
|
8
|
+
#### Documentation
|
9
|
+
- Fix documentation - (8be21a5) - Marino Bonetti
|
10
|
+
|
11
|
+
- - -
|
12
|
+
|
13
|
+
## 0.16.0 - 2024-11-22
|
14
|
+
#### Features
|
15
|
+
- Add custom class to check-box forms - (0ff856c) - Marino Bonetti
|
16
|
+
|
17
|
+
- - -
|
18
|
+
|
5
19
|
## 0.15.0 - 2024-11-11
|
6
20
|
#### Bug Fixes
|
7
21
|
- Add Password for in standard fields - (593c8c2) - Marino Bonetti
|
data/README.md
CHANGED
@@ -88,7 +88,7 @@ Utilizzo per modello base, in questo esempio prendiamo come modello Post come es
|
|
88
88
|
class PostsController < BaseEditingController
|
89
89
|
##
|
90
90
|
# Set default sort order for ransack
|
91
|
-
# self.
|
91
|
+
# self.default_sorts= ["id"]
|
92
92
|
end
|
93
93
|
```
|
94
94
|
- Aggiungere la rotta: `resources :posts`
|
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.16.1
|
@@ -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.1
|
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
|