* program: add emptyTip, createTip and createLink attributes to dtable.
This commit is contained in:
@@ -160,23 +160,26 @@ featureBar
|
||||
li(searchToggle(set::module('program'), set::open($status == 'bySearch')))
|
||||
);
|
||||
|
||||
$canCreateProject = hasPriv('project', 'create');
|
||||
$canCreateProgram = hasPriv('program', 'create');
|
||||
|
||||
toolbar
|
||||
(
|
||||
item(set
|
||||
$canCreateProject ? item(set
|
||||
([
|
||||
'text' => $lang->program->createProject,
|
||||
'icon' => 'plus',
|
||||
'class' => 'btn secondary',
|
||||
'url' => $this->createLink('project', 'createGuide'),
|
||||
'url' => createLink('project', 'createGuide'),
|
||||
'data-toggle' => 'modal',
|
||||
])),
|
||||
item(set
|
||||
])) : null,
|
||||
$canCreateProgram ? item(set
|
||||
([
|
||||
'text' => $lang->program->create,
|
||||
'icon' => 'plus',
|
||||
'class'=> 'btn primary create-program-btn',
|
||||
'url' => $this->createLink('program', 'create')
|
||||
])),
|
||||
'url' => createLink('program', 'create')
|
||||
])) : null,
|
||||
);
|
||||
|
||||
$canBatchEdit = common::hasPriv('project', 'batchEdit');
|
||||
@@ -209,7 +212,10 @@ dtable
|
||||
) : null,
|
||||
)
|
||||
)),
|
||||
set::checkInfo(jsRaw("function(checkedIDList){ return window.footerSummary(checkedIDList);}"))
|
||||
set::checkInfo(jsRaw("function(checkedIDList){ return window.footerSummary(checkedIDList);}")),
|
||||
set::emptyTip($lang->program->noProgram),
|
||||
set::createTip($lang->program->create),
|
||||
set::createLink($canCreateProgram ? createLink('program', 'create') : ''),
|
||||
);
|
||||
|
||||
render();
|
||||
|
||||
@@ -282,7 +282,10 @@ dtable
|
||||
) : null,
|
||||
)
|
||||
)),
|
||||
set::checkInfo(jsRaw("function(checkedIDList){ return window.footerSummary(checkedIDList);}"))
|
||||
set::checkInfo(jsRaw("function(checkedIDList){ return window.footerSummary(checkedIDList);}")),
|
||||
set::emptyTip($lang->product->noProduct),
|
||||
set::createTip($lang->product->create),
|
||||
set::createLink(hasPriv('product', 'create') ? createLink('product', 'create') : null),
|
||||
);
|
||||
|
||||
jsVar('pageSummary', sprintf($lang->product->lineSummary, $linesCount, count($productStats)));
|
||||
|
||||
Reference in New Issue
Block a user