1<!-- file card-view-actions-buttons.tpl.php -->
7 print
"Error, template page can't be called as URL";
10'@phan-var-force Context $context';
11'@phan-var-force AbstractCardController $this';
21$formCard = $this->formCard;
23$url =
$context->getControllerUrl(
$context->controller).
'&id=' . $formCard->object->id;
25if ($formCard->action !=
'presend' && $formCard->action !=
'editline') { ?>
26<div
id=
"actions_buttons"><?php
27 $parameters = array();
28 $reshook = $hookmanager->executeHooks(
'addMoreActionsButtons', $parameters,
$context);
30 $context->setEventMessages($hookmanager->error, $hookmanager->errors,
'errors');
31} elseif (empty($reshook)) {
33 if ($formCard->permissiontoadd) { ?>
34 <a href=
"<?php print $url . "&action=edit
" ?>" role=
"button"><?php print $langs->trans(
'Modify') ?></a>
$context
@method int call_trigger(string $triggerName, ?User $user)