effective_bootstrap 1.19.6 → 1.19.8

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: aa6057a6127cec223adc567fdb78fd6111e4eb8201a4a7ffc3930107cbce28bb
4
- data.tar.gz: 5b534337c4af43b3ffb40a8154e39882708b7ec9321710b5ba4d5fdb4ebc174f
3
+ metadata.gz: 2f154f4e5ecfdbce05a3e17d160909695568b1e4ab163b335f574ee77b4cde36
4
+ data.tar.gz: 6cfcf61e6cf313d58eee9b3540c5b9952cf864fd15ca0369809ff028552f1921
5
5
  SHA512:
6
- metadata.gz: 6b0053f1dc2ef3c7772c1787433ab8d331243e3c6848f6b3b398d0ddb40275fa0ecc799af02d80e4c380e9d778b9b02684dc5d4bdae5843990d1b33bb3f863a8
7
- data.tar.gz: '0674538a6e66446e0d93a8405f0fb97b2fd0b57015a7a20317cd1abe902500b2e52b2f8919087807720ad21e9b129345661315af168e60d6193746f15c07d2fd'
6
+ metadata.gz: fd24e68345e37d60439cf8701e4edc8d5fba89168cb9c5d469dd859a763d7bed84f1010208b4a6ed7f71f67cd86f8ca8f4fb0a5d190f6c8a91ddfdd7835262a7
7
+ data.tar.gz: 3e77f1861099d52231b500a61d9d4026c080104dae745acc29e65d34d58f8a93032410329a824a6e309372c89c9f0a3cdc0760d4650e85a25f6f4bb0617a655b
@@ -157,7 +157,13 @@ module Effective
157
157
  insert = render_insert() if add? && reorder?
158
158
  end
159
159
 
160
- content_tag(:div, insert + render_fields(content, remove + reorder), class: 'has-many-fields')
160
+ opts = if resource.marked_for_destruction? && resource.errors.blank?
161
+ { class: 'has-many-fields marked-for-destruction', style: 'display: none;' }
162
+ else
163
+ { class: 'has-many-fields' }
164
+ end
165
+
166
+ content_tag(:div, insert + render_fields(content, remove + reorder), opts)
161
167
  end
162
168
 
163
169
  def render_fields(content, remove)
@@ -47,6 +47,7 @@ module Effective
47
47
 
48
48
  # Filter out some hardcoded ones
49
49
  content = content.except(*filtered) if filtered.present?
50
+ content = content.except(*except) if except.present?
50
51
 
51
52
  content_tag(:table, class: options.fetch(:class, 'table table-sm table-striped table-hover effective-table-summary')) do
52
53
  content_tag(:tbody, content.values.join.html_safe)
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '1.19.6'.freeze
2
+ VERSION = '1.19.8'.freeze
3
3
  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: 1.19.6
4
+ version: 1.19.8
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: 2024-10-02 00:00:00.000000000 Z
11
+ date: 2024-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails