refactor educational components and API routes; update form handling in various actions and Vue components, enhance user interface for form display, and improve data retrieval logic in CreateAdmissionPlan job
This commit is contained in:
@@ -142,12 +142,21 @@ class PageForm
|
||||
->label('Скрыть хлебные крошки')
|
||||
->helperText('Скрывает навигационную цепочку вверху страницы')
|
||||
->columnSpan(1),
|
||||
Select::make('settings.custom_form')->label('Прикрепить форму для страницы')
|
||||
])
|
||||
->columns(2),
|
||||
Section::make('Отображение плавающей формы на странице')
|
||||
->description('Управление плавающей формой на странице')
|
||||
->collapsible()
|
||||
->schema([
|
||||
Select::make('settings.form.id')->label('Прикрепить форму для страницы')
|
||||
->searchable()
|
||||
->preload()
|
||||
->options(CustomForm::query()
|
||||
->where('status', CustomFormStatus::PUBLISHED)->pluck('title', 'form_id'))
|
||||
->columnSpanFull()
|
||||
->columnSpanFull(),
|
||||
Textinput::make('settings.form.title')->label('Заголовок плавающего окна'),
|
||||
Textinput::make('settings.form.description')->label('Описание плавающего окна'),
|
||||
Textinput::make('settings.form.button')->label('Текст кнопки'),
|
||||
])
|
||||
->columns(2),
|
||||
]),
|
||||
@@ -155,4 +164,4 @@ class PageForm
|
||||
])
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user