comfortable_mexican_sofa 2.0.16 → 2.0.17

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: d18190d86d823194b3c4c84b09f645dcccb84dc7a4c8dd6737152de40531347d
4
- data.tar.gz: ee193e477d81df17bd0304d3b016b9356ffb45361e4c8e52cc7fe7a550f5b5aa
2
+ SHA1:
3
+ metadata.gz: 1de2082d0f04ab3482b9ca303ce5cb2a0742c931
4
+ data.tar.gz: 353bdb2b41ec035eb182d8fd96eaba92c2cf1e29
5
5
  SHA512:
6
- metadata.gz: 5f39c1b3c7166059c5c3396bae3511dd61ccf33a00d71b9cbf71bbb9b63d6bb1d416637967c1f8df1cb97e13c0f2d6a2b280ff75a532c3f42f8cd6c654326b16
7
- data.tar.gz: 9f0c76f95bb28f54195720e519c7815da4380678115f654fd3af52f01c35f77b014f456647865e334be5a3717c38b6454867569af589bc3dd3e6b306a638fbc4
6
+ metadata.gz: d1a02dc6c122018580e2653b062ab52c2d1c3085652f60477a47ec0c8706ffe1a65bd9d698fd25a36cca4592fc581ec0460551250bca66b44c60b7b2c4171428
7
+ data.tar.gz: e668efc2fb6e753fe786bf73f33ee5a4ce7a5562a2ef70f93fec110328b3696dacde1652e39914f8cbf4a7599bb297e93058733e4c15fae2fb4cc92c0b0b492c
@@ -4,10 +4,10 @@
4
4
  = form.text_field :identifier, data: {slug: true}
5
5
 
6
6
  - if (options = Comfy::Cms::Layout.options_for_select(@site, @layout)).present?
7
- = form.select :parent_id, [["---- #{t('.select_parent_layout')} ----", nil]] + options
7
+ = form.select :parent_id, [["---- #{t('.select_parent_layout')} ----", nil]] + options, bootstrap: {custom_control: true}
8
8
 
9
9
  - if (options = Comfy::Cms::Layout.app_layouts_for_select(lookup_context.view_paths)).present?
10
- = form.select :app_layout, [["---- #{t('.select_app_layout')} ----", nil]] + options
10
+ = form.select :app_layout, [["---- #{t('.select_app_layout')} ----", nil]] + options, bootstrap: {custom_control: true}
11
11
 
12
12
  = form.text_area :content, data: {'cms-cm-mode' => 'text/html'}
13
13
  = form.text_area :css, data: {'cms-cm-mode' => 'css'}
@@ -6,10 +6,10 @@
6
6
  = form.text_field :slug, data: { slug: true }, prepend: @page.parent.full_path
7
7
 
8
8
  - if (options = ::Comfy::Cms::Page.options_for_select(site: @site, page: @page, exclude_self: true)).present?
9
- = form.select :parent_id, options
9
+ = form.select :parent_id, options, bootstrap: {custom_control: true}
10
10
 
11
11
  - if (options = ::Comfy::Cms::Layout.options_for_select(@site)).present?
12
- = form.select :layout_id, options, {}, {data: {url: form_fragments_comfy_admin_cms_site_page_path(@site, @page.id.to_i)}, id: "fragments-toggle"}
12
+ = form.select :layout_id, options, {bootstrap: {custom_control: true}}, {data: {url: form_fragments_comfy_admin_cms_site_page_path(@site, @page.id.to_i)}, id: "fragments-toggle"}
13
13
 
14
14
  = comfy_admin_partial "comfy/admin/cms/partials/page_form_inner", form: form
15
15
 
@@ -19,7 +19,7 @@
19
19
  = render "comfy/admin/cms/categories/form", form: form
20
20
 
21
21
  - if (options = ::Comfy::Cms::Page.options_for_select(site: @site, page: @page)).present?
22
- = form.select :target_page_id, [["---- #{t('.select_target_page')} ----", nil]] + options
22
+ = form.select :target_page_id, [["---- #{t('.select_target_page')} ----", nil]] + options, bootstrap: {custom_control: true}
23
23
 
24
24
  = form.check_box :is_published
25
25
 
@@ -4,7 +4,9 @@
4
4
  = form.text_field :identifier, data: {slug: true}
5
5
  = form.text_field :hostname
6
6
  = form.text_field :path
7
- = form.select :locale, ComfortableMexicanSofa.config.locales.to_a.collect{|l| ["#{l[1]} (#{l[0]})", l[0]]}
7
+
8
+ - locales = ComfortableMexicanSofa.config.locales.to_a.collect{|l| ["#{l[1]} (#{l[0]})", l[0]]}
9
+ = form.select :locale, locales, bootstrap: {custom_control: true}
8
10
 
9
11
  = comfy_admin_partial "comfy/admin/cms/partials/site_form_after", form: form
10
12
 
@@ -19,6 +19,8 @@ class ComfortableMexicanSofa::Content::Tag::Datetime < ComfortableMexicanSofa::C
19
19
  end
20
20
 
21
21
  def render
22
+ return "" unless renderable
23
+
22
24
  if strftime.present?
23
25
  content.strftime(strftime)
24
26
  else
@@ -3,7 +3,7 @@
3
3
  require "comfortable_mexican_sofa"
4
4
  require "rails"
5
5
  require "rails-i18n"
6
- require "bootstrap_form"
6
+ require "comfy_bootstrap_form"
7
7
  require "active_link_to"
8
8
  require "kramdown"
9
9
  require "jquery-rails"
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class ComfortableMexicanSofa::FormBuilder < BootstrapForm::FormBuilder
3
+ class ComfortableMexicanSofa::FormBuilder < ComfyBootstrapForm::FormBuilder
4
4
 
5
5
  # Renders form input for a fragment
6
6
  #
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ComfortableMexicanSofa
4
4
 
5
- VERSION = "2.0.16"
5
+ VERSION = "2.0.17"
6
6
 
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: comfortable_mexican_sofa
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.16
4
+ version: 2.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oleg Khabarov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-23 00:00:00.000000000 Z
11
+ date: 2018-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_link_to
@@ -634,7 +634,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
634
634
  version: '0'
635
635
  requirements: []
636
636
  rubyforge_project:
637
- rubygems_version: 2.7.5
637
+ rubygems_version: 2.5.1
638
638
  signing_key:
639
639
  specification_version: 4
640
640
  summary: Rails 5.2+ CMS Engine