2022-11-26 19:07:20 +02:00
|
|
|
.relative.block.border.border-gray-100
|
|
|
|
%h3.mt-4.text-lg.font-bold= key.upcase
|
2022-11-28 12:37:40 +02:00
|
|
|
%button.ml-3.inline-block.rounded-lg.bg-blue-500.px-5.py-3.text-md.font-medium.text-white
|
|
|
|
=link_to "Change Image" , cms_page_section_select_image_url(@page.name,@section.id)
|
|
|
|
%button.ml-3.inline-block.rounded-lg.bg-red-500.px-5.py-3.text-md.font-medium.text-white
|
|
|
|
= link_to( "Remove image" , cms_page_section_set_image_path( @page.name, @section.id , image: ""))
|
|
|
|
|
2022-11-27 21:03:49 +02:00
|
|
|
|
2022-11-26 19:07:20 +02:00
|
|
|
.relative.block.border.border-gray-100
|
2022-11-28 12:37:40 +02:00
|
|
|
-if( value.blank? )
|
2022-11-27 14:09:16 +02:00
|
|
|
No image
|
2022-11-28 12:37:40 +02:00
|
|
|
-else
|
|
|
|
= image_tag( "cms/" + value)
|