|
@@ 1197-1225 (lines=29) @@
|
| 1194 |
|
return $select; |
| 1195 |
|
} |
| 1196 |
|
|
| 1197 |
|
protected function by_earlier_date() |
| 1198 |
|
{ |
| 1199 |
|
$W = bab_Widgets(); |
| 1200 |
|
|
| 1201 |
|
return $W->VBoxItems( |
| 1202 |
|
$W->VBoxItems( |
| 1203 |
|
$W->FlowItems( |
| 1204 |
|
$W->Label(absences_translate('The right is granted if the field')), |
| 1205 |
|
$this->dirFieldsSelect()->setName('earlier'), |
| 1206 |
|
$W->Label(absences_translate('is set with a date in the user directory entry')) |
| 1207 |
|
)->setSpacing(.5,'em'), |
| 1208 |
|
$W->Label(absences_translate('and the day of the request is:')), |
| 1209 |
|
|
| 1210 |
|
$W->HBoxItems( |
| 1211 |
|
$W->Label(absences_translate('at least')), |
| 1212 |
|
$W->LineEdit()->setSize(3)->setMaxSize(10)->setName('earlier_begin_valid'), |
| 1213 |
|
$W->Label(absences_translate('year(s) after the date set in the directory entry')) |
| 1214 |
|
)->setHorizontalSpacing(.5,'em')->setVerticalAlign('middle'), |
| 1215 |
|
$W->HBoxItems( |
| 1216 |
|
$W->Label(absences_translate('and at more')), |
| 1217 |
|
$W->LineEdit()->setSize(3)->setMaxSize(10)->setName('earlier_end_valid'), |
| 1218 |
|
$W->Label(absences_translate('year(s) after the date set in the directory entry')) |
| 1219 |
|
)->setHorizontalSpacing(.5,'em')->setVerticalAlign('middle') |
| 1220 |
|
)->setSpacing(1,'em'), |
| 1221 |
|
|
| 1222 |
|
$W->Icon(absences_translate('Example: use a field with the user birthday, the criteria will be an age range'), Func_Icons::STATUS_DIALOG_QUESTION) |
| 1223 |
|
|
| 1224 |
|
)->setVerticalSpacing(1,'em')->addClass(Func_Icons::ICON_LEFT_24); |
| 1225 |
|
} |
| 1226 |
|
|
| 1227 |
|
protected function by_later_date() |
| 1228 |
|
{ |
|
@@ 1227-1255 (lines=29) @@
|
| 1224 |
|
)->setVerticalSpacing(1,'em')->addClass(Func_Icons::ICON_LEFT_24); |
| 1225 |
|
} |
| 1226 |
|
|
| 1227 |
|
protected function by_later_date() |
| 1228 |
|
{ |
| 1229 |
|
$W = bab_Widgets(); |
| 1230 |
|
|
| 1231 |
|
return $W->VBoxItems( |
| 1232 |
|
$W->VBoxItems( |
| 1233 |
|
$W->FlowItems( |
| 1234 |
|
$W->Label(absences_translate('The right is granted if the field')), |
| 1235 |
|
$this->dirFieldsSelect()->setName('later'), |
| 1236 |
|
$W->Label(absences_translate('is set with a date in the user directory entry')) |
| 1237 |
|
)->setSpacing(.5,'em'), |
| 1238 |
|
$W->Label(absences_translate('and the day of the request is:')), |
| 1239 |
|
|
| 1240 |
|
$W->HBoxItems( |
| 1241 |
|
$W->Label(absences_translate('at least')), |
| 1242 |
|
$W->LineEdit()->setSize(3)->setMaxSize(10)->setName('later_begin_valid'), |
| 1243 |
|
$W->Label(absences_translate('year(s) before the date set in the directory entry')) |
| 1244 |
|
)->setHorizontalSpacing(.5,'em')->setVerticalAlign('middle'), |
| 1245 |
|
$W->HBoxItems( |
| 1246 |
|
$W->Label(absences_translate('and at more')), |
| 1247 |
|
$W->LineEdit()->setSize(3)->setMaxSize(10)->setName('later_end_valid'), |
| 1248 |
|
$W->Label(absences_translate('year(s) before the date set in the directory entry')) |
| 1249 |
|
)->setHorizontalSpacing(.5,'em')->setVerticalAlign('middle') |
| 1250 |
|
)->setSpacing(1,'em'), |
| 1251 |
|
|
| 1252 |
|
$W->Icon(absences_translate('Example: use a field with the user retirment projected date, it will be possible to assign the right in the last years of the employee'), Func_Icons::STATUS_DIALOG_QUESTION) |
| 1253 |
|
|
| 1254 |
|
)->setVerticalSpacing(1,'em')->addClass(Func_Icons::ICON_LEFT_24); |
| 1255 |
|
} |
| 1256 |
|
|
| 1257 |
|
|
| 1258 |
|
|