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 39 40 41 42
| generator:
class: sfPropelGenerator
param:
model_class: Produit
theme: admin
non_verbose_templates: true
with_show: false
singular: ~
plural: ~
route_prefix: produit
with_propel_route: 1
config:
actions:
_create: { label: Ajouter }
_edit : { label: Modifier }
_delete: { label: Supprimer }
_new: { label: Ajouter }
_save: { label : Sauvegarder }
_save_and_add: { label : Sauvegarder et Ajouter }
_list: { label : Retour }
fields:
photo:
label: Photo du produit
help: max width 200px
type: admin_input_file_tag
upload_dir: images/produit
params: include_link=images/produit include_remove=true
list:
max_per_page: 10
display: [Boutique, nom, prix_ttc, _photo]
peer_method: doSelectJoinBoutique
title: Liste des produits
filter:
display: [nom, prix_ttc]
form: ~
edit:
display: [code, boutique_id, nom, description, prix_ht, tva_id, montant_tva, prix_ttc, photo, produit_sous_categorie_list]
title: Modification du produit "%%nom%%"
new:
display: [code, boutique_id, nom, description, prix_ht, tva_id, montant_tva, prix_ttc, photo, produit_sous_categorie_list]
title: Création d'un nouveau produit |
Partager