-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheasy_admin.yaml
More file actions
31 lines (30 loc) · 1.55 KB
/
easy_admin.yaml
File metadata and controls
31 lines (30 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
easy_admin:
entities:
Page:
class: Opera\CoreBundle\Entity\Page
list:
fields: [ 'slug', 'title', 'status', 'route' ]
actions:
- edit
- delete
- { name: 'opera_admin_pages_blocks', type: 'route', label: 'Layout' }
form:
fields:
- { type: 'tab' , label: 'Informations', icon: 'user' }
- title
- { property: 'slug', type_options: { required: false } }
- { property: 'status', type: 'choice', type_options: { choices: { 'published': 'published', 'draft': 'draft' } } }
- { property: 'route', type: 'Opera\AdminBundle\Form\RouteChoiceType' }
- { property: 'configuration', type: 'Opera\AdminBundle\Form\JsonType' }
- { property: 'requirements', type: 'Opera\AdminBundle\Form\JsonType' }
- { property: 'is_regexp', help: 'If is not a route and want dynamics params' }
- layout
- { type: 'tab' , label: 'SEO', icon: 'search' }
- { property: meta_keyword, type: textarea }
- { property: meta_description, type: textarea }
- { property: complementary_meta, type: textarea }
Layout:
class: Opera\CoreBundle\Entity\Layout
form:
fields:
- { property: 'configuration', type: 'Opera\AdminBundle\Form\JsonType' }