blueberry_cms 0.1.3 → 0.1.4

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: 207de3dc57e2728c4e0484cffebc9b9c5d3087f5ee2fbcc6d48aa0924b46a7d1
4
- data.tar.gz: 630fc7de8be9e2588c99095f7ac28fc447e1a892f24b6c0d1a9bf5301f11ae96
3
+ metadata.gz: a9a26669220c5e0b586ff4c90b023f16d4d19bca4c0302f21a18b5a0960d43a4
4
+ data.tar.gz: fd888d44422eae9481f4de5eb9242253abb3fa23c4f1ca40e2d326f3fac02875
5
5
  SHA512:
6
- metadata.gz: de3417e1789a5c6ae7d09572c4998661a0c1083e46802b7e4dfdf0dbd41436a62e024e35e1ec6bdca65ff1383a25793889e9bae3d05b6e546e7d43022d613fee
7
- data.tar.gz: 4d5691189979f408a1cb388fe199126c13bc80e580407a818fb44ed4ee0e47117d872c8274064a01a6859f98e72a799d82852e9756b058eee07ee545bef40fdf
6
+ metadata.gz: ddb4c133058e427739cd668d1aa3e6b421c1ed2397fb78e3274603b9cb49e03ed22184dac4655d73974b2ad547b94b5778bfa2615036f9bcf9a751f42bcc0279
7
+ data.tar.gz: e2e6f33d92033fe391d7e0ad647602dff0ed9b399aa1986bfa9425ff3de71a2e823ce7b7ab6e770cda8e9ad3af202123f30c6bc731ab42d3d65073acf610fa44
@@ -5,7 +5,7 @@ module BlueberryCMS
5
5
 
6
6
  MARGINS = %w[0 xs sm md lg xl].freeze
7
7
 
8
- field :active, type: Boolean
8
+ field :active, type: Boolean, localize: true, default: false
9
9
  field :block_anchor, type: String
10
10
  field :bottom_margin, type: String
11
11
  field :bottom_margin_xs, type: String
@@ -12,7 +12,11 @@
12
12
  strong = f.object.decorate.label
13
13
  .col-sm-6.text-right
14
14
  .panel-actions
15
- = f.input :active, as: :boolean, input_html: { checked: f.object.active == false ? false : true }
15
+ - I18n.available_locales.each do |locale|
16
+ .tab-content class="#{locale}-content"
17
+ = f.input :active
18
+ = f.simple_fields_for :active_translations do |localized_field|
19
+ = localized_field.input locale, as: :boolean, input_html: { checked: f.object.active_translations[locale] == false ? false : true }, label: false
16
20
 
17
21
  - unless f.object.new_record?
18
22
  = link_to "#toggle-#{f.object_id}", data: { toggle: 'collapse' }, aria: { expanded: 'true' }
@@ -1,3 +1,3 @@
1
1
  module BlueberryCMS
2
- VERSION = '0.1.3'.freeze
2
+ VERSION = '0.1.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blueberry_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Magnusek
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-06-26 00:00:00.000000000 Z
12
+ date: 2020-02-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: carrierwave