start on section edit (without edit)
This commit is contained in:
9
app/views/cms/sections/editors/_button.haml
Normal file
9
app/views/cms/sections/editors/_button.haml
Normal file
@ -0,0 +1,9 @@
|
||||
.relative.block.border.border-gray-100
|
||||
%h3.mt-4.text-lg.font-bold= key.upcase
|
||||
%p
|
||||
.font-bold Text
|
||||
= value["text"]
|
||||
.relative.block.border.border-gray-100
|
||||
%p
|
||||
.font-bold Link
|
||||
= value["link"]
|
6
app/views/cms/sections/editors/_card_template.haml
Normal file
6
app/views/cms/sections/editors/_card_template.haml
Normal file
@ -0,0 +1,6 @@
|
||||
.relative.block.border.border-gray-100
|
||||
%h3.mt-4.text-lg.font-bold= key.upcase
|
||||
%p= value
|
||||
%p #{section.content['cards'].length} cards
|
||||
.relative.block.border.border-gray-100
|
||||
=image_tag("cms/card_preview/#{value}" , class: "w-full object-contain")
|
4
app/views/cms/sections/editors/_cards.haml
Normal file
4
app/views/cms/sections/editors/_cards.haml
Normal file
@ -0,0 +1,4 @@
|
||||
.relative.block.border.border-gray-100
|
||||
Cards number
|
||||
.relative.block.border.border-gray-100
|
||||
Card preview
|
4
app/views/cms/sections/editors/_header.haml
Normal file
4
app/views/cms/sections/editors/_header.haml
Normal file
@ -0,0 +1,4 @@
|
||||
.relative.block.border.border-gray-100
|
||||
%h3.mt-4.text-lg.font-bold= key.upcase
|
||||
.relative.block.border.border-gray-100
|
||||
%p= value
|
0
app/views/cms/sections/editors/_id.haml
Normal file
0
app/views/cms/sections/editors/_id.haml
Normal file
4
app/views/cms/sections/editors/_image.haml
Normal file
4
app/views/cms/sections/editors/_image.haml
Normal file
@ -0,0 +1,4 @@
|
||||
.relative.block.border.border-gray-100
|
||||
%h3.mt-4.text-lg.font-bold= key.upcase
|
||||
.relative.block.border.border-gray-100
|
||||
= image_tag "cms/" + value
|
5
app/views/cms/sections/editors/_template.haml
Normal file
5
app/views/cms/sections/editors/_template.haml
Normal file
@ -0,0 +1,5 @@
|
||||
.relative.block.border.border-gray-100
|
||||
%h3.mt-4.text-lg.font-bold= key.upcase
|
||||
%p= value
|
||||
.relative.block.border.border-gray-100
|
||||
=image_tag("cms/section_preview/#{section.template}" , class: "w-full object-contain")
|
4
app/views/cms/sections/editors/_text.haml
Normal file
4
app/views/cms/sections/editors/_text.haml
Normal file
@ -0,0 +1,4 @@
|
||||
.relative.block.border.border-gray-100
|
||||
%h3.mt-4.text-lg.font-bold= key.upcase
|
||||
.relative.block.border.border-gray-100
|
||||
%p= value
|
Reference in New Issue
Block a user