@@ 189-202 (lines=14) @@ | ||
186 | * quantity & quantity_unit |
|
187 | * @return Widget_FlowLayout |
|
188 | */ |
|
189 | protected function quantity() |
|
190 | { |
|
191 | $W = bab_Widgets(); |
|
192 | ||
193 | $lineedit = $W->LineEdit()->setSize(2)->setMaxSize(5)->setMandatory(true, absences_translate('The quantity is mandatory'))->setName('quantity'); |
|
194 | $select = $W->Select()->setName('quantity_unit') |
|
195 | ->addOption('D', absences_translate('Day(s)')) |
|
196 | ->addOption('H', absences_translate('Hour(s)')); |
|
197 | ||
198 | return $W->VBoxItems( |
|
199 | $W->Label(absences_translate('Quantity'))->setAssociatedWidget($lineedit)->addClass('widget-strong'), |
|
200 | $W->FlowItems($lineedit, $select) |
|
201 | )->setVerticalSpacing(.2,'em'); |
|
202 | } |
|
203 | ||
204 | ||
205 |
@@ 82-95 (lines=14) @@ | ||
79 | * quantity & quantity_unit |
|
80 | * @return Widget_FlowLayout |
|
81 | */ |
|
82 | protected function quantity() |
|
83 | { |
|
84 | $W = bab_Widgets(); |
|
85 | ||
86 | $lineedit = $W->LineEdit()->setSize(2)->setMaxSize(5)->setMandatory(true, absences_translate('The quantity is mandatory'))->setName('quantity'); |
|
87 | $select = $W->Select()->setName('quantity_unit') |
|
88 | ->addOption('D', absences_translate('Day(s)')) |
|
89 | ->addOption('H', absences_translate('Hour(s)')); |
|
90 | ||
91 | return $W->VBoxItems( |
|
92 | $W->Label(absences_translate('Quantity'))->setAssociatedWidget($lineedit), |
|
93 | $W->FlowItems($lineedit, $select) |
|
94 | )->setVerticalSpacing(.2,'em'); |
|
95 | } |
|
96 | ||
97 | ||
98 |