cutlass_js_rails 0.1.3 → 0.1.4
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: 815ea17db27b519bf3e50054980eb1e5aa79419a
|
4
|
+
data.tar.gz: 9591c72625cd2eded5ab86c418df833bd97cf0e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 762ee6cf4c997d7f1c04559ecad4d61ebf80de0ab55d36c59d83ccd433d99227c9f9d090c7ce6e68f3025aac7da41a155e0278ddea68b9feca237dbff017fae9
|
7
|
+
data.tar.gz: 0c8ad1f242f9c51d0aa36779f449e641a566f93b625ce23cbb7428c5844df4cbedb48154c8e1f819bc0f32a400fd7630ed49951ff2789965de709da8c6ed62b5
|
@@ -1,2 +1,2 @@
|
|
1
1
|
<% css_classes = (defined? css_classes) ? css_classes : '' %>
|
2
|
-
<%= f.text_field field, class: "Cutlass-input-text js-birthday-input #{css_classes}", value: Chronic.parse(@user._date_of_birth, endian_precedence: [:little])&.strftime('%Y-%m-%d'), 'data-label': label, type: 'tel', 'data-always-active': true, 'data-error':
|
2
|
+
<%= f.text_field field, class: "Cutlass-input-text js-birthday-input #{css_classes}", value: Chronic.parse(@user._date_of_birth, endian_precedence: [:little])&.strftime('%Y-%m-%d'), 'data-label': label, type: 'tel', 'data-always-active': true, 'data-error': model.errors[field][0] %>
|
@@ -1,2 +1,2 @@
|
|
1
1
|
<% css_classes = (defined? css_classes) ? css_classes : '' %>
|
2
|
-
<%= f.select field, options, {}, { class: "Cutlass-input-select #{css_classes}", 'data-label': label, 'data-error':
|
2
|
+
<%= f.select field, options, {}, { class: "Cutlass-input-select #{css_classes}", 'data-label': label, 'data-error': model.errors[field][0] } %>
|
@@ -1,3 +1,3 @@
|
|
1
1
|
<% css_classes = (defined? css_classes) ? css_classes : '' %>
|
2
2
|
<% props = (defined? props) ? props.to_h : {} %>
|
3
|
-
<%= f.text_field field, class: "Cutlass-input-text #{css_classes}", 'data-label': label, 'data-error':
|
3
|
+
<%= f.text_field field, class: "Cutlass-input-text #{css_classes}", 'data-label': label, 'data-error': model.errors[field][0], **props %>
|