2
0
forked from Wavyzz/dolibarr

NEW : add event tab on resource card

This commit is contained in:
florian HENRY
2018-10-03 21:13:02 +02:00
parent 402175bb49
commit d09bbe4690
3 changed files with 192 additions and 0 deletions

View File

@@ -77,6 +77,16 @@ function resource_prepare_head($object)
$head[$h][2] = 'documents';
$h++;
$head[$h][0] = DOL_URL_ROOT.'/resource/agenda.php?id='.$object->id;
$head[$h][1] = $langs->trans("Events");
if (! empty($conf->agenda->enabled) && (!empty($user->rights->agenda->myactions->read) || !empty($user->rights->agenda->allactions->read) ))
{
$head[$h][1].= '/';
$head[$h][1].= $langs->trans("Agenda");
}
$head[$h][2] = 'agenda';
$h++;
/*$head[$h][0] = DOL_URL_ROOT.'/resource/info.php?id='.$object->id;
$head[$h][1] = $langs->trans('Info');
$head[$h][2] = 'info';