ecm_galleries_backend 0.2.0 → 0.3.0

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: 02b4764ab8cde90e9445cd23ad0c06b04bbec257e71f1a7e0f3e7a13db35ede3
4
- data.tar.gz: ad692949d8b177b0c3b38c48132d954825867992e11d2a2423fd1ba33dab258c
3
+ metadata.gz: 415b3d819c29b93a85298917c7a361abaf798d1ec5ab3dc7e931652274cbd3f1
4
+ data.tar.gz: dcfebadd9a3202971ea421dc917a91d18f32761a51d400e23aca0ffd903554d5
5
5
  SHA512:
6
- metadata.gz: 490ab150b2daff50daf4bc05ec880a51b7635cf2565dcfbec887f119065e3633ff86646d6dab4a7ac5b59461890d484f7dc32f5328be0e1750b95d4212e9e402
7
- data.tar.gz: 79e04c48693308c44907b3ffe74b9c4a19f76f5d60e502aca84bda0b4f31b99bd2757f0f2472d233434facaf28761942c6f368ca875241bdccd224eba600f656
6
+ metadata.gz: 182b70903c5a8288f1f3e81c236828d972f78132847a8518f303a9880b124689e8d88553f5d0158e35f7d9f310113ba9100eba4e4c3f28bb8e17c25d35d66a7d
7
+ data.tar.gz: 7c452d2d0877ef9b914e3b3d3503b89787dae43988e64eb2244d136f99bc0c6ff2dcf49c01d5c379ba0a52b8ac00cdbc525c4e84228e4d82d7f7bd8b27da4fb2
@@ -1,3 +1,15 @@
1
1
  .border-0 {
2
2
  border: none !important;
3
+ }
4
+
5
+ .p-4 {
6
+ padding: 1.5rem !important;
7
+ }
8
+
9
+ .mt-4 {
10
+ margin-top: 1.5rem !important;
11
+ }
12
+
13
+ .mb-4 {
14
+ margin-bottom: 1.5rem !important;
3
15
  }
@@ -14,7 +14,7 @@ module Ecm
14
14
  private
15
15
 
16
16
  def permitted_params
17
- params.require(:picture_gallery).permit(:name, :description, :published, assets: [])
17
+ params.require(:picture_gallery).permit(:name, :description, :published, { assets: [], overwrite_assets: [], append_assets: [] })
18
18
  end
19
19
  end
20
20
  end
@@ -1,3 +1,13 @@
1
1
  = form.input :name
2
- = form.input :assets, as: :file, input_html: { multiple: true }
2
+ - if form.object.new_record?
3
+ = form.input :assets, as: :file, input_html: { multiple: true }
4
+ - else
5
+ .row.mb-4
6
+ .col-md-6
7
+ .bg-success.p-4
8
+ = form.input :append_assets, as: :file, input_html: { multiple: true }
9
+ .col-md-6
10
+ .bg-danger.p-4
11
+ = form.input :overwrite_assets, as: :file, input_html: { multiple: true }
12
+
3
13
  = form.input :published, as: :boolean
@@ -1,5 +1,5 @@
1
1
  = table.column :preview do |resource|
2
- - if resource.picture_details.first.present?
2
+ - if resource.picture_details.first.try(:asset).present?
3
3
  - bootstrap_thumbnail(image_options: { src: main_app.url_for(resource.picture_details.first.asset) })
4
4
  = table.column :name, sort: true
5
5
  = table.column :picture_details_count
@@ -1,7 +1,7 @@
1
1
  module Ecm
2
2
  module Galleries
3
3
  module Backend
4
- VERSION = '0.2.0'.freeze
4
+ VERSION = '0.3.0'.freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecm_galleries_backend
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-21 00:00:00.000000000 Z
11
+ date: 2018-12-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 5.2.0.rc1
19
+ version: 5.2.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 5.2.0.rc1
26
+ version: 5.2.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: ecm_galleries
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 0.3.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: 0.3.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rao-query
43
43
  requirement: !ruby/object:Gem::Requirement