vue_crud 0.1.5 → 0.1.6

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: 7fd9df38c49d35f768e9b2738733f09b10a5cb3d
4
- data.tar.gz: 99418a4ea556ae2de1c9b8cfcfa0d79c26eb898f
3
+ metadata.gz: 313968e07fdf547c43ef08160318401f2b9e5c95
4
+ data.tar.gz: bba0750f4d48ff9a7053648b911f86b9e7c82411
5
5
  SHA512:
6
- metadata.gz: 8efc9ef1de2f3071fd51fb4af9b64d817414228239c0ad6a2e8fc398f5cf58b294da2f5b24c4bddbf1be7de1699397180b49d2271bd633b09a9f2355cc2361c1
7
- data.tar.gz: 5239e9146d4fddf0ee3d74e654aa8cf1ffb95e706e3436a520296a4af080d8b46e6e75c57644b7f106b65671ed8db163b65b7e48fcf827d1254597cb3b083e78
6
+ metadata.gz: b94af9b043bb54f1e8bb01519cf0c0d04b90f29e057cb54633fef0a556be2055a776d96622a8f720bfdb81895df1609aaf43d5adeda4c0f3d5632b63c6a0612e
7
+ data.tar.gz: f7b146aa0640e37ad84c591bc7c098396193b6930cef2bbd18e5c7986fb3bb926e6a51e4aecf3ac7e7c73ac8f2294cc40bb0272d668d83cc10762d9a35e08b4d
@@ -27,6 +27,7 @@ $(document).ready(function() {
27
27
  countOfPage: countOfPage
28
28
  });
29
29
  $('.filter .ui.dropdown').dropdown();
30
+ $('.ui.checkbox').checkbox();
30
31
  });
31
32
  </script>
32
33
 
@@ -319,11 +320,12 @@ $(document).ready(function() {
319
320
  </span>
320
321
  </div>
321
322
  </div>
323
+
322
324
  <div class="field" v-if="attribute.type == 'checkbox'">
323
- <div class="ui slider checkbox">
324
- <input type="checkbox" :id="'model_' + attribute.display_name" v-if="attribute.model_prefix" v-model="model[attribute.model_prefix][attribute.name]">
325
- <input type="checkbox" :id="'model_' + attribute.display_name" v-else v-model="model[attribute.name]">
326
- <label :for="'model_' + attribute.display_name">{{ attribute.display_name }}</label>
325
+ <div class="ui toggle checkbox">
326
+ <input type="checkbox" tabindex="0" class="hidden" :id="'model_' + attribute.display_name" v-if="attribute.model_prefix" v-model="model[attribute.model_prefix][attribute.name]">
327
+ <input type="checkbox" tabindex="0" class="hidden" :id="'model_' + attribute.display_name" v-else v-model="model[attribute.name]">
328
+ <label>{{ attribute.display_name }}</label>
327
329
  </div>
328
330
  <div class="ui pointing red basic label" v-show="errors[attribute.name]">
329
331
  <span style="color: red" v-for="(error, index) in errors[attribute.name]">
@@ -1,3 +1,3 @@
1
1
  module VueCrud
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
@@ -294,6 +294,8 @@ $(document).ready(function() {
294
294
  $(target).modal({
295
295
  onShow: function() {
296
296
  $(this).find('select.ui.dropdown').dropdown();
297
+ $(this).find('.ui.checkbox').checkbox();
298
+
297
299
  },
298
300
  onHide: function() {
299
301
  event_hub.$emit('cancel_customMode');
@@ -26,6 +26,9 @@
26
26
  #vue_crud .ui.table td img {
27
27
  max-width: 100%;
28
28
  }
29
+ .ui.toggle.checkbox {
30
+ margin: 10px 0;
31
+ }
29
32
  .summary.highlight {
30
33
  border: 2px solid #a90000;
31
34
  }
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vue_crud
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Donald Chiang
@@ -78,6 +78,7 @@ files:
78
78
  - vendor/assets/.DS_Store
79
79
  - vendor/assets/javascripts/vue_crud.js
80
80
  - vendor/assets/stylesheets/vue_crud.css
81
+ - vue_crud-0.1.5.gem
81
82
  - vue_crud.gemspec
82
83
  homepage: http://www.mynet.com.tw
83
84
  licenses: