myg 2.3.3 → 2.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/app/views/mozaic/myg/_form-field.html.erb +6 -3
- data/lib/myg/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22eb5330f686391a704daeccd669341323016f8ed6757210758bf6fff0919e9b
|
4
|
+
data.tar.gz: eeaf3018cd7fb3327aa824ee1b2d07ab4b640909c7c511f0272473df4a801da6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5398eda9570a0d0e4c88fad1186d0361f3aed43f92d5c0ff31049b80d57257b4b98bc3228ad3eba9230830c43918963d59a5cb6f371bf881bef7f9c003c6084f
|
7
|
+
data.tar.gz: 78d5f27865f246200b201b7e238082de2d78ba207248f8cbc8fe25aaa733a0d71db550d3109ae66117eb2948c2de279b49be8b615b0f298fd037976e19225ff1
|
data/CHANGELOG.md
CHANGED
@@ -1,11 +1,14 @@
|
|
1
1
|
<% wrapper_html = {
|
2
2
|
class: ['myg-form-field', ('myg-form-field--inline-label' if options[:inline_label]), ('myg-form-field--floating-label' if options[:floating_label]), options.dig(:wrapper_html, :class)].join(' ')
|
3
3
|
} %>
|
4
|
-
<% input_html = {
|
4
|
+
<% if options[:floating_label] %><% input_html = {
|
5
5
|
class_name: options[:class_name],
|
6
6
|
attribute: options[:attribute],
|
7
7
|
placeholder: options[:floating_label]
|
8
|
-
}
|
8
|
+
} %><% else %><% input_html = {
|
9
|
+
class_name: options[:class_name],
|
10
|
+
attribute: options[:attribute]
|
11
|
+
} %><% end %>
|
9
12
|
<% label_html = {
|
10
13
|
class_name: options[:class_name],
|
11
14
|
attribute: options[:attribute]
|
@@ -14,7 +17,7 @@
|
|
14
17
|
class: ['myg-label--secondary', options.dig(:label_html, :class)].join(' ')
|
15
18
|
}) %>
|
16
19
|
<% label_wrapper_html = {
|
17
|
-
class: ['myg-label--
|
20
|
+
class: ['myg-label--container', options.dig(:label_wrapper_html, :class)].join(' ')
|
18
21
|
} %>
|
19
22
|
|
20
23
|
<%= content_tag 'div', (options[:wrapper_html] || {}).merge(wrapper_html) do %>
|
data/lib/myg/version.rb
CHANGED