fixing demo errors, rename template to style

This commit is contained in:
2023-01-03 19:37:31 +02:00
parent 693d121c0f
commit 9bcd43215b
11 changed files with 14 additions and 16 deletions

View File

@ -41,9 +41,9 @@
=submit_button( "Delete" , true)
.basis-72
%h3.mt-4.text-lg.font-bold Template
%h3.mt-4.text-lg.font-bold Style
= link_to(merged.section_select_template_path(section.id)) do
%p= section.template
%p= section.template_style.header
= section_preview(section , class: "object-contain")
.basis-52.grow
%h3.mt-4.text-lg.font-bold Header

View File

@ -2,7 +2,7 @@
.text-xl.font-bold.text-gray-900
Page #{link_to @section.page.name, merged.page_sections_path(@section.page.id), class: "underline"}
.text-xl.text-gray-900
Select Card Template for Section #{@section.index} - #{@section.header}
Select Card Style for Section #{@section.index} - #{@section.header}
= render "layouts/merged_header"
.grid.grid-cols-4.gap-6.m-8

View File

@ -2,7 +2,7 @@
.text-xl.font-bold.text-gray-900
Page #{link_to @section.page.name, merged.page_sections_path(@section.page.id), class: "underline"}
.text-xl.text-gray-900
Select Template for Section #{@section.index} - #{@section.header}
Select Style for Section #{@section.index} - #{@section.header}
= render "layouts/merged_header"

View File

@ -8,9 +8,9 @@
.flex.gap-4.m-8.flex-wrap
.basis-96
%h3.mt-4.text-lg.font-bold Template #{@section.template}
%h3.mt-4.text-lg.font-bold= @section.template_style.header
= section_preview(@section , class: "w-full object-contain my-4")
= yellow_button( "Change Template" , merged.section_select_template_path(@section.id))
= yellow_button( "Change Style" , merged.section_select_template_path(@section.id))
= green_button( "New Section" , merged.new_page_section_path(@section.page.id , template: @section.template) )
.basis-full.mt-3
Updated at:
@ -48,10 +48,10 @@
- if( @section.has_cards? )
.basis-full.h-0
.basis-96
.mx-3.text-lg.font-bold Card Template #{@section.card_template}
.mx-3.text-lg.font-bold Card Style #{@section.card_template}
=card_preview(@section , class: "my-3")
%p.py-3
=yellow_button("Change Card Template", merged.section_select_card_template_path(@section.id))
=yellow_button("Change Card Style", merged.section_select_card_template_path(@section.id))
.basis-96.grow
%h3.mt-4.text-lg.font-bold #{@section.cards.length} Cards

View File

@ -10,9 +10,6 @@
= section.option("subheader")
%p.prose.mt-8.md:block
= markdown(section)
-if section.has_option?("text")
%p.prose.mt-8.md:block
= markdown section.option("text")
-if section.has_option?("button_text")
.mt-8.md:mt-8
= render 'merged/view/elements/button' , section: section