delegating section data rendering, first version
This commit is contained in:
8
app/views/cms/sections/_button.haml
Normal file
8
app/views/cms/sections/_button.haml
Normal file
@ -0,0 +1,8 @@
|
||||
.p-6
|
||||
%h3.mt-4.text-lg.font-bold= key.upcase
|
||||
%p
|
||||
.font-bold Text
|
||||
= value["text"]
|
||||
%p
|
||||
.font-bold Link
|
||||
= value["link"]
|
3
app/views/cms/sections/_header.haml
Normal file
3
app/views/cms/sections/_header.haml
Normal file
@ -0,0 +1,3 @@
|
||||
.p-6
|
||||
%h3.mt-4.text-lg.font-bold= key.upcase
|
||||
%p= value
|
2
app/views/cms/sections/_image.haml
Normal file
2
app/views/cms/sections/_image.haml
Normal file
@ -0,0 +1,2 @@
|
||||
.p-6
|
||||
= image_tag "cms/" + value
|
3
app/views/cms/sections/_template.haml
Normal file
3
app/views/cms/sections/_template.haml
Normal file
@ -0,0 +1,3 @@
|
||||
.p-6{style: bg(section)}
|
||||
%h3.mt-4.text-lg.font-bold= key.upcase
|
||||
%p= value
|
3
app/views/cms/sections/_text.haml
Normal file
3
app/views/cms/sections/_text.haml
Normal file
@ -0,0 +1,3 @@
|
||||
.p-6
|
||||
%h3.mt-4.text-lg.font-bold= key.upcase
|
||||
%p= value
|
Reference in New Issue
Block a user