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 32 33 34 35 36 37 38
|
generator:
class: sfDoctrineGenerator
param:
model_class: hotel
theme: admin
non_verbose_templates: true
with_show: false
singular: ~
plural: ~
route_prefix: hotel
with_doctrine_route: true
config:
actions: ~
fields:
is_activated: { label: Activated, help: Whether the user has activated the Hotel, or not }
list:
title: Hotels Management
layout: stacked
display: [name, nbetoile, region, description, is_activated, email]
max_per_page: 10
sort: [nbetoile, desc]
batch_actions:
_delete: ~
object_actions:
_edit: ~
_delete: ~
ajouteravi: { label: Ajouter un avi, action: ajouterAvi }
voiravis: { label: Voir les avis, action: voirAvis }
filter:
display: [name, nbetoile, id_region, description, is_activated]
form:
class: HotelForm
edit:
title: Editing hotel "%%name%% in %%region%%"
new:
title: hotel Creation |
Partager