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: 9b87614eeacbb6d3798d26b573d6b73bc72f48a8
4
- data.tar.gz: a1ec04f31a04e1092e83e711ce3292efb37c1dfe
3
+ metadata.gz: 83bdc4c13ffa1c217e4cbc9e5adfd601f343de91
4
+ data.tar.gz: 898569b59596e191c729965be98cc0d33e5c615b
5
5
  SHA512:
6
- metadata.gz: 10dd4cf2fdef3a8d731fdc7455632b1a496f2012025becddc08e77396689b6c178a210e5a8db0643d8b94574331733701b1b4e8525bdec0027f5b13110081027
7
- data.tar.gz: d33e07ccf64ea7271933e1dc32b517c32d67ec837a628b0b9e1e4e9c25c488d5f6b9ec0365d453325053dbd9ed428c7f16e80061753858a3594d9d40209b1728
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['code']) %>
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
- <%= f.collection_radio_buttons(field, options, 'value', 'label') do |b| %>
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 %>
@@ -1,3 +1,3 @@
1
1
  module CutlassJsRails
2
- VERSION = '0.1.11'
2
+ VERSION = '0.1.12'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cutlass_js_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - chardos