|
easy_admin: |
|
site_name: 'Aqua<i>Note</i>' |
|
design: |
|
brand_color: '#81b9ba' |
|
assets: |
|
css: ['css/custom_backend.css'] |
|
js: |
|
- 'https://unpkg.com/snarkdown@1.2.2/dist/snarkdown.umd.js' |
|
- 'js/custom_backend.js' |
|
templates: |
|
field_id: 'admin/fields/_id.html.twig' |
|
form_theme: |
|
- horizontal |
|
- easy_admin/_form_theme.html.twig |
|
menu: |
|
- { label: 'Dashboard', route: 'admin_dashboard', default: true } |
|
- { label: 'Open front-end', route: 'app_genus_list' } |
|
- { entity: 'User', label: 'Users', icon: 'user' } |
|
- |
|
label: 'Genus' |
|
children: |
|
- |
|
entity: 'Genus' |
|
label: 'Pet genus' |
|
icon: 'paw' |
|
params: |
|
action: 'show' |
|
id: 2 |
|
- Genus |
|
- |
|
entity: 'Genus' |
|
label: 'Genuses (sorted by ID)' |
|
params: |
|
sortField: 'id' |
|
sortDirection: 'ASC' |
|
pizza: 'delicious' |
|
- GenusHorde |
|
- { label: 'Related' } |
|
- { entity: 'GenusNote', label: 'Notes', icon: 'sticky-note' } |
|
- { entity: 'SubFamily', label: 'Sub-Families', icon: '' } |
|
- |
|
label: 'Important stuff' |
|
icon: 'exclamation' |
|
children: |
|
- |
|
label: 'Silly kittens' |
|
url: 'https://www.youtube.com/results?search_query=silly+kittens' |
|
target: '_blank' |
|
- |
|
label: 'Wet cats' |
|
url: 'http://www.boredpanda.com/funny-wet-cats/' |
|
target: '_blank' |
|
list: |
|
title: 'List of %%entity_label%%' |
|
actions: ['show', 'export'] |
|
entities: |
|
Genus: |
|
class: AppBundle\Entity\Genus |
|
controller: AppBundle\Controller\EasyAdmin\GenusController |
|
label: Genuses |
|
help: Genuses are not covered under warranty! |
|
list: |
|
help: Do not feed! |
|
actions: |
|
- { name: 'edit', icon: 'pencil', label: 'Edit' } |
|
- { name: 'show', icon: 'info-circle', label: '' } |
|
fields: |
|
- 'id' |
|
- 'name' |
|
- 'isPublished' |
|
- { property: 'firstDiscoveredAt', format: 'M Y', label: 'Discovered' } |
|
- 'funFact' |
|
- { property: 'speciesCount', format: '%b' } |
|
sort: 'name' |
|
search: |
|
help: null |
|
fields: ['id', 'name'] |
|
show: |
|
actions: |
|
- |
|
name: 'genus_feed' |
|
type: 'route' |
|
label: 'Feed genus' |
|
css_class: 'btn btn-info' |
|
icon: 'cutlery' |
|
- { name: 'changePublishedStatus', css_class: 'btn' } |
|
|
|
|
|
form: |
|
fields: |
|
- { type: 'group', css_class: 'col-sm-6', label: 'Basic information' } |
|
- name |
|
- speciesCount |
|
- { property: 'firstDiscoveredAt', type_options: { widget: 'single_text' }} |
|
- { property: 'subFamily', type: 'easyadmin_autocomplete' } |
|
- { type: 'section', label: 'Optional' } |
|
- { property: 'funFact', type: 'textarea', css_class: 'js-markdown-input' } |
|
- isPublished |
|
|
|
- { type: 'group', css_class: 'col-sm-6', label: 'Studied by ...' } |
|
- |
|
property: 'genusScientists' |
|
type: 'text' |
|
type_options: |
|
mapped: false |
|
attr: { class: 'js-genus-scientists-field' } |
|
|
|
- |
|
type: 'group' |
|
css_class: 'col-sm-6 new-row' |
|
label: 'Identification' |
|
icon: 'id-card-o' |
|
help: 'For administrators' |
|
- |
|
property: id |
|
type_options: {disabled: true} |
|
- |
|
property: 'slug' |
|
help: 'unique auto-generated value' |
|
type_options: { disabled: true } |
|
|
|
new: |
|
fields: |
|
- '-id' |
|
- '-slug' |
|
GenusHorde: |
|
class: AppBundle\Entity\Genus |
|
label: HORDE of Genuses |