* Add more button for productList block.
This commit is contained in:
@@ -5,7 +5,7 @@ $app->loadLang('product');
|
||||
$config->block->product = new stdclass();
|
||||
$config->block->product->dtable = new stdclass();
|
||||
$config->block->product->dtable->fieldList = array();
|
||||
$config->block->product->dtable->fieldList['name'] = array('name' => 'name', 'title' => $lang->product->name, 'type' => 'title', 'sortType' => 1, 'flex' => 1);
|
||||
$config->block->product->dtable->fieldList['name'] = array('name' => 'name', 'title' => $lang->product->name, 'type' => 'title', 'sortType' => 1, 'flex' => 1, 'link' => array('module' => 'product', 'method' => 'browse', 'params' => 'productID={id}'));
|
||||
$config->block->product->dtable->fieldList['PO'] = array('name' => 'PO', 'title' => $lang->product->manager, 'type' => 'avatarBtn', 'sortType' => 1);
|
||||
if($config->edition != 'open') $config->block->product->dtable->fieldList['unclosedFeedback'] = array('name' => 'unclosedFeedback', 'title' => $lang->block->productlist->unclosedFeedback, 'type' => 'number', 'sortType' => 1);
|
||||
$config->block->product->dtable->fieldList['activeStories'] = array('name' => 'activeStories', 'title' => $lang->block->productlist->activatedStory, 'type' => 'number', 'sortType' => 1);
|
||||
|
||||
@@ -8,8 +8,7 @@ body {padding-bottom: 20px;}
|
||||
#dashboard .panel-body {max-height: 400px; overflow: auto;}
|
||||
#dashboard .panel-body.has-table {padding-top: 0;}
|
||||
#dashboard .panel-move-handler {position: absolute; top: 0; left: 0; right: 50px; height: 40px; z-index: 10; cursor: move;}
|
||||
#dashboard .panel-heading {cursor: move; padding-right: 75px;}
|
||||
#dashboard .panel-actions {position: absolute; top: 0; right: 0; margin-right: 0; padding: 7px 8px}
|
||||
#dashboard .panel-heading {cursor: move;}
|
||||
#dashboard .panel-actions > a {padding: 0 5px; line-height: 22px;}
|
||||
@media (min-width: 992px)
|
||||
{
|
||||
|
||||
@@ -33,9 +33,24 @@ panel
|
||||
setClass('p-0'),
|
||||
set::title($block->title),
|
||||
set::bodyClass('p-0 no-shadow'),
|
||||
to::headingActions
|
||||
(
|
||||
hasPriv('product', 'all') ? h::nav
|
||||
(
|
||||
setClass('toolbar'),
|
||||
btn
|
||||
(
|
||||
setClass('ghost toolbar-item size-sm z-10'),
|
||||
set::url(createLink('product', 'all', "browseType={$block->params->type}")),
|
||||
$lang->more,
|
||||
span(setClass('caret-right')),
|
||||
)
|
||||
) : '',
|
||||
),
|
||||
dtable
|
||||
(
|
||||
set::shadow(false),
|
||||
set::fixedLeftWidth('0.25'),
|
||||
set::cols(array_values($config->block->product->dtable->fieldList)),
|
||||
set::data(array_values($productStats))
|
||||
)
|
||||
|
||||
@@ -603,7 +603,7 @@ class blockZen extends block
|
||||
$productStats = $this->product->getStats(array_keys($products), 'order_desc', $this->viewType != 'json' ? $pager : '');
|
||||
$this->view->productStats = $productStats;
|
||||
|
||||
$this->view->users = $this->loadModel('user')->getPairs();
|
||||
$this->view->users = $this->loadModel('user')->getPairs('noletter');
|
||||
$this->view->avatarList = $this->user->getAvatarPairs();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user