more option work
This commit is contained in:
@ -16,7 +16,7 @@
|
||||
- @section.cards.each_with_index do |card , index|
|
||||
.relative.block.border.border-gray-100
|
||||
.p-4
|
||||
%h3.mt-4.text-lg.font-bold Card #{index + 1}
|
||||
%h3.mt-4.text-lg.font-bold Card #{index + 1}:#{card.header}
|
||||
= blue_button( "Up" , card_move_url(card.id , dir: :up) )
|
||||
= blue_button( "Down" , card_move_url(card.id , dir: :down) )
|
||||
= form_tag( card_url(card.id) , {method: :delete } ) do
|
||||
|
@ -1,9 +1,9 @@
|
||||
.flex.flex-col.m-20{ background_option(section)}
|
||||
.flex.flex-col.m-20{ options(section , :background , :color)}
|
||||
.flex.items-center.justify-center.flex-1
|
||||
.max-w-prose.px-4.py-16.mx-auto.text-center
|
||||
%h1.text-2xl.font-bold.tracking-tight.text-gray-900.sm:text-4xl
|
||||
%h1.text-2xl.font-bold.tracking-tight.sm:text-4xl
|
||||
= section.header
|
||||
%p.mt-4.text-gray-700.pt-10
|
||||
%p.mt-4.text-lg.pt-10
|
||||
= section.text
|
||||
- template = "merged/view/cards/" + section.card_template
|
||||
.grid{ column_option(section)}
|
||||
|
@ -2,11 +2,17 @@
|
||||
%div{ order_option(section)}
|
||||
= image_for( section , "h-56 w-full object-cover sm:h-full")
|
||||
.p-8.md:p-12.lg:px-16.lg:py-24{ background_option(section)}
|
||||
.mx-auto.max-w-xl.text-center.sm:text-left
|
||||
%h2.text-2xl.font-bold.text-gray-900.md:text-3xl
|
||||
.mx-auto.max-w-xl{options(section , :align , :color)}
|
||||
%h2.mt-12.text-2xl.font-bold.md:text-4xl
|
||||
= section.header
|
||||
%p.text-gray-500.mt-4.md:block
|
||||
-if section.has_option?("subheader")
|
||||
%h4.text-xl.mt-10.md:text-2xl
|
||||
= section.option("subheader")
|
||||
%p.mt-8.md:block
|
||||
= section.text
|
||||
.mt-4.md:mt-8
|
||||
-if section.has_option?("text")
|
||||
%p.mt-8.md:block
|
||||
= section.option("text")
|
||||
.mt-8.md:mt-8
|
||||
-if section.has_option?("button_text")
|
||||
= render 'merged/view/elements/button' , section: section
|
||||
|
@ -1,5 +1,7 @@
|
||||
%div.m-10{background_option(card)}
|
||||
= image_for( card , "h-96 w-full object-cover")
|
||||
%div.m-4{align_option(card)}
|
||||
%h3.mt-4.p-4.text-xl.font-bold= card.header
|
||||
%div.m-6{options(card , :align , :color)}
|
||||
%h3.p-4.text-2xl.font-bold= card.header
|
||||
-if card.has_option?("subheader")
|
||||
%h4.p-4.text-xl= card.option("subheader")
|
||||
%p.mt-2.p-4= card.text
|
||||
|
Reference in New Issue
Block a user