diff --git a/app/Services/Forms/Pages/PageForms.php b/app/Services/Forms/Pages/PageForms.php index a22ff31..b92c189 100644 --- a/app/Services/Forms/Pages/PageForms.php +++ b/app/Services/Forms/Pages/PageForms.php @@ -5,7 +5,6 @@ namespace App\Services\Forms\Pages; use App\Models\Asset; use App\Models\Objects\FieldType; use App\Models\Pages\Page; -use App\Models\Pages\PageSubType; use App\Models\Pages\PageType; use App\Models\Registries\RegistryType; use App\Services\Forms\FormsService; @@ -23,11 +22,10 @@ class PageForms extends FormsService { [ 'name' => 'common', 'title' => 'Основные свойства страницы', 'fields' => $this->commonGroupFields($model), 'dynamic' => [ - ['field' => 'type', 'hide' => ['registry_type', 'subtype']], + ['field' => 'type', 'hide' => ['registry_type']], ['field' => 'type', 'value' => PageType::REGISTRY, 'show' => ['registry_type']], - ['field' => 'type', 'value' => PageType::PUBLICATIONS, 'show' => ['subtype']] + //['field' => 'type', 'value' => PageType::PUBLICATIONS, 'show' => ['subtype']] ] - ], [ 'name' => 'seo', 'title' => 'Мета данные', 'fields' => $this->seoGroupFields($model) @@ -69,14 +67,6 @@ class PageForms extends FormsService { 'options' => $this->getRelationItems(RegistryType::TITLES), 'value' => $this->getRelationValue(RegistryType::TITLES, $model->registry->type ?? null) ], - [ - 'name' => 'subtype', - 'title' => 'Вид публикации', - 'type' => FieldType::RELATION, - 'required' => true, - 'options' => $this->getRelationItems(PageSubType::TITLES), - 'value' => $this->getRelationValue(PageSubType::TITLES, $model->sub_type ?? null) - ], [ 'name' => 'picture', 'title' => 'Изображение',