worker-field-active_storage 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/views/fields/active_storage/_form.html.erb +10 -42
- data/worker-field-active_storage.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d2546cfa970b8c3f195c910a12c4b1f72ece506f9fc948a44588bc771627e294
|
|
4
|
+
data.tar.gz: 0551b7cf7aad1f44eb33f947cc91f1b564e28042bc8cda23695896b55f76ff9e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 97d51962dd8c8d656d64d8b586ac94b84aaf22381115dc11c6af16ab8b2f0bdd39d08d1b72ff9fdc388cccbb5e2f2f885e9c08d3517fb15e370c5ae06838dad7
|
|
7
|
+
data.tar.gz: d5b3fdb8ad303976731234a9aa4a5a6ffd0a4a2a1c490053f182d3da7225f4a0d5f751ab3457d04fc7b648736f923f63485cd1f45505c25e5171381d1ffb7759
|
|
@@ -1,62 +1,30 @@
|
|
|
1
|
-
<%#
|
|
2
|
-
# Image Form Partial
|
|
3
|
-
|
|
4
|
-
This partial renders an input element for image attributes.
|
|
5
|
-
By default, the input is a text field for the image's URL.
|
|
6
|
-
|
|
7
|
-
## Local variables:
|
|
8
|
-
|
|
9
|
-
- `f`:
|
|
10
|
-
A Rails form generator, used to help create the appropriate input fields.
|
|
11
|
-
- `field`:
|
|
12
|
-
An instance of [Administrate::Field::Image][1].
|
|
13
|
-
A wrapper around the image url pulled from the database.
|
|
14
|
-
|
|
15
|
-
[1]: http://www.rubydoc.info/gems/administrate/Administrate/Field/Image
|
|
16
|
-
%>
|
|
17
|
-
|
|
18
1
|
<div class="field-unit__label">
|
|
19
2
|
<%= f.label field.attribute %>
|
|
20
3
|
</div>
|
|
21
4
|
|
|
22
5
|
<div class="active__storage__admin">
|
|
23
6
|
<div class="field-unit__field">
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
7
|
+
<div class="field-unit__field__picture">
|
|
8
|
+
<% if field.attached? %>
|
|
9
|
+
<%= render partial: 'fields/active_storage/items', locals: { field: field, removable: field.destroyable? } %>
|
|
10
|
+
<% end %>
|
|
11
|
+
</div>
|
|
29
12
|
<div class="fileinput fileinput-new text-center" data-provides="fileinput">
|
|
30
|
-
|
|
31
13
|
<div class="fileinput-preview fileinput-exists thumbnail"></div>
|
|
32
14
|
<div>
|
|
33
|
-
<!-- <span class=" btn-simple btn btn-rework btn-round btn-file">
|
|
34
|
-
<span for="file-input" class="fileinput-new">Select image</span>
|
|
35
|
-
<span class="fileinput-exists">Change</span>
|
|
36
|
-
<input type="file" name="..." />
|
|
37
|
-
</span> -->
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
15
|
<div class="fileinput fileinput-new text-center" data-provides="fileinput">
|
|
42
16
|
<div class="fileinput-preview fileinput-exists thumbnail"></div>
|
|
43
|
-
<div>
|
|
44
|
-
<span class="btn-whithe btn-file" style="width:200px;">
|
|
45
|
-
<div class="fileinput-new thumbnail">
|
|
46
|
-
<%= image_tag "image_placeholder.jpg"
|
|
47
|
-
<!-- <img src="../../assets/img/image_placeholder.jpg" alt="..."> -->
|
|
17
|
+
<div class="button_to_upload_files">
|
|
18
|
+
<span class="btn-whithe btn-file btn-file-admin" style="min-width:200px;">
|
|
19
|
+
<div class="fileinput-new thumbnail thumbnail-admin">
|
|
20
|
+
<%= image_tag "image_placeholder.jpg"%>
|
|
48
21
|
</div>
|
|
49
|
-
<!-- <span class="fileinput-new">Select image</span> -->
|
|
50
|
-
<!-- <span for="file-input" class="fileinput-new">Select image</span>
|
|
51
|
-
<span class="fileinput-exists">Change</span>
|
|
52
|
-
<input type="file" name="..."> -->
|
|
53
22
|
<%= f.file_field field.attribute, multiple: field.many?, direct_upload: field.direct? %>
|
|
54
23
|
</span>
|
|
55
|
-
<!-- <a href="#pablo" class="btn btn-danger btn-round fileinput-exists" data-dismiss="fileinput"><i class="fa fa-times"></i> Remove</a> -->
|
|
56
24
|
</div>
|
|
57
25
|
</div>
|
|
58
26
|
</div>
|
|
59
27
|
</div>
|
|
60
|
-
|
|
61
28
|
</div>
|
|
29
|
+
|
|
62
30
|
</div>
|
|
@@ -2,7 +2,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |gem|
|
|
4
4
|
gem.name = "worker-field-active_storage"
|
|
5
|
-
gem.version = "0.
|
|
5
|
+
gem.version = "0.2.0"
|
|
6
6
|
gem.authors = ["V baxt"]
|
|
7
7
|
gem.email = ["vincent.viricel@gmail.com"]
|
|
8
8
|
gem.summary = "Front version for Admin active storage - "
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: worker-field-active_storage
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- V baxt
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-05-
|
|
11
|
+
date: 2019-05-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: administrate
|