mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-20 15:33:47 +01:00
Remove question view: add some LSview actions links
This commit is contained in:
parent
9848e3d30e
commit
6f612199a0
1 changed files with 18 additions and 0 deletions
|
@ -1128,6 +1128,24 @@ function handle_LSobject_remove($request) {
|
||||||
LStemplate :: assign('validation_url', "object/$LSobject/".urlencode($dn)."/remove?valid");
|
LStemplate :: assign('validation_url', "object/$LSobject/".urlencode($dn)."/remove?valid");
|
||||||
LStemplate :: assign('validation_label', _('Validate'));
|
LStemplate :: assign('validation_label', _('Validate'));
|
||||||
|
|
||||||
|
// List user available actions for this LSobject
|
||||||
|
$LSview_actions = array(
|
||||||
|
array(
|
||||||
|
'label' => _('View'),
|
||||||
|
'url' => "object/$LSobject/".urlencode($dn),
|
||||||
|
'action' => 'view'
|
||||||
|
),
|
||||||
|
);
|
||||||
|
|
||||||
|
if (LSsession :: canEdit($LSobject, $dn)) {
|
||||||
|
$LSview_actions[] = array(
|
||||||
|
'label' => _('Modify'),
|
||||||
|
'url' => "object/$LSobject/".urlencode($dn)."/modify",
|
||||||
|
'action' => 'modify'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
LStemplate :: assign('LSview_actions',$LSview_actions);
|
||||||
|
|
||||||
// Set & display template
|
// Set & display template
|
||||||
LSsession :: setTemplate('question.tpl');
|
LSsession :: setTemplate('question.tpl');
|
||||||
LSsession :: displayTemplate();
|
LSsession :: displayTemplate();
|
||||||
|
|
Loading…
Reference in a new issue