added new card types
parent
ca43eb9c84
commit
427b3eb321
|
|
@ -15,6 +15,10 @@ class DictionariesTableSeeder extends Seeder {
|
||||||
'title' => 'Виды заголовков',
|
'title' => 'Виды заголовков',
|
||||||
'items' => ['h2' => 'Заголовок 1', 'h3' => 'Заголовок 2', 'h4' => 'Заголовок 3']
|
'items' => ['h2' => 'Заголовок 1', 'h3' => 'Заголовок 2', 'h4' => 'Заголовок 3']
|
||||||
],
|
],
|
||||||
|
'card-styles' => [
|
||||||
|
'title' => 'Виды отображения карточек',
|
||||||
|
'items' => ['default' => 'По умолчанию', 'alternative' => 'Альтернативный', 'special' => 'Специфический']
|
||||||
|
],
|
||||||
'feedback-types' => [
|
'feedback-types' => [
|
||||||
'title' => 'Тема обращения',
|
'title' => 'Тема обращения',
|
||||||
'items' => [
|
'items' => [
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,16 @@ class FieldsTableSeeder extends Seeder {
|
||||||
'required' => true
|
'required' => true
|
||||||
],
|
],
|
||||||
|
|
||||||
|
'subheader' => [
|
||||||
|
'title' => 'Текст подзаголовка',
|
||||||
|
'type' => FieldType::TEXT
|
||||||
|
],
|
||||||
|
|
||||||
|
'text' => [
|
||||||
|
'title' => 'Содержимое текстового блока',
|
||||||
|
'type' => FieldType::TEXT
|
||||||
|
],
|
||||||
|
|
||||||
'documents' => [
|
'documents' => [
|
||||||
'title' => 'Документы',
|
'title' => 'Документы',
|
||||||
'type' => FieldType::DOCUMENT,
|
'type' => FieldType::DOCUMENT,
|
||||||
|
|
@ -104,6 +114,15 @@ class FieldsTableSeeder extends Seeder {
|
||||||
'options' => ['show' => true, 'whereHas' => ['parent' => ['name' => 'cards-section-type']]]
|
'options' => ['show' => true, 'whereHas' => ['parent' => ['name' => 'cards-section-type']]]
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
'card-style' => [
|
||||||
|
'title' => 'Вид отображения',
|
||||||
|
'type' => FieldType::RELATION,
|
||||||
|
'required' => true,
|
||||||
|
'params' => [
|
||||||
|
'related' => DictionaryItem::class, 'transformer' => DictionaryItemTransformer::class,
|
||||||
|
'options' => ['show' => true, 'whereHas' => ['dictionary' => ['name' => 'card-styles']]]
|
||||||
|
]
|
||||||
|
],
|
||||||
'person-name' => [
|
'person-name' => [
|
||||||
'title' => 'ФИО сотрудника',
|
'title' => 'ФИО сотрудника',
|
||||||
'type' => FieldType::STRING
|
'type' => FieldType::STRING
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,16 @@ class ObjectTypeFieldsTableSeeder extends Seeder {
|
||||||
'fields' => ['cards-section-type']
|
'fields' => ['cards-section-type']
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
'cards-section-default' => [
|
||||||
|
'common' => [
|
||||||
|
'fields' => ['card-style', 'header', 'subheader', 'text', 'image', 'link']
|
||||||
|
]
|
||||||
|
],
|
||||||
|
'cards-section-slides' => [
|
||||||
|
'common' => [
|
||||||
|
'fields' => ['header', 'subheader', 'text', 'image', 'link']
|
||||||
|
]
|
||||||
|
],
|
||||||
'cards-section-persons' => [
|
'cards-section-persons' => [
|
||||||
'common' => [
|
'common' => [
|
||||||
'fields' => ['image', 'person-name', 'person-position', 'contact-phone', 'contact-email', 'html']
|
'fields' => ['image', 'person-name', 'person-position', 'contact-phone', 'contact-email', 'html']
|
||||||
|
|
|
||||||
|
|
@ -64,6 +64,8 @@ class ObjectTypesTableSeeder extends Seeder {
|
||||||
'cards-section-type' => [
|
'cards-section-type' => [
|
||||||
'title' => 'Тип карточек',
|
'title' => 'Тип карточек',
|
||||||
'children' => [
|
'children' => [
|
||||||
|
'cards-section-default' => ['title' => 'Универсальные'],
|
||||||
|
'cards-section-slides' => ['title' => 'Слайды'],
|
||||||
'cards-section-persons' => ['title' => 'Сотрудники'],
|
'cards-section-persons' => ['title' => 'Сотрудники'],
|
||||||
'cards-section-partners' => ['title' => 'Партнеры']
|
'cards-section-partners' => ['title' => 'Партнеры']
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -48,8 +48,7 @@ class PagesTableSeeder extends Seeder {
|
||||||
PublicationType::TITLES[PublicationType::SMI] => ['type' => PageType::PUBLICATIONS, 'sub_type' => PublicationType::SMI],
|
PublicationType::TITLES[PublicationType::SMI] => ['type' => PageType::PUBLICATIONS, 'sub_type' => PublicationType::SMI],
|
||||||
PublicationType::TITLES[PublicationType::VIDEO] => ['type' => PageType::PUBLICATIONS, 'sub_type' => PublicationType::VIDEO]
|
PublicationType::TITLES[PublicationType::VIDEO] => ['type' => PageType::PUBLICATIONS, 'sub_type' => PublicationType::VIDEO]
|
||||||
]
|
]
|
||||||
],
|
]
|
||||||
'Структура ТК' => ['type' => PageType::TK_STRUCTURE]
|
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
'Агнлийский' => [
|
'Агнлийский' => [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue