administrate-field-lazy_has_many 0.1.1 → 0.1.2

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
  SHA256:
3
- metadata.gz: f06b41f7991819f32fe913644b1e688511d303fe35bdf94e1b9338afa19cf68a
4
- data.tar.gz: e1f0eb6aa1b9588d74332b098820639cbc250faed61c1044ee531cc697e4aaae
3
+ metadata.gz: 0e682f33ccc541d212e52cd7d8ab61a4cbba16cee9bc12b552c8274024006f3f
4
+ data.tar.gz: 53b92c45e04fd05f9e5c8511e4cdc511baba17a803ee7f81a598b387203ddeb2
5
5
  SHA512:
6
- metadata.gz: 2910d40de2565dc18ac67f2aa3b8e257e27dd2fee45da8a474a8f272f5ac4188d4c674c736d5a74756a0b8b6b46a9fc37ac87c7dcc735c3f18877aa124c4fb93
7
- data.tar.gz: ad1c43d718d11e56696665f09fcece54e8fbc2266b58b92553d2bcfcfa39163a1ad0fdc406af02a34e015c3c652243f411d83bbbb6593f9573c854a4ba460291
6
+ metadata.gz: c66f08d85684527fa1536f9459c857d18636a4f7c9ca735c9a1533aa4dc2a5e4e11a8ee8e7fd285d69a0f88423672e0b040dc8662cea7d77c03a3d941d1c9664
7
+ data.tar.gz: 881537ff394f67e9c104ef97e357b90c3c25bf6030f616986ad6195f43e618a9cf5fe36bc20df58e99cbfa9c7b6b5d7c2f5a090bb480ffa2409ad5f2367f0d92
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Administrate::Field::LazyHasMany
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/administrate-field-lazy_has_many)](http://badge.fury.io/rb/administrate-field-lazy_has_many) [![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT)
3
+ [![Gem Downloads](http://img.shields.io/gem/dt/administrate-field-lazy_has_many.svg)](https://rubygems.org/gems/administrate-field-lazy_has_many) [![Gem Version](https://badge.fury.io/rb/administrate-field-lazy_has_many.png)](http://badge.fury.io/rb/administrate-field-lazy_has_many) [![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT)
4
4
 
5
5
  An input field that shows search results of has many association, lazily from a custom endpoint.
6
6
 
@@ -83,4 +83,4 @@ i.e `result_limit` attribute maximum result value the field will post to action
83
83
  2. Create your feature branch (`git checkout -b my-new-feature`)
84
84
  3. Commit your changes (`git commit -am 'Add some feature'`)
85
85
  4. Push to the branch (`git push origin my-new-feature`)
86
- 5. Create new Pull Request
86
+ 5. Create new Pull Request
@@ -1,3 +1,32 @@
1
+ <style>
2
+ .selectize-control::before{
3
+ -moz-transition: opacity 0.2s;
4
+ -webkit-transition: opacity 0.2s;
5
+ transition: opacity 0.2s;
6
+ content: " ";
7
+ z-index: 2;
8
+ position: absolute;
9
+ display: block;
10
+ top: 50%;
11
+ right: 34px;
12
+ width: 16px;
13
+ height: 16px;
14
+ margin: -8px 0 0 0;
15
+ border: 10px solid #f3f3f3;
16
+ border-top: 10px solid #5e5858;
17
+ border-radius: 50%;
18
+ opacity: 0;
19
+ animation: spin 2s linear infinite;
20
+ }
21
+ .selectize-control.loading::before{
22
+ opacity: 0.4;
23
+ }
24
+ @keyframes spin {
25
+ 0% { transform: rotate(0deg); }
26
+ 100% { transform: rotate(360deg); }
27
+ }
28
+ </style>
29
+
1
30
  <div class="field-unit__label">
2
31
  <%= f.label field.attribute, for: "#{f.object_name}_#{field.attribute_key}" %>
3
32
  </div>
@@ -1,7 +1,7 @@
1
1
  module Administrate
2
2
  module Field
3
3
  module LazyHasManyVersion
4
- VERSION = '0.1.1'.freeze
4
+ VERSION = '0.1.2'.freeze
5
5
  end
6
6
  end
7
7
  end
@@ -9,9 +9,6 @@ module Administrate
9
9
  include LazyHasManyVersion
10
10
 
11
11
  class Engine < ::Rails::Engine
12
- Administrate::Engine.add_stylesheet 'administrate-field-lazy_has_many/application'
13
-
14
- isolate_namespace Administrate
15
12
  end
16
13
 
17
14
  def candidate_resources
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: administrate-field-lazy_has_many
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aftab Akram
@@ -96,9 +96,9 @@ files:
96
96
  - Rakefile
97
97
  - administrate-field-lazy_has_many.gemspec
98
98
  - app/assets/stylesheets/administrate-field-lazy_has_many/application.css
99
- - app/views/fields/lazy_belongs_to/_form.html.erb
100
- - app/views/fields/lazy_belongs_to/_index.html.erb
101
- - app/views/fields/lazy_belongs_to/_show.html.erb
99
+ - app/views/fields/lazy_has_many/_form.html.erb
100
+ - app/views/fields/lazy_has_many/_index.html.erb
101
+ - app/views/fields/lazy_has_many/_show.html.erb
102
102
  - lib/administrate/field/lazy_has_many.rb
103
103
  - lib/administrate/field/lazy_has_many/version.rb
104
104
  homepage: https://github.com/Aftab-Akram/administrate-field-lazy_has_many