| @@ 733-744 (lines=12) @@ | ||
| 730 | /** |
|
| 731 | * |
|
| 732 | */ |
|
| 733 | protected function cbalance() |
|
| 734 | { |
|
| 735 | $W = bab_Widgets(); |
|
| 736 | return $W->LabelledWidget( |
|
| 737 | absences_translate('Accept negative balance'), |
|
| 738 | $W->Select()->setOptions(array( |
|
| 739 | 'Y' => absences_translate('Yes'), |
|
| 740 | 'N' => absences_translate('No') |
|
| 741 | )), |
|
| 742 | __FUNCTION__ |
|
| 743 | ); |
|
| 744 | } |
|
| 745 | ||
| 746 | /** |
|
| 747 | * |
|
| @@ 749-760 (lines=12) @@ | ||
| 746 | /** |
|
| 747 | * |
|
| 748 | */ |
|
| 749 | protected function no_distribution() |
|
| 750 | { |
|
| 751 | $W = bab_Widgets(); |
|
| 752 | return $W->LabelledWidget( |
|
| 753 | absences_translate('Distribution on request'), |
|
| 754 | $W->Select()->setOptions(array( |
|
| 755 | '0' => absences_translate('Yes'), |
|
| 756 | '1' => absences_translate('No') |
|
| 757 | )), |
|
| 758 | __FUNCTION__ |
|
| 759 | ); |
|
| 760 | } |
|
| 761 | ||
| 762 | ||
| 763 | /** |
|
| @@ 803-814 (lines=12) @@ | ||
| 800 | } |
|
| 801 | ||
| 802 | ||
| 803 | protected function require_approval() |
|
| 804 | { |
|
| 805 | $W = bab_Widgets(); |
|
| 806 | return $W->LabelledWidget( |
|
| 807 | absences_translate('Require approval'), |
|
| 808 | $W->Select()->setOptions(array( |
|
| 809 | '1' => absences_translate('Yes'), |
|
| 810 | '0' => absences_translate('No') |
|
| 811 | )), |
|
| 812 | __FUNCTION__ |
|
| 813 | ); |
|
| 814 | } |
|
| 815 | ||
| 816 | ||
| 817 | /** |
|