Files
pmgr/site/views/elements/locks.ctp
Abijah e08afdd8b1 First pass at implementing a new lock tracking mechnism. Not complete, but the basics seem to work
git-svn-id: file:///svn-source/pmgr/branches/v0.3_work@1038 97e9348a-65ac-dc4b-aefc-98561f571b83
2014-03-03 03:25:29 +00:00

19 lines
742 B
PHP

<?php /* -*- mode:PHP -*- */
// Define the table columns
$cols = array();
$cols['Name'] = array('index' => 'name', 'formatter' => 'longname');
$cols['Quantity'] = array('index' => 'qty', 'formatter' => 'number');
$cols['Key'] = array('index' => 'key', 'formatter' => 'shortname');
$cols['Last Key'] = array('index' => 'last_key', 'formatter' => 'shortname');
$cols['Comment'] = array('index' => 'comment', 'formatter' => 'comment');
// Render the grid
$grid
->columns($cols)
->sortField('Name')
->defaultFields(array('Name'))
->searchFields(array('Name'))
->render($this, isset($config) ? $config : null,
array_diff(array_keys($cols), array('Comment')));