blueberry_cms 0.1.4.1 → 0.1.4.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: ef1f5afe1470c1196586e880a7a5239adc523105c73abdbb038acd16df3f4dc6
4
- data.tar.gz: '0390a2e55943d412548909c6f947e56b5ffecc4d3522eb90147413bbe0280cb5'
3
+ metadata.gz: ce99de215cb9589ba7d47978f1f0482069fd822b7859ba0ca2f7a563bcfabdc8
4
+ data.tar.gz: 5b9358b16105c9073e1634ddb5791523d5fdd3b63d0a6b6dd9c1a85e0856d272
5
5
  SHA512:
6
- metadata.gz: 7e7878d9dfc2815a9a44e9c76b6d1fad361af3381d10e5f1d31ece5ef28987ef90f1625076415f2d2455b7ad854d77b306359c4283e8bba2bd9069dac8a5bd7e
7
- data.tar.gz: 8bf86bcb55098104565a27ee28cb91f3e2f54b26f054b1d64cc35293d1134735c90dc554b9754998cad4b37da1e21adda790a73ebb04637718c6a75f0ab78915
6
+ metadata.gz: d55d0cfd1278635ceffb6a0dee5f462f2a1b128512956650415e35fa7e686bbf1a5d0dd499069e19853975cd5e4084f8d5084a97bf014d764476733766f55f65
7
+ data.tar.gz: 523ccc5181c61351e06499394054740e53a4371e430889870c02ad2ca90f22d3c5c9d130d10b42d0b8f0919e1ae593cd95384462cb49968c3d3b85e25740a2f8
@@ -17,8 +17,8 @@ module BlueberryCMS
17
17
  field :name, localize: true
18
18
  field :path, localize: true
19
19
  field :published_at, type: DateTime
20
- field :show_in_footer, type: Boolean
21
- field :show_in_menu, type: Boolean
20
+ field :show_in_footer, localize: true, type: Boolean
21
+ field :show_in_menu, localize: true, type: Boolean
22
22
  field :slug, localize: true
23
23
 
24
24
  embeds_many :blocks, class_name: 'BlueberryCMS::PageBlock',
@@ -6,6 +6,12 @@
6
6
  = f.input :active
7
7
  = f.simple_fields_for :active_translations do |localized_field|
8
8
  = localized_field.input locale, input_html: { checked: f.object.active_translations[locale] }, as: :boolean, label: false
9
+ = f.input :show_in_menu
10
+ = f.simple_fields_for :show_in_menu_translations do |localized_field|
11
+ = localized_field.input locale, input_html: { checked: f.object.show_in_menu_translations[locale] }, as: :boolean, label: false
12
+ = f.input :show_in_footer
13
+ = f.simple_fields_for :show_in_footer_translations do |localized_field|
14
+ = localized_field.input locale, input_html: { checked: f.object.show_in_footer_translations[locale] }, as: :boolean, label: false
9
15
  = f.input :name
10
16
  = f.simple_fields_for :name_translations do |localized_field|
11
17
  = localized_field.input locale, input_html: { value: f.object.name_translations[locale] }, label: false, hint: t('.name_hint')
@@ -46,8 +52,6 @@ hr
46
52
 
47
53
  hr
48
54
 
49
- = f.input :show_in_menu, as: :boolean
50
- = f.input :show_in_footer, as: :boolean
51
55
  = render 'custom_fields', f: f
52
56
 
53
57
  hr
@@ -1,3 +1,3 @@
1
1
  module BlueberryCMS
2
- VERSION = '0.1.4.1'.freeze
2
+ VERSION = '0.1.4.2'.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.4.1
4
+ version: 0.1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Magnusek