[symfony-users] Re: Admin generator: actions per record

2009-03-09 Thread Tomasz Ignatiuk

I don't think it is possible to do automatically.
You have to define someway which records can be deleted, for example
by a field in db

1. Copy _list.php from cache directory from your app module.
2. On foreach where the rows are echoed make an if which will say if
list_td_actions partial should be included for this row or not - this
will clear edit link.
3. In delete action you have to check if this record with this PK can
be deleted - because someone can trigger this action by a link.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Admin generator: actions per record

2009-03-09 Thread Alan Bem
Every AG generated module has *GeneratorConfiguration.class.php and
*GeneratorHelper.class.php classes.
I would look there first.

Cheers, Alan LBO Bem

On Mon, Mar 9, 2009 at 7:09 PM, Tomasz Ignatiuk tomek.ignat...@gmail.comwrote:


 I don't think it is possible to do automatically.
 You have to define someway which records can be deleted, for example
 by a field in db

 1. Copy _list.php from cache directory from your app module.
 2. On foreach where the rows are echoed make an if which will say if
 list_td_actions partial should be included for this row or not - this
 will clear edit link.
 3. In delete action you have to check if this record with this PK can
 be deleted - because someone can trigger this action by a link.


 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---