| @@ 97-107 (lines=11) @@ | ||
| 94 | $sImgPath = $GLOBALS['babInstallPath'] . 'skins/ovidentia/images/Puces/'; |
|
| 95 | ||
| 96 | $sync = (int) absences_getVacationOption('organization_sync'); |
|
| 97 | if (!$sync) |
|
| 98 | { |
|
| 99 | ||
| 100 | $toolbar->addToolbarItem( |
|
| 101 | new BAB_ToolbarItem( |
|
| 102 | absences_translate('Add organization'), |
|
| 103 | $addon->getUrl().'organizations&idx=edit', |
|
| 104 | $sImgPath . 'edit_add.png', '', '', '') |
|
| 105 | ); |
|
| 106 | ||
| 107 | } |
|
| 108 | ||
| 109 | return $toolbar->printTemplate(); |
|
| 110 | } |
|
| @@ 2633-2638 (lines=6) @@ | ||
| 2630 | $sImgPath . 'edit_add.png', '', '', '') |
|
| 2631 | ); |
|
| 2632 | ||
| 2633 | if ($agent->canCreateWorkperiodRecoverRequest()) { |
|
| 2634 | $toolbar->addToolbarItem( |
|
| 2635 | new BAB_ToolbarItem(absences_translate("Recovery request"), $addon->getUrl().'vacuser&idx=workperiod', |
|
| 2636 | $sImgPath . 'edit_add.png', '', '', '') |
|
| 2637 | ); |
|
| 2638 | } |
|
| 2639 | ||
| 2640 | if ($agent->Cet()->canAdd()) { |
|
| 2641 | $toolbar->addToolbarItem( |
|
| @@ 2640-2645 (lines=6) @@ | ||
| 2637 | ); |
|
| 2638 | } |
|
| 2639 | ||
| 2640 | if ($agent->Cet()->canAdd()) { |
|
| 2641 | $toolbar->addToolbarItem( |
|
| 2642 | new BAB_ToolbarItem(absences_translate("Deposit on my time saving account"), $addon->getUrl().'vacuser&idx=cet', |
|
| 2643 | $sImgPath . 'edit_add.png', '', '', '') |
|
| 2644 | ); |
|
| 2645 | } |
|
| 2646 | ||
| 2647 | return $toolbar->printTemplate(); |
|
| 2648 | } |
|