Added tooltips to the sitemap. At some point, we hope to incorporate a jquery plugin for nicer presentation, but this gets the basics.
git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716@616 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -95,8 +95,10 @@ class MapsController extends AppController {
|
||||
array('fields' => array()),
|
||||
|
||||
'CurrentLease' =>
|
||||
array('fields' => array($this->Map->Unit->CurrentLease->
|
||||
delinquentField('CurrentLease'))),
|
||||
array('fields' => array('id', 'paid_through_date',
|
||||
$this->Map->Unit->CurrentLease->
|
||||
delinquentField('CurrentLease')),
|
||||
'Customer'),
|
||||
|
||||
'UnitSize' =>
|
||||
array('fields' => array('id', 'depth', 'width',
|
||||
@@ -166,12 +168,13 @@ class MapsController extends AppController {
|
||||
'n-s' => $unit['MapsUnit']['transpose'] ? 0 : 1,
|
||||
'status' => (($unit['Unit']['status'] === 'OCCUPIED' &&
|
||||
!empty($unit[0]['delinquent']))
|
||||
? 'LATE' : $unit['Unit']['status'])
|
||||
? 'LATE' : $unit['Unit']['status']),
|
||||
'data' => $unit,
|
||||
);
|
||||
}
|
||||
|
||||
/* pr($info); */
|
||||
/* $this->render('/empty'); */
|
||||
/* $this->render('/empty'); exit(); */
|
||||
return $info;
|
||||
}
|
||||
|
||||
|
||||
@@ -16,8 +16,20 @@
|
||||
$html->url(array('controller' => 'units',
|
||||
'action' => 'view',
|
||||
$unit['id'])) .
|
||||
'" alt="' .
|
||||
'" alt="Unit #' .
|
||||
$unit['name'] .
|
||||
'" title="Unit #' .
|
||||
$unit['name'] .
|
||||
(empty($unit['data']['CurrentLease']['id'])
|
||||
? ''
|
||||
: ('; ' .
|
||||
/* 'Lease #' . */
|
||||
/* $unit['data']['CurrentLease']['id'] . */
|
||||
/* '; ' . */
|
||||
$unit['data']['Customer']['name'] .
|
||||
'; Paid Through ' .
|
||||
$unit['data']['CurrentLease']['paid_through_date'])
|
||||
) .
|
||||
'">' . "\n");
|
||||
}
|
||||
}// for indentation purposes
|
||||
|
||||
Reference in New Issue
Block a user