Added lock/unlock links directly on the unit page. Also, found the grid view links seem to be needed even when not already navigating a grid. Without them, the user must go first through the top level navigation link, then to the specific grid subset. It's a bit painful, and so I decided to add them back in. To facilitate this, instead of repeatedly changing each controller whenever we change our minds, I added a new virtual function to that app. I'll change the remaining controllers on the next checkin.
git-svn-id: file:///svn-source/pmgr/branches/pre_0.1_work_20090819@776 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -87,6 +87,23 @@ class Unit extends AppModel {
|
||||
return $this->prReturn(true);
|
||||
}
|
||||
|
||||
function locked($enum) {
|
||||
return $this->statusCheck($enum, 'LOCKED', false, null, false);
|
||||
}
|
||||
|
||||
function conditionLocked() {
|
||||
//return array('Unit.status' => 'LOCKED');
|
||||
return ('Unit.status >= ' . $this->statusValue('LOCKED'));
|
||||
}
|
||||
|
||||
function liened($enum) {
|
||||
return $this->statusCheck($enum, 'LIENED', false, null, false);
|
||||
}
|
||||
|
||||
function conditionLiened() {
|
||||
return ('Unit.status >= ' . $this->statusValue('LIENED'));
|
||||
}
|
||||
|
||||
function occupied($enum) {
|
||||
return $this->statusCheck($enum, 'OCCUPIED', false, null, false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user