diff --git a/site/views/elements/unit_sizes.ctp b/site/views/elements/unit_sizes.ctp index a49f5de..4c96f98 100644 --- a/site/views/elements/unit_sizes.ctp +++ b/site/views/elements/unit_sizes.ctp @@ -16,11 +16,10 @@ $cols['Unavailable'] = array('index' => 'unavailable', 'formatter' => 'nu $cols['Occupied'] = array('index' => 'occupied', 'formatter' => 'number'); $cols['Available'] = array('index' => 'available', 'formatter' => 'number'); $cols['Total'] = array('index' => 'units', 'formatter' => 'number'); -$cols['Occupancy'] = array('index' => 'occupancy', 'formatter' => 'percentage', 'formatoptions' => array('precision' => 3)); -$cols['Vacancy'] = array('index' => 'vacancy', 'formatter' => 'percentage'); +$cols['Occupancy'] = array('index' => 'occupancy', 'formatter' => 'percentage', 'formatoptions' => array('precision' => 0)); +$cols['Vacancy'] = array('index' => 'vacancy', 'formatter' => 'percentage', 'formatoptions' => array('precision' => 0)); $cols['Comment'] = array('index' => 'Unit.comment', 'formatter' => 'comment'); - // Render the grid $grid ->columns($cols) @@ -28,4 +27,7 @@ $grid ->defaultFields(array('Size', 'Area')) ->searchFields(array('Size', 'Width', 'Depth', 'Area', 'Deposit', 'Rent')) ->render($this, isset($config) ? $config : null, - array_diff(array_keys($cols), array('Height', 'Volume', 'A. Cost', 'V. Cost', 'Comment'))); + array_diff(array_keys($cols), array('Height', 'Volume', + 'A. Cost', 'V. Cost', + 'Occupied', 'Total', 'Occupancy', 'Vacancy', + 'Comment')));