activeadmin-selleo-cms 0.0.33 → 0.0.34

Sign up to get free protection for your applications and to get access to all the features.
@@ -105,7 +105,7 @@ ActiveAdmin.register ActiveadminSelleoCms::Page, as: "Page", sort_order: "lft_as
105
105
  end
106
106
  end
107
107
 
108
- sidebar I18n.t("active_admin.cms.navigation"), only: [:edit, :new] do
108
+ sidebar "Navigation", only: [:edit, :new] do
109
109
  h4 link_to t("active_admin.cms.general_options"), '#id-general-options'
110
110
  h4 link_to t("active_admin.cms.metadata"), '#id-meta-data'
111
111
  ol do
@@ -4,11 +4,11 @@
4
4
 
5
5
  = form.inputs id: 'attachment_fields' do
6
6
  = form.input :data, hint: resource.data_file_name
7
- = form.input :assetable_type, as: :hidden, value: resource.assetable_type
8
- = form.input :assetable_id, as: :hidden, value: resource.assetable_id
9
- = form.input :cover_width, as: :hidden, value: resource.assetable.activeadmin_selleo_cms_section.cover_width
10
- = form.input :cover_height, as: :hidden, value: resource.assetable.activeadmin_selleo_cms_section.cover_height
11
- = form.input :cover_resize_method, as: :hidden, value: resource.assetable.activeadmin_selleo_cms_section.cover_resize_method
7
+ = form.input :assetable_type, as: :hidden, input_html: { value: resource.assetable_type }
8
+ = form.input :assetable_id, as: :hidden, input_html: { value: resource.assetable_id }
9
+ = form.input :cover_width, as: :hidden, input_html: { value: resource.assetable.activeadmin_selleo_cms_section.cover_width }
10
+ = form.input :cover_height, as: :hidden, input_html: { value: resource.assetable.activeadmin_selleo_cms_section.cover_height }
11
+ = form.input :cover_resize_method, as: :hidden, input_html: { value: resource.assetable.activeadmin_selleo_cms_section.cover_resize_method }
12
12
  = form.input :cover, hint: (resource.cover.exists? ? image_tag(resource.cover.url) : t("active_admin.cms.file_manager.no_cover"))
13
13
  = form.input :caption
14
14
  = form.actions :submit
@@ -4,7 +4,7 @@
4
4
 
5
5
  = form.inputs id: 'image_fields' do
6
6
  = form.input :data, label: "Image", hint: (resource.data.exists? ? image_tag(resource.data.url, style: "max-width:520px") : "No image")
7
- = form.input :assetable_type, as: :hidden, value: resource.assetable_type
8
- = form.input :assetable_id, as: :hidden, value: resource.assetable_id
7
+ = form.input :assetable_type, as: :hidden, input_html: { value: resource.assetable_type }
8
+ = form.input :assetable_id, as: :hidden, input_html: { value: resource.assetable_id }
9
9
  = form.input :caption
10
10
  = form.actions :submit
@@ -5,6 +5,6 @@
5
5
  = form.inputs id: 'related_item_fields' do
6
6
  = form.input :related_url
7
7
  = form.input :title
8
- = form.input :relatable_type, as: :hidden, value: resource.relatable_type
9
- = form.input :relatable_id, as: :hidden, value: resource.relatable_id
8
+ = form.input :relatable_type, as: :hidden, input_html: { value: resource.relatable_type }
9
+ = form.input :relatable_id, as: :hidden, input_html: { value: resource.relatable_id }
10
10
  = form.actions :submit
@@ -4,11 +4,11 @@
4
4
 
5
5
  = form.inputs id: 'attachment_fields' do
6
6
  = form.input :data
7
- = form.input :assetable_type, as: :hidden, value: section_translation.class.name
8
- = form.input :assetable_id, as: :hidden, value: section_translation.id
9
- = form.input :cover_width, as: :hidden, value: section_translation.activeadmin_selleo_cms_section.cover_width
10
- = form.input :cover_height, as: :hidden, value: section_translation.activeadmin_selleo_cms_section.cover_height
11
- = form.input :cover_resize_method, as: :hidden, value: section_translation.activeadmin_selleo_cms_section.cover_resize_method
7
+ = form.input :assetable_type, as: :hidden, input_html: { value: section_translation.class.name }
8
+ = form.input :assetable_id, as: :hidden, input_html: { value: section_translation.id }
9
+ = form.input :cover_width, as: :hidden, input_html: { value: section_translation.activeadmin_selleo_cms_section.cover_width }
10
+ = form.input :cover_height, as: :hidden, input_html: { value: section_translation.activeadmin_selleo_cms_section.cover_height }
11
+ = form.input :cover_resize_method, as: :hidden, input_html: { value: section_translation.activeadmin_selleo_cms_section.cover_resize_method }
12
12
  = form.input :cover
13
13
  = form.input :caption
14
14
  = form.actions :submit
@@ -1,11 +1,11 @@
1
1
  = semantic_form_for [:admin, image], remote: true, url: admin_images_path, html: { multipart: true } do |form|
2
2
 
3
3
  = form.inputs id: 'image_fields' do
4
- = form.input :assetable_type, as: :hidden, value: section_translation.class.name
5
- = form.input :assetable_id, as: :hidden, value: section_translation.id
6
- = form.input :image_width, as: :hidden, value: section_translation.activeadmin_selleo_cms_section.width
7
- = form.input :image_height, as: :hidden, value: section_translation.activeadmin_selleo_cms_section.height
8
- = form.input :resize_method, as: :hidden, value: section_translation.activeadmin_selleo_cms_section.resize_method
4
+ = form.input :assetable_type, as: :hidden, input_html: { value: section_translation.class.name }
5
+ = form.input :assetable_id, as: :hidden, input_html: { value: section_translation.id }
6
+ = form.input :image_width, as: :hidden, input_html: { value: section_translation.activeadmin_selleo_cms_section.width }
7
+ = form.input :image_height, as: :hidden, input_html: { value: section_translation.activeadmin_selleo_cms_section.height }
8
+ = form.input :resize_method, as: :hidden, input_html: { value: section_translation.activeadmin_selleo_cms_section.resize_method }
9
9
  = form.input :data
10
10
  = form.input :caption
11
11
  = form.actions :submit
@@ -5,6 +5,6 @@
5
5
  = form.inputs id: 'related_item_fields' do
6
6
  = form.input :related_url
7
7
  = form.input :title
8
- = form.input :relatable_type, as: :hidden, value: section_translation.class.name
9
- = form.input :relatable_id, as: :hidden, value: section_translation.id
8
+ = form.input :relatable_type, as: :hidden, input_html: { value: section_translation.class.name }
9
+ = form.input :relatable_id, as: :hidden, input_html: { value: section_translation.id }
10
10
  = form.actions :submit
@@ -4,6 +4,7 @@ require "language_list"
4
4
  require "paperclip"
5
5
  require "awesome_nested_set"
6
6
  require "liquid"
7
+ require "remotipart"
7
8
  require "activeadmin-selleo-cms/engine"
8
9
  require "activeadmin-selleo-cms/application"
9
10
 
@@ -1,3 +1,3 @@
1
1
  module ActiveadminSelleoCms
2
- VERSION = "0.0.33"
2
+ VERSION = "0.0.34"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin-selleo-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.33
4
+ version: 0.0.34
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: