programs/utilit/workperiod_type.ui.php 1 location
|
@@ 102-121 (lines=20) @@
|
99 |
|
|
100 |
|
|
101 |
|
|
102 |
|
protected function addButtons() |
103 |
|
{ |
104 |
|
$W = bab_Widgets(); |
105 |
|
|
106 |
|
$button = $W->FlowItems( |
107 |
|
$W->SubmitButton()->setName('cancel')->setLabel(absences_translate('Cancel')), |
108 |
|
$W->SubmitButton()->setName('save')->setLabel(absences_translate('Save')) |
109 |
|
)->setSpacing(1,'em'); |
110 |
|
|
111 |
|
if (isset($this->type)) |
112 |
|
{ |
113 |
|
$button->addItem( |
114 |
|
$W->SubmitButton() |
115 |
|
->setConfirmationMessage(absences_translate('Do you really want to delete the type?')) |
116 |
|
->setName('delete')->setLabel(absences_translate('Delete')) |
117 |
|
); |
118 |
|
} |
119 |
|
|
120 |
|
$this->addItem($button); |
121 |
|
} |
122 |
|
} |
programs/utilit/right.ui.php 1 location
|
@@ 316-335 (lines=20) @@
|
313 |
|
} |
314 |
|
|
315 |
|
|
316 |
|
protected function addButtons() |
317 |
|
{ |
318 |
|
$W = bab_Widgets(); |
319 |
|
|
320 |
|
$button = $W->FlowItems( |
321 |
|
$W->SubmitButton()->setName('cancel')->setLabel(absences_translate('Cancel')), |
322 |
|
$W->SubmitButton()->setName('save')->setLabel(absences_translate('Save')) |
323 |
|
)->setSpacing(1,'em'); |
324 |
|
|
325 |
|
if (isset($this->right)) |
326 |
|
{ |
327 |
|
$button->addItem( |
328 |
|
$W->SubmitButton() |
329 |
|
->setConfirmationMessage(absences_translate('Do you really want to delete the vacation right?')) |
330 |
|
->setName('delete')->setLabel(absences_translate('Delete')) |
331 |
|
); |
332 |
|
} |
333 |
|
|
334 |
|
$this->addItem($button); |
335 |
|
} |
336 |
|
|
337 |
|
|
338 |
|
|