cutlass_js_rails 0.1.11 → 0.1.12
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: 83bdc4c13ffa1c217e4cbc9e5adfd601f343de91
|
4
|
+
data.tar.gz: 898569b59596e191c729965be98cc0d33e5c615b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 421af33765f7eb6ed0aa44f36c7971108ffe6de63c8d7e97ca3060b9ab2f9df9eba2d08c448fb58cc1ab6a2a520b27baa375d24dd8eb106a9b251ea391c7c0f4
|
7
|
+
data.tar.gz: 41c15427955118d73edbe464b04bb4e504d1637d63d60567468ff6b8e1c1cf2132b73042c6a7bc001d85a7046f77ebf0e49323b7b150b851a9b4bac4912a4afe
|
@@ -153,7 +153,8 @@ $cutlass-link-color: #ff7c14 !default;
|
|
153
153
|
// ========================================================
|
154
154
|
.Cutlass-error{
|
155
155
|
position: absolute;
|
156
|
-
bottom: 47px;
|
156
|
+
// bottom: 47px;
|
157
|
+
top: -15px;
|
157
158
|
left: 50%;
|
158
159
|
transform: translateX(-50%);
|
159
160
|
font-size: 14px;
|
@@ -188,3 +189,11 @@ $cutlass-link-color: #ff7c14 !default;
|
|
188
189
|
}
|
189
190
|
}
|
190
191
|
}
|
192
|
+
|
193
|
+
// ========================================================
|
194
|
+
// FIELD_WITH_ERRORS OVERRIDE
|
195
|
+
// ========================================================
|
196
|
+
|
197
|
+
.field_with_errors{
|
198
|
+
display: inline;
|
199
|
+
}
|
@@ -1,13 +1,14 @@
|
|
1
|
-
<% value = model.loot_get(field
|
1
|
+
<% value = model.loot_get(field) %>
|
2
2
|
<% options.map! do |option| %>
|
3
3
|
<% option = option.with_indifferent_access %>
|
4
4
|
<% OpenStruct.new(value: option['value'], label: option['label']) %>
|
5
5
|
<% end %>
|
6
6
|
|
7
|
-
<div class="Cutlass-input-radio" data-label="<%= label %>"
|
8
|
-
|
7
|
+
<div class="Cutlass-input-radio" data-label="<%= label %>" data-error=<%= model.errors[field][0] %>>
|
8
|
+
<% count = 0 %>
|
9
|
+
<%= f.collection_radio_buttons(field, options, 'value', 'label' ) do |b| %>
|
9
10
|
<div class="Cutlass-input-radio-single">
|
10
|
-
<%= b.radio_button(checked: (b.value == value || options.first.value), class: 'icheck-me Cutlass-input-radio-single') %>
|
11
|
+
<%= b.radio_button(checked: (b.value == value || options.first.value), class: 'icheck-me Cutlass-input-radio-single' ) %>
|
11
12
|
<%= b.label %>
|
12
13
|
</div>
|
13
14
|
<% end %>
|