lag_admin:
application:
title: My Little TaunTaun application
description: My Little TaunTaun application using Admin Bundle
locale: en
# Use the css framework Bootstrap integration (default: true)
bootstrap: true
# Your base template (default: LAGAdminBundle::admin.layout.html.twig)
base_template: 'MyLittleTaunTaunBundle::layout.html.twig'
# Form block template
block_template: 'MyLittleTaunTaunBundle:Form:fields.html.twig'
# Admins routing configuration
routing:
name_pattern: 'tauntaun.{admin}.{action}'
url_pattern: 'tauntaun/{admin}/{action}'
# Use extra configuration helper (default: true)
enable_extra_configuration: true
# Global date format (can be override for each admin, or field)
date_format: 'd/M/Y'
# In list view, strings will be truncated after 200 characters and will be suffixed by ...
string_length: 200
string_truncate: '...'
# Translation configuration
translation:
# Default: true
enabled: true
pattern: app.{key}
# In list view, only 25 items per page
max_per_page: 25
fields_mapping:
# You can override or create new field (it should be declared in services.yml, see the dedicated chapter)
my_custom_field: MyLittleTaunTaunBundle\Fields\MyCustomField
my_custom_string: MyLittleTaunTaunBundle\Fields\MyString
admins:
planet:
# Generic action
create: ~
edit: ~
delete: ~
list:
fields:
id: ~
name:
type: link
options:
length: 40
# According to global routing pattern
route: tauntaun.planet.edit
parameters: {id: ~}
category: ~
galaxy: ~
publicationStatus: ~
publicationDate: {type: date, options: {format: d/m/Y}}
updatedAt: {type: date, options: {format: '\L\e d/m/Y à h:i:s'}}
# Your Doctrine entity (required)
entity: MyLittleTaunTaunBundle\Entity\Planet
# Your Symfony form type (required; used in create and edit action)
form: MyLittleTaunTaunBundle\Form\PlanetType
actions:
# Custom actions
death_star:
title: Destroy a planet
fields:
permissions: [ROLE_DARK_SITH]
# Planets will be retrieved sorted by size and by population
order:
size: getSize
population: ~
route: app.planets.destroy
route_parameters: {id: ~}
icon: fa fa-planet
load_strategy: unique
# Allowed options are pagerfanta and false
pager: false
criteria: {id: ~}
menu:
top:
items:
destroy_another:
title: Destroy an other planet
route: destroy.again
# Used batch action in list view
batch: true
# Global routing override
routes_pattern: tauntaun.{admin}.{action}
# Your custom controller (can extends CRUDController to ease Admin management)
controller: MyLittleTaunTaunBundle:TaunTaun
max_per_page: 5
# Should implements DataProviderInterface
data_provider: 'my.custom.data_provider.service'
# Translations pattern override
translation:
enabled: true
pattern: lag.{admin}.{key}
catalog: messages
# Short configuration reference
tauntaun:
entity: MyLittleTaunTaunBundle\Entity\TaunTaun
form: MyLittleTaunTaunBundle\Entity\TaunTaunType
# Will create a CRUD with create, edit, list and delete action for the entity Tauntaun
actions: ~
How can I help you explore Laravel packages today?