| @@ 326-335 (lines=10) @@ | ||
| 323 | ||
| 324 | ||
| 325 | ||
| 326 | protected function description() |
|
| 327 | { |
|
| 328 | $W = bab_Widgets(); |
|
| 329 | ||
| 330 | return $W->LabelledWidget( |
|
| 331 | absences_translate('Right name'), |
|
| 332 | $W->LineEdit()->setSize(60)->setMaxSize(255)->setMandatory(true, absences_translate('The name is mandatory')), |
|
| 333 | __FUNCTION__ |
|
| 334 | ); |
|
| 335 | } |
|
| 336 | ||
| 337 | ||
| 338 | protected function kind() |
|
| @@ 873-882 (lines=10) @@ | ||
| 870 | } |
|
| 871 | ||
| 872 | ||
| 873 | protected function quantity_inc_month() |
|
| 874 | { |
|
| 875 | $W = bab_Widgets(); |
|
| 876 | return $W->LabelledWidget( |
|
| 877 | absences_translate('Quantity to add each month'), |
|
| 878 | $W->LineEdit()->setSize(6)->setMaxSize(10)->setMandatory(true, absences_translate('The quantity per month is mandatory')), |
|
| 879 | __FUNCTION__, |
|
| 880 | absences_translate('The quantity will grow each month before the end date from "Availability depends on the requested period dates"') |
|
| 881 | ); |
|
| 882 | } |
|
| 883 | ||
| 884 | ||
| 885 | protected function quantity_inc_max() |
|
| @@ 885-894 (lines=10) @@ | ||
| 882 | } |
|
| 883 | ||
| 884 | ||
| 885 | protected function quantity_inc_max() |
|
| 886 | { |
|
| 887 | $W = bab_Widgets(); |
|
| 888 | return $W->LabelledWidget( |
|
| 889 | absences_translate('Maximum quantity'), |
|
| 890 | $W->LineEdit()->setSize(6)->setMaxSize(10), |
|
| 891 | __FUNCTION__, |
|
| 892 | absences_translate('The quantity will grow each month up to this limit') |
|
| 893 | ); |
|
| 894 | } |
|
| 895 | ||
| 896 | ||
| 897 | /** |
|
| @@ 921-931 (lines=11) @@ | ||
| 918 | /** |
|
| 919 | * CET max days saving per years |
|
| 920 | */ |
|
| 921 | protected function per_year() |
|
| 922 | { |
|
| 923 | $W = bab_Widgets(); |
|
| 924 | return $W->LabelledWidget( |
|
| 925 | absences_translate('Maximum savings per year'), |
|
| 926 | $W->LineEdit()->setSize(6)->setMaxSize(10), |
|
| 927 | __FUNCTION__, |
|
| 928 | null, |
|
| 929 | absences_translate('day(s)') |
|
| 930 | ); |
|
| 931 | } |
|
| 932 | ||
| 933 | ||
| 934 | /** |
|
| @@ 937-947 (lines=11) @@ | ||
| 934 | /** |
|
| 935 | * CET max days saving for CET period |
|
| 936 | */ |
|
| 937 | protected function per_cet() |
|
| 938 | { |
|
| 939 | $W = bab_Widgets(); |
|
| 940 | return $W->LabelledWidget( |
|
| 941 | absences_translate('Maximum savings for the account saving time period'), |
|
| 942 | $W->LineEdit()->setSize(6)->setMaxSize(10), |
|
| 943 | __FUNCTION__, |
|
| 944 | null, |
|
| 945 | absences_translate('day(s)') |
|
| 946 | ); |
|
| 947 | } |
|
| 948 | ||
| 949 | ||
| 950 | /** |
|
| @@ 953-963 (lines=11) @@ | ||
| 950 | /** |
|
| 951 | * CET ceiling |
|
| 952 | */ |
|
| 953 | protected function ceiling() |
|
| 954 | { |
|
| 955 | $W = bab_Widgets(); |
|
| 956 | return $W->LabelledWidget( |
|
| 957 | absences_translate('Maximum savings in the account saving time'), |
|
| 958 | $W->LineEdit()->setSize(6)->setMaxSize(10), |
|
| 959 | __FUNCTION__, |
|
| 960 | null, |
|
| 961 | absences_translate('day(s)') |
|
| 962 | ); |
|
| 963 | } |
|
| 964 | ||
| 965 | ||
| 966 | ||