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 +4 -4
- data/README.md +2 -2
- data/app/views/fields/{lazy_belongs_to → lazy_has_many}/_form.html.erb +29 -0
- data/app/views/fields/{lazy_belongs_to → lazy_has_many}/_index.html.erb +0 -0
- data/app/views/fields/{lazy_belongs_to → lazy_has_many}/_show.html.erb +0 -0
- data/lib/administrate/field/lazy_has_many/version.rb +1 -1
- data/lib/administrate/field/lazy_has_many.rb +0 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e682f33ccc541d212e52cd7d8ab61a4cbba16cee9bc12b552c8274024006f3f
|
4
|
+
data.tar.gz: 53b92c45e04fd05f9e5c8511e4cdc511baba17a803ee7f81a598b387203ddeb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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>
|
File without changes
|
File without changes
|
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.
|
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/
|
100
|
-
- app/views/fields/
|
101
|
-
- app/views/fields/
|
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
|