Add placeholder picker component to template forms: Integrated a new placeholder picker component in Footer, Header, Menu, and Section template forms to enhance user experience by allowing easy insertion of placeholder variables. Updated the TemplateService to support custom blade components and added localization for the new placeholder picker functionality.
This commit is contained in:
@@ -29,6 +29,13 @@ class FooterTemplateForm
|
||||
->maxLength(255)
|
||||
->columnSpanFull(),
|
||||
|
||||
// Placeholder Picker Component
|
||||
View::make('components.placeholder-picker')
|
||||
->viewData([
|
||||
'fieldName' => 'html_content',
|
||||
])
|
||||
->columnSpanFull(),
|
||||
|
||||
CodeEditor::make('html_content')
|
||||
->label(__('footer-templates.field_html_content'))
|
||||
->required()
|
||||
|
||||
@@ -28,6 +28,13 @@ class HeaderTemplateForm
|
||||
->maxLength(255)
|
||||
->columnSpanFull(),
|
||||
|
||||
// Placeholder Picker Component
|
||||
View::make('components.placeholder-picker')
|
||||
->viewData([
|
||||
'fieldName' => 'html_content',
|
||||
])
|
||||
->columnSpanFull(),
|
||||
|
||||
CodeEditor::make('html_content')
|
||||
->label(__('header-templates.field_html_content'))
|
||||
->required()
|
||||
|
||||
@@ -25,6 +25,13 @@ class MenuTemplateForm
|
||||
->maxLength(255)
|
||||
->columnSpanFull(),
|
||||
|
||||
// Placeholder Picker Component
|
||||
View::make('components.placeholder-picker')
|
||||
->viewData([
|
||||
'fieldName' => 'html_content',
|
||||
])
|
||||
->columnSpanFull(),
|
||||
|
||||
CodeEditor::make('html_content')
|
||||
->label(__('menu-templates.field_html_content'))
|
||||
->required()
|
||||
|
||||
@@ -28,6 +28,13 @@ class SectionTemplateForm
|
||||
->maxLength(255)
|
||||
->columnSpanFull(),
|
||||
|
||||
// Placeholder Picker Component
|
||||
View::make('components.placeholder-picker')
|
||||
->viewData([
|
||||
'fieldName' => 'html_content',
|
||||
])
|
||||
->columnSpanFull(),
|
||||
|
||||
CodeEditor::make('html_content')
|
||||
->label(__('section-templates.field_html_content'))
|
||||
->required()
|
||||
|
||||
Reference in New Issue
Block a user