mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-19 00:29:21 +01:00
Object custom action question view: add some LSview actions links
This commit is contained in:
parent
6f612199a0
commit
6f3edba986
1 changed files with 18 additions and 0 deletions
|
@ -1254,6 +1254,24 @@ function handle_LSobject_customAction($request) {
|
||||||
LStemplate :: assign('validation_url', "object/$LSobject/".urlencode($dn)."/customAction/".urlencode($customAction)."?valid");
|
LStemplate :: assign('validation_url', "object/$LSobject/".urlencode($dn)."/customAction/".urlencode($customAction)."?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