| @@ 746-757 (lines=12) @@ | ||
| 743 | /** |
|
| 744 | * |
|
| 745 | */ |
|
| 746 | protected function cbalance() |
|
| 747 | { |
|
| 748 | $W = bab_Widgets(); |
|
| 749 | return $W->LabelledWidget( |
|
| 750 | absences_translate('Accept negative balance'), |
|
| 751 | $W->Select()->setOptions(array( |
|
| 752 | 'Y' => absences_translate('Yes'), |
|
| 753 | 'N' => absences_translate('No') |
|
| 754 | )), |
|
| 755 | __FUNCTION__ |
|
| 756 | ); |
|
| 757 | } |
|
| 758 | ||
| 759 | /** |
|
| 760 | * |
|
| @@ 762-773 (lines=12) @@ | ||
| 759 | /** |
|
| 760 | * |
|
| 761 | */ |
|
| 762 | protected function no_distribution() |
|
| 763 | { |
|
| 764 | $W = bab_Widgets(); |
|
| 765 | return $W->LabelledWidget( |
|
| 766 | absences_translate('Distribution on request'), |
|
| 767 | $W->Select()->setOptions(array( |
|
| 768 | '0' => absences_translate('Yes'), |
|
| 769 | '1' => absences_translate('No') |
|
| 770 | )), |
|
| 771 | __FUNCTION__ |
|
| 772 | ); |
|
| 773 | } |
|
| 774 | ||
| 775 | ||
| 776 | /** |
|
| @@ 816-827 (lines=12) @@ | ||
| 813 | } |
|
| 814 | ||
| 815 | ||
| 816 | protected function require_approval() |
|
| 817 | { |
|
| 818 | $W = bab_Widgets(); |
|
| 819 | return $W->LabelledWidget( |
|
| 820 | absences_translate('Require approval'), |
|
| 821 | $W->Select()->setOptions(array( |
|
| 822 | '1' => absences_translate('Yes'), |
|
| 823 | '0' => absences_translate('No') |
|
| 824 | )), |
|
| 825 | __FUNCTION__ |
|
| 826 | ); |
|
| 827 | } |
|
| 828 | ||
| 829 | ||
| 830 | /** |
|