I have a Grid object and added a [ (+) New Client ] button which I d like to open a popup form to create the new client with a couple fields.
I ve looked at the code examples in the website but haven t found how to do it (sorry if I ve missed something).
This is the current page code:
function page_clients_listing($p){
$g = $p->add( Grid );
$g->addColumn( text , first_name );
$g->addColumn( text , last_name );
$g->addColumn( inline , telephone );
$g->addColumn( expander , comments );
$g->setSource( client );
$g->addButton( With Icon )->set( Add New Client )->setIcon( Plus );
}
Thanks in advance!