Hi,
Include a custom partial to your generator.yml. In this template for
this action you could do whatever you want and create the link for
your popup.
list:
display: [id, ...., _add_comment]
fields:
add_comment: { label: Add a comment }
templates/_add_comment.php
---
echo link_to('add', 'route?id='.$model->getId(), array('onclick' =>
'window.open(......); return false;'));
---
Frank
Am 21.10.2009 um 17:47 schrieb hhaythem:
>
> bonsoir tout le monde,
>
> je suis nouveau sur ce forum et débutant avec symfony, voila en bref
> j'ai besoin d'un peu d'aide concernant la création des fenêtres popup
> avec l'admin generator de symfony.
>
> pour être plus claire j'ai crée un object_action "addcomment" dans le
> generator.yml et par la suite je ne sais pas quoi mettre au niveau de
> la fonction addcomment() dans le fichier action.class.php pour que ce
> contrôle ouvre une fenêtre popup pour que je puisse saisir un
> commentaire.
>
> je vous remercie d'avance.
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---