effective_bootstrap 0.13.1 → 0.13.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: 18aa82bffaabfcab3bd340de2d1125a8a6111e5a09d9ddb921abf06fac1bc99e
4
- data.tar.gz: 95f1b53bfa7e32dcd5c49a769b5e58c824becf5ce098a50ce61c874e37e7a31c
3
+ metadata.gz: ecffafbb096f543759ef66fd919f85dbf96acebd446ba522b4427c831b7b5b55
4
+ data.tar.gz: 9793e72a94792bed35abec120c8346d9c11f170e0323aa06aff49f75650d6d7f
5
5
  SHA512:
6
- metadata.gz: 0750f84d089f5c28d599ba92ab2c9b957c83d3e28abc02b5bc727317954152278b303581597e0b2ba1f1b9284ec0b0b840b67854485c58dc8e3354119be5fa69
7
- data.tar.gz: 1849f908e4a40614cc24f27465b12185d49584d982fa243cf1e9e681ac19df68b88ec67b3d8cf5271a203a6f50c6c43ebeb6108d26d6bfb661119dc60f9449e9
6
+ metadata.gz: 7394dc15b00b1e4bc79cd4bdffb220fa093b034dd0dc67beea558e4ae87b6e61c4d5fb37c3c9b9e4934811b0bd420c6e0da427445009b33f881d86b5097c79f0
7
+ data.tar.gz: ec4c87b103ebd7f621e6304948daeaa3adcf6078b9df9e71c6da1fba9593c98a6a97b882b3602e8b04cef5859d19d64b33d634c34107d18daed61417e0ed6c74
@@ -70,3 +70,29 @@ div.form-group > label + .btn-group { display: block; }
70
70
 
71
71
  // File Control
72
72
  .form-control-file { border: none !important; }
73
+
74
+ // Radios
75
+ form fieldset.effective-radios {
76
+ margin-top: 0;
77
+ margin-bottom: 0;
78
+ }
79
+
80
+ form fieldset.effective-checks {
81
+ margin-top: 0;
82
+ margin-bottom: 0;
83
+ }
84
+
85
+ form fieldset.effective-radios legend {
86
+ font-size: 1rem;
87
+ font-weight: inherit;
88
+ margin-top: 0.5rem;
89
+ margin-bottom: 1rem;
90
+ }
91
+
92
+ // Checks
93
+ form fieldset.effective-checks > label {
94
+ font-size: 1rem;
95
+ font-weight: inherit;
96
+ margin-top: 0.5rem;
97
+ margin-bottom: 1rem;
98
+ }
@@ -96,6 +96,8 @@ module Effective
96
96
  collection.inject({}) { |h, (k, group)| h[k] = translate(group).map { |obj| [obj.to_s, "#{obj.class.model_name}_#{obj.id}"] }; h }
97
97
  elsif grouped
98
98
  collection.inject({}) { |h, (k, group)| h[k] = translate(group).map { |obj| obj }; h }
99
+ elsif (collection == :boolean || collection == :booleans || collection == :boolean_collection)
100
+ EffectiveBootstrap.boolean_collection
99
101
  else
100
102
  translate(collection).map { |obj| obj }
101
103
  end
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '0.13.1'.freeze
2
+ VERSION = '0.13.2'.freeze
3
3
  end
@@ -11,4 +11,8 @@ module EffectiveBootstrap
11
11
 
12
12
  include EffectiveGem
13
13
 
14
+ def self.boolean_collection
15
+ [['Yes', true], ['No', false]]
16
+ end
17
+
14
18
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.1
4
+ version: 0.13.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-03 00:00:00.000000000 Z
11
+ date: 2023-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails