activeadmin-selleo-cms 0.0.34 → 0.0.35
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,12 +1,12 @@
|
|
1
1
|
<% if resource.valid? %>
|
2
|
-
<% if resource.assetable.images? %>
|
2
|
+
<% if resource.assetable.activeadmin_selleo_cms_section.images? %>
|
3
3
|
$('<%= j render partial: 'image', locals: { image: resource } %>').appendTo('ol#assets');
|
4
4
|
$('#new_image').replaceWith('<%= j render partial: '/admin/section_translations/images_form', locals: { image: ActiveadminSelleoCms::Image.new, section_translation: resource.assetable } %>');
|
5
5
|
<% elsif resource.assetable.activeadmin_selleo_cms_section.image? %>
|
6
6
|
$('#file-manager').html('<%= j render partial: 'form' %>');
|
7
7
|
<% end %>
|
8
8
|
<% else %>
|
9
|
-
<% if resource.assetable.images? %>
|
9
|
+
<% if resource.assetable.activeadmin_selleo_cms_section.images? %>
|
10
10
|
$('#new_image').replaceWith('<%= j render partial: '/admin/section_translations/images_form', locals: { image: resource, section_translation: resource.assetable } %>');
|
11
11
|
<% elsif resource.assetable.activeadmin_selleo_cms_section.image? %>
|
12
12
|
$('#file-manager').html('<%= j render partial: 'form' %>');
|