bootstrap_form_extensions 4.0.1 → 4.0.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e340ce24e4aac0825f9a10df231ff66c0cd4575a4d4a5df0c40e38220d1a7e1b
|
4
|
+
data.tar.gz: 8e1a697d607404fae96301a900836f7e1711617a5b26da01e64f3767fa287327
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f5582275a2211c39edcf75960184756eb4e4bf1bfa7b1b6401341011382b181ac24cbdb0708fbf33242b92597e470b0063df954dce5c252569f7acb97738350
|
7
|
+
data.tar.gz: b07780443d61ec10c8d866c36317df32c2c7fd1a0e3b6511daf5508cca8017a0d481ad272fb09c4b449f1146381aadf87139888b422f4c22ccab478213f50db5
|
@@ -70,15 +70,15 @@ module BootstrapFormExtensions
|
|
70
70
|
end
|
71
71
|
end
|
72
72
|
|
73
|
-
def arrayed_field_row_builder args, col_class: 'col
|
73
|
+
def arrayed_field_row_builder args, col_class: 'col'
|
74
74
|
args = [ args ].flatten
|
75
75
|
|
76
76
|
inputs = args.inject(''.html_safe) do |content, input|
|
77
77
|
content << content_tag(:div, input, class: col_class)
|
78
78
|
end
|
79
79
|
|
80
|
-
remove_button = @template.link_to '×'.html_safe, 'javascript:void(0);', class: 'btn btn-
|
81
|
-
remove_button = content_tag :div, remove_button, class: 'col-
|
80
|
+
remove_button = @template.link_to '×'.html_safe, 'javascript:void(0);', class: 'btn btn-outline-danger remove-arrayed-field-row'
|
81
|
+
remove_button = content_tag :div, remove_button, class: 'col-auto ml-auto'
|
82
82
|
|
83
83
|
content_tag :div, inputs + remove_button, class: 'row mt-1'
|
84
84
|
end
|
@@ -88,7 +88,7 @@ module BootstrapFormExtensions
|
|
88
88
|
end
|
89
89
|
|
90
90
|
def form_group_builder_for_arrayed_field method, blueprint, options, &row_builder_block
|
91
|
-
add_button = @template.link_to '+', 'javascript:void(0);', class: 'btn btn-
|
91
|
+
add_button = @template.link_to '+', 'javascript:void(0);', class: 'btn btn-outline-primary add-arrayed-field-row'
|
92
92
|
add_button = content_tag :div, add_button, class: 'col-12'
|
93
93
|
add_button = content_tag :div, add_button, class: 'row mt-1'
|
94
94
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootstrap_form_extensions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jesús Dugarte
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-04-
|
11
|
+
date: 2019-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bootstrap_form
|
@@ -95,6 +95,7 @@ files:
|
|
95
95
|
- app/assets/javascripts/bootstrap_form_extensions/scheduler.js
|
96
96
|
- app/assets/javascripts/bootstrap_form_extensions/select_or_new.js
|
97
97
|
- app/assets/javascripts/bootstrap_form_extensions/timespan.js
|
98
|
+
- app/assets/stylesheets/bootstrap_form_extensions/arrayed_field.css
|
98
99
|
- app/assets/stylesheets/bootstrap_form_extensions/duration.css
|
99
100
|
- app/assets/stylesheets/bootstrap_form_extensions/index.css
|
100
101
|
- app/assets/stylesheets/bootstrap_form_extensions/scheduler.css
|