* Refactor block ui of plan list.
This commit is contained in:
@@ -303,3 +303,4 @@ $config->block->modules['doc']->moreLinkList->projectdoc = 'doc|projectspac
|
||||
$config->block->size = array();
|
||||
$config->block->size['product']['list'] = array('2' => '6', '1' => '6');
|
||||
$config->block->size['product']['story'] = array('2' => '6', '1' => '6');
|
||||
$config->block->size['product']['plan'] = array('2' => '6', '1' => '6');
|
||||
|
||||
@@ -8,7 +8,7 @@ $config->block->plan->dtable->fieldList = array();
|
||||
$config->block->plan->dtable->fieldList['id'] = array('name' => 'id', 'title' => $lang->idAB, 'type' => 'id', 'sortType' => 1);
|
||||
$config->block->plan->dtable->fieldList['title'] = array('name' => 'title', 'title' => $lang->productplan->title, 'type' => 'title', 'sortType' => 1, 'flex' => 1);
|
||||
$config->block->plan->dtable->fieldList['product'] = array('name' => 'product', 'title' => $lang->productplan->product, 'type' => 'text', 'sortType' => 1, 'minWidth' => 100);
|
||||
$config->block->plan->dtable->fieldList['hour'] = array('name' => 'hour', 'title' => $lang->productplan->hour, 'type' => 'count', 'sortType' => 1);
|
||||
$config->block->plan->dtable->fieldList['hour'] = array('name' => 'hour', 'title' => $lang->productplan->hour, 'type' => 'text', 'sortType' => 1, 'align' => 'right');
|
||||
$config->block->plan->dtable->fieldList['bugs'] = array('name' => 'bugs', 'title' => $lang->productplan->bugs, 'type' => 'number', 'sortType' => 1);
|
||||
$config->block->plan->dtable->fieldList['begin'] = array('name' => 'begin', 'title' => $lang->productplan->begin, 'type' => 'date', 'sortType' => 1);
|
||||
$config->block->plan->dtable->fieldList['end'] = array('name' => 'end', 'title' => $lang->productplan->end, 'type' => 'date', 'sortType' => 1);
|
||||
|
||||
@@ -18,14 +18,20 @@ if(!$longBlock)
|
||||
unset($config->block->plan->dtable->fieldList['hour']);
|
||||
unset($config->block->plan->dtable->fieldList['bugs']);
|
||||
}
|
||||
|
||||
foreach($plans as $plan) $plan->product = zget($products, $plan->product);
|
||||
else
|
||||
{
|
||||
$config->block->plan->dtable->fieldList['product']['map'] = $products;
|
||||
foreach($plans as $plan) $plan->hour .= $config->hourUnit;
|
||||
}
|
||||
|
||||
panel
|
||||
(
|
||||
set('class', 'plan-block'),
|
||||
setClass('p-0 plan-block'),
|
||||
set::title($block->title),
|
||||
set::bodyClass('p-0 no-shadow border-t'),
|
||||
dtable
|
||||
(
|
||||
set::fixedLeftWidth($longBlock ? '0.33' : '0.5'),
|
||||
set::cols(array_values($config->block->plan->dtable->fieldList)),
|
||||
set::data(array_values($plans))
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user