@@ 339-348 (lines=10) @@ | ||
336 | ||
337 | ||
338 | ||
339 | protected function description() |
|
340 | { |
|
341 | $W = bab_Widgets(); |
|
342 | ||
343 | return $W->LabelledWidget( |
|
344 | absences_translate('Right name'), |
|
345 | $W->LineEdit()->setSize(60)->setMaxSize(255)->setMandatory(true, absences_translate('The name is mandatory')), |
|
346 | __FUNCTION__ |
|
347 | ); |
|
348 | } |
|
349 | ||
350 | ||
351 | protected function kind() |
|
@@ 886-895 (lines=10) @@ | ||
883 | } |
|
884 | ||
885 | ||
886 | protected function quantity_inc_month() |
|
887 | { |
|
888 | $W = bab_Widgets(); |
|
889 | return $W->LabelledWidget( |
|
890 | absences_translate('Quantity to add each month'), |
|
891 | $W->LineEdit()->setSize(6)->setMaxSize(10)->setMandatory(true, absences_translate('The quantity per month is mandatory')), |
|
892 | __FUNCTION__, |
|
893 | absences_translate('The quantity will grow each month before the end date from "Availability depends on the requested period dates"') |
|
894 | ); |
|
895 | } |
|
896 | ||
897 | ||
898 | protected function quantity_inc_max() |
|
@@ 898-907 (lines=10) @@ | ||
895 | } |
|
896 | ||
897 | ||
898 | protected function quantity_inc_max() |
|
899 | { |
|
900 | $W = bab_Widgets(); |
|
901 | return $W->LabelledWidget( |
|
902 | absences_translate('Maximum quantity'), |
|
903 | $W->LineEdit()->setSize(6)->setMaxSize(10), |
|
904 | __FUNCTION__, |
|
905 | absences_translate('The quantity will grow each month up to this limit') |
|
906 | ); |
|
907 | } |
|
908 | ||
909 | ||
910 | /** |
|
@@ 934-944 (lines=11) @@ | ||
931 | /** |
|
932 | * CET max days saving per years |
|
933 | */ |
|
934 | protected function per_year() |
|
935 | { |
|
936 | $W = bab_Widgets(); |
|
937 | return $W->LabelledWidget( |
|
938 | absences_translate('Maximum savings per year'), |
|
939 | $W->LineEdit()->setSize(6)->setMaxSize(10), |
|
940 | __FUNCTION__, |
|
941 | null, |
|
942 | absences_translate('day(s)') |
|
943 | ); |
|
944 | } |
|
945 | ||
946 | ||
947 | /** |
|
@@ 950-960 (lines=11) @@ | ||
947 | /** |
|
948 | * CET max days saving for CET period |
|
949 | */ |
|
950 | protected function per_cet() |
|
951 | { |
|
952 | $W = bab_Widgets(); |
|
953 | return $W->LabelledWidget( |
|
954 | absences_translate('Maximum savings for the account saving time period'), |
|
955 | $W->LineEdit()->setSize(6)->setMaxSize(10), |
|
956 | __FUNCTION__, |
|
957 | null, |
|
958 | absences_translate('day(s)') |
|
959 | ); |
|
960 | } |
|
961 | ||
962 | ||
963 | /** |
|
@@ 966-976 (lines=11) @@ | ||
963 | /** |
|
964 | * CET ceiling |
|
965 | */ |
|
966 | protected function ceiling() |
|
967 | { |
|
968 | $W = bab_Widgets(); |
|
969 | return $W->LabelledWidget( |
|
970 | absences_translate('Maximum savings in the account saving time'), |
|
971 | $W->LineEdit()->setSize(6)->setMaxSize(10), |
|
972 | __FUNCTION__, |
|
973 | null, |
|
974 | absences_translate('day(s)') |
|
975 | ); |
|
976 | } |
|
977 | ||
978 | ||
979 |