cutlass_js_rails 0.3.0 → 0.3.1
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a37ea0e58c065d009dfad502c841dbbb9477e117
|
4
|
+
data.tar.gz: b2605b1cd103e3fb6ee865b4071e9eac73c0740e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11533895e7cdf270927ae93d5f188309de83c357b21d765583264dd0a275bab040cdb3ead65ab9aef5f7d1d21dcda21dd4e0120394481e7696d54538627acbbe
|
7
|
+
data.tar.gz: 0f9a04d1832b9b28d37ba55f050b488e6cb5a05227b092b57dc36079976cc751918486a9b742980c55471366bd1bd6e95455cbcf461ab41e44adb683f9eb8c9a
|
@@ -1,4 +1,4 @@
|
|
1
1
|
<% css_classes = (defined? css_classes) ? css_classes : '' %>
|
2
2
|
<% props = local_assigns.fetch(:props, {}) %>
|
3
|
-
<% value = local_assigns.fetch(:value,
|
3
|
+
<% value = local_assigns.fetch(:value, '') %>
|
4
4
|
<%= f.text_field code, class: "Cutlass-input-text #{css_classes}", 'data-label': label, value: value, type: 'tel', 'data-always-active': true, 'data-error': model.errors[code][0], **props %>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<% css_classes = (defined? css_classes) ? css_classes : '' %>
|
2
2
|
<% code = local_assigns.fetch(:code) %>
|
3
3
|
<% props = local_assigns.fetch(:props, {}) %>
|
4
|
-
<% value = local_assigns.fetch(:value,
|
4
|
+
<% value = local_assigns.fetch(:value, '') %>
|
5
5
|
<%= f.select code, options_for_select(options, selected: value), props.merge(selected: value), { class: "Cutlass-input-select #{css_classes}", 'data-label': label, 'data-error': model.errors[code][0] } %>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<% css_classes = (defined? css_classes) ? css_classes : '' %>
|
2
2
|
<% props = (defined? props) ? props.to_h : {} %>
|
3
3
|
<% code = local_assigns.fetch(:code) %>
|
4
|
-
<% value = local_assigns.fetch(:value,
|
4
|
+
<% value = local_assigns.fetch(:value, '') %>
|
5
5
|
<%= f.text_field code, class: "Cutlass-input-text #{css_classes}", value: value, **({ 'data-label' => label, 'data-error' => model.errors[code][0] }.merge(props).symbolize_keys) %>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<% css_classes = (defined? css_classes) ? css_classes : '' %>
|
2
2
|
<% code = local_assigns.fetch(:code) %>
|
3
3
|
<% label = local_assigns.fetch(:label) %>
|
4
|
-
<% value = local_assigns.fetch(:value,
|
4
|
+
<% value = local_assigns.fetch(:value, '') %>
|
5
5
|
<%= f.check_box code, {
|
6
6
|
class: "Cutlass-input-toggler js-conditional-switch #{css_classes}",
|
7
7
|
checked: value == 'true',
|