activeadmin-selleo-cms 0.0.35 → 0.0.36
Sign up to get free protection for your applications and to get access to all the features.
@@ -30,7 +30,7 @@ module ActiveadminSelleoCms
|
|
30
30
|
|
31
31
|
before_validation do
|
32
32
|
self.slug = self.title.parameterize if title and slug.blank?
|
33
|
-
translations.each{ |
|
33
|
+
translations.each{ |translation| set_nest(translation)}
|
34
34
|
end
|
35
35
|
|
36
36
|
before_save do
|
@@ -27,7 +27,7 @@
|
|
27
27
|
%li.input
|
28
28
|
%label Image
|
29
29
|
%ol{ :style => "padding-left: 275px;" }
|
30
|
-
%li= button_to_function t("active_admin.cms.file_manager.edit_image"), "fileManager('#{section_form_translated.object.image ? edit_admin_image_path(section_form_translated.object.image.id) : new_admin_image_path(image: { assetable_type: section_form_translated.class.name, assetable_id: section_form_translated.id })}')", style: "padding: 5px;"
|
30
|
+
%li= button_to_function t("active_admin.cms.file_manager.edit_image"), "fileManager('#{section_form_translated.object.image ? edit_admin_image_path(section_form_translated.object.image.id) : new_admin_image_path(image: { assetable_type: section_form_translated.object.class.name, assetable_id: section_form_translated.object.id })}')", style: "padding: 5px;"
|
31
31
|
|
32
32
|
- elsif section.images?
|
33
33
|
%li.input
|
@@ -39,7 +39,7 @@
|
|
39
39
|
%li.input
|
40
40
|
%label Attachment
|
41
41
|
%ol{ :style => "padding-left: 275px;" }
|
42
|
-
%li= button_to_function t("active_admin.cms.file_manager.edit_attachment"), "fileManager('#{section_form_translated.object.attachment ? edit_admin_attachment_path(section_form_translated.object.attachment.id): new_admin_attachment_path(image: { assetable_type: section_form_translated.class.name, assetable_id: section_form_translated.id }) }')", style: "padding: 5px;"
|
42
|
+
%li= button_to_function t("active_admin.cms.file_manager.edit_attachment"), "fileManager('#{section_form_translated.object.attachment ? edit_admin_attachment_path(section_form_translated.object.attachment.id): new_admin_attachment_path(image: { assetable_type: section_form_translated.object.class.name, assetable_id: section_form_translated.object.id }) }')", style: "padding: 5px;"
|
43
43
|
|
44
44
|
= section_form_translated.input :locale, :as => :hidden, :label => false
|
45
45
|
|