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:
abijah
2009-07-09 02:57:29 +00:00
parent 09090d1b3c
commit a45fd6879d
2 changed files with 7 additions and 1 deletions

View File

@@ -45,6 +45,9 @@ if ($include_after)
$rows = array();
foreach ($fields AS $field => $config) {
if (!isset($config))
continue;
if (!isset($config['name']))
$config['name'] = implode(' ', array_map('ucfirst', explode('_', $field)));
if (!isset($config['opts']))

View File

@@ -185,7 +185,10 @@ echo $this->element('form_table',
'id' => "LeaseMoveDate"),
'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') {