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/site@616 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -95,8 +95,10 @@ class MapsController extends AppController {
|
|||||||
array('fields' => array()),
|
array('fields' => array()),
|
||||||
|
|
||||||
'CurrentLease' =>
|
'CurrentLease' =>
|
||||||
array('fields' => array($this->Map->Unit->CurrentLease->
|
array('fields' => array('id', 'paid_through_date',
|
||||||
delinquentField('CurrentLease'))),
|
$this->Map->Unit->CurrentLease->
|
||||||
|
delinquentField('CurrentLease')),
|
||||||
|
'Customer'),
|
||||||
|
|
||||||
'UnitSize' =>
|
'UnitSize' =>
|
||||||
array('fields' => array('id', 'depth', 'width',
|
array('fields' => array('id', 'depth', 'width',
|
||||||
@@ -166,12 +168,13 @@ class MapsController extends AppController {
|
|||||||
'n-s' => $unit['MapsUnit']['transpose'] ? 0 : 1,
|
'n-s' => $unit['MapsUnit']['transpose'] ? 0 : 1,
|
||||||
'status' => (($unit['Unit']['status'] === 'OCCUPIED' &&
|
'status' => (($unit['Unit']['status'] === 'OCCUPIED' &&
|
||||||
!empty($unit[0]['delinquent']))
|
!empty($unit[0]['delinquent']))
|
||||||
? 'LATE' : $unit['Unit']['status'])
|
? 'LATE' : $unit['Unit']['status']),
|
||||||
|
'data' => $unit,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* pr($info); */
|
/* pr($info); */
|
||||||
/* $this->render('/empty'); */
|
/* $this->render('/empty'); exit(); */
|
||||||
return $info;
|
return $info;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -16,8 +16,20 @@
|
|||||||
$html->url(array('controller' => 'units',
|
$html->url(array('controller' => 'units',
|
||||||
'action' => 'view',
|
'action' => 'view',
|
||||||
$unit['id'])) .
|
$unit['id'])) .
|
||||||
'" alt="' .
|
'" alt="Unit #' .
|
||||||
$unit['name'] .
|
$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");
|
'">' . "\n");
|
||||||
}
|
}
|
||||||
}// for indentation purposes
|
}// for indentation purposes
|
||||||
|
|||||||
Reference in New Issue
Block a user