2022-11-26 18:07:20 +01:00
|
|
|
.relative.block.border.border-gray-100
|
|
|
|
%h3.mt-4.text-lg.font-bold= key.upcase
|
2022-11-28 11:37:40 +01: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 20:03:49 +01:00
|
|
|
|
2022-11-26 18:07:20 +01:00
|
|
|
.relative.block.border.border-gray-100
|
2022-11-28 11:37:40 +01:00
|
|
|
-if( value.blank? )
|
2022-11-27 13:09:16 +01:00
|
|
|
No image
|
2022-11-28 11:37:40 +01:00
|
|
|
-else
|
|
|
|
= image_tag( "cms/" + value)
|