element('leases', array
('config' => array
('grid_div_id' => 'leases-list',
'grid_div_class' => 'text-below',
'caption' => ('
'),
'grid_setup' => array('hiddengrid' => isset($lease['Lease']['id'])),
'grid_events' => array('onSelectRow' =>
array('ids' =>
'if (ids != null){onRowSelect("#"+$(this).attr("id"), ids);}'),
'onHeaderClick' =>
array('gridstate' =>
'onGridState("#"+$(this).attr("id"), gridstate)'),
),
'nolinks' => true,
'limit' => 10,
)));
echo ('
' .
'
' .
'Lease
' . ' / ' .
'Unit:
' . ' / ' .
'Customer:
' .
'
' .
'
' .
'| Rent: | |
' .
'| Late Fee: | |
' .
'| Deposit: | |
' .
'
' .
'
' .
'
' .
'
' .
'Please select lease' .
'
' .
'
' . "\n");
echo $form->create(null, array('id' => 'invoice-form',
'url' => array('controller' => 'transactions',
'action' => 'postInvoice')));
echo $form->input("Lease.id",
array('id' => 'lease-id',
'type' => 'hidden',
'value' => 0));
/* echo '
' . "\n"; */
echo $form->submit('Generate Invoice') . "\n";
?>