Removed the comment from lease move-out, and tweaked the form_table to support it
git-svn-id: file:///svn-source/pmgr/branches/invoice_receipt_20090629/site@277 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -45,6 +45,9 @@ if ($include_after)
|
|||||||
|
|
||||||
$rows = array();
|
$rows = array();
|
||||||
foreach ($fields AS $field => $config) {
|
foreach ($fields AS $field => $config) {
|
||||||
|
if (!isset($config))
|
||||||
|
continue;
|
||||||
|
|
||||||
if (!isset($config['name']))
|
if (!isset($config['name']))
|
||||||
$config['name'] = implode(' ', array_map('ucfirst', explode('_', $field)));
|
$config['name'] = implode(' ', array_map('ucfirst', explode('_', $field)));
|
||||||
if (!isset($config['opts']))
|
if (!isset($config['opts']))
|
||||||
|
|||||||
@@ -185,7 +185,10 @@ echo $this->element('form_table',
|
|||||||
'id' => "LeaseMoveDate"),
|
'id' => "LeaseMoveDate"),
|
||||||
'between' => '<A HREF="#" ONCLICK="datepickerNow(\'LeaseMoveDate\', false); return false;">Now</A>',
|
'between' => '<A HREF="#" ONCLICK="datepickerNow(\'LeaseMoveDate\', false); return false;">Now</A>',
|
||||||
),
|
),
|
||||||
"comment" => array('opts' => array('size' => 50)),
|
"comment" =>
|
||||||
|
($move_type !== 'out'
|
||||||
|
? array('opts' => array('size' => 50))
|
||||||
|
: null),
|
||||||
)));
|
)));
|
||||||
|
|
||||||
if ($move_type === 'out') {
|
if ($move_type === 'out') {
|
||||||
|
|||||||
Reference in New Issue
Block a user