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.
- data/app/admin/activeadmin_selleo_cms/page.rb +1 -1
- data/app/views/admin/attachments/_form.html.haml +5 -5
- data/app/views/admin/images/_form.html.haml +2 -2
- data/app/views/admin/related_items/_form.html.haml +2 -2
- data/app/views/admin/section_translations/_attachments_form.html.haml +5 -5
- data/app/views/admin/section_translations/_images_form.html.haml +5 -5
- data/app/views/admin/section_translations/_related_items_form.html.haml +2 -2
- data/lib/activeadmin-selleo-cms.rb +1 -0
- data/lib/activeadmin-selleo-cms/version.rb +1 -1
- metadata +1 -1
@@ -105,7 +105,7 @@ ActiveAdmin.register ActiveadminSelleoCms::Page, as: "Page", sort_order: "lft_as
|
|
105
105
|
end
|
106
106
|
end
|
107
107
|
|
108
|
-
sidebar
|
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
|