bootstrap_form_extensions 4.0.1 → 4.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e9ef4bbc235bbb0ce8652f5383e4f9f52e0289f2a7bb177b144134da65885760
4
- data.tar.gz: 7d4e6944f8bf0c8fda7b13cc4be9943e3f4356e9e6a4a7708262eebe017da118
3
+ metadata.gz: e340ce24e4aac0825f9a10df231ff66c0cd4575a4d4a5df0c40e38220d1a7e1b
4
+ data.tar.gz: 8e1a697d607404fae96301a900836f7e1711617a5b26da01e64f3767fa287327
5
5
  SHA512:
6
- metadata.gz: 11e418475e2bec793059bad314276f004083eb8244d04ba49d077bf9f0f1e6f00da1219f49fd2379a56e4ba6c8d665558a860ae2d0158a9548976c39ce8aa453
7
- data.tar.gz: 4900c2c9f6832489a8c9f8220619655f1b1438e9e35ff45b06349ef0be90e48b82520e66a72d2697e91599b7d2e64132c9e92b513b8e3a5bf006783de15f93d7
6
+ metadata.gz: 0f5582275a2211c39edcf75960184756eb4e4bf1bfa7b1b6401341011382b181ac24cbdb0708fbf33242b92597e470b0063df954dce5c252569f7acb97738350
7
+ data.tar.gz: b07780443d61ec10c8d866c36317df32c2c7fd1a0e3b6511daf5508cca8017a0d481ad272fb09c4b449f1146381aadf87139888b422f4c22ccab478213f50db5
@@ -0,0 +1,6 @@
1
+ a.remove-arrayed-field-row, a.add-arrayed-field-row {
2
+ font-size: 1.8em;
3
+ line-height: 1.0;
4
+ font-weight: 600;
5
+ padding: 0.1rem 0.5rem 0.4rem;
6
+ }
@@ -70,15 +70,15 @@ module BootstrapFormExtensions
70
70
  end
71
71
  end
72
72
 
73
- def arrayed_field_row_builder args, col_class: 'col-11'
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 '&times;'.html_safe, 'javascript:void(0);', class: 'btn btn-default remove-arrayed-field-row'
81
- remove_button = content_tag :div, remove_button, class: 'col-1'
80
+ remove_button = @template.link_to '&times;'.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-default add-arrayed-field-row'
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
 
@@ -1,3 +1,3 @@
1
1
  module BootstrapFormExtensions
2
- VERSION = "4.0.1"
2
+ VERSION = "4.0.2"
3
3
  end
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.1
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-14 00:00:00.000000000 Z
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