Code Duplication    Length = 11-12 lines in 6 locations

programs/utilit/agent_right.ui.php 1 location

@@ 143-153 (lines=11) @@
140
	}
141
	
142
	
143
	protected function addButtons()
144
	{
145
		$W = bab_Widgets();
146
		
147
		$button = $W->FlowItems(
148
			$W->SubmitButton()->setName('cancel')->setLabel(absences_translate('Cancel')),
149
			$W->SubmitButton()->setName('save')->setLabel(absences_translate('Save'))
150
		)->setSpacing(1,'em');
151
		
152
		$this->addItem($button);
153
	}
154
	
155
	
156
	/**

programs/utilit/archive.ui.php 1 location

@@ 100-110 (lines=11) @@
97
98
99
100
	protected function addButtons()
101
	{
102
		$W = bab_Widgets();
103
104
		$button = $W->FlowItems(
105
				$W->SubmitButton()->setName('cancel')->setLabel(absences_translate('Cancel')),
106
				$W->SubmitButton()->setName('save')->setLabel(absences_translate('Save'))
107
		)->setSpacing(1,'em');
108
109
		$this->addItem($button);
110
	}
111
}
112
113

programs/utilit/cet_deposit_request.ui.php 2 locations

@@ 215-226 (lines=12) @@
212
	
213
	
214
	
215
	protected function addButtons()
216
	{
217
		$W = bab_Widgets();
218
	
219
		$button = $W->FlowItems(
220
				
221
				$W->SubmitButton()->setName('save')->setLabel(absences_translate('Save')),
222
				$W->SubmitButton()->setName('cancel')->setLabel(absences_translate('Cancel'))
223
		)->setSpacing(1,'em');
224
	
225
		$this->addItem($button);
226
	}
227
}
228
229
@@ 348-359 (lines=12) @@
345
	
346
	
347
	
348
	protected function addButtons()
349
	{
350
		$W = bab_Widgets();
351
	
352
		$button = $W->FlowItems(
353
				
354
				$W->SubmitButton()->setName('confirm')->setLabel(absences_translate('Confirm')),
355
				$W->SubmitButton()->setName('refuse')->setLabel(absences_translate('Refuse'))
356
		)->setSpacing(1,'em');
357
	
358
		$this->addItem($button);
359
	}
360
}

programs/utilit/workperiod_recover_request.ui.php 1 location

@@ 274-284 (lines=11) @@
271
272
	
273
	
274
	protected function addButtons()
275
	{
276
		$W = bab_Widgets();
277
	
278
		$button = $W->FlowItems(
279
				$W->SubmitButton()->setName('cancel')->setLabel(absences_translate('Cancel')),
280
				$W->SubmitButton()->setName('save')->setLabel(absences_translate('Save'))->validate()
281
		)->setSpacing(1,'em');
282
	
283
		$this->addItem($button);
284
	}
285
	
286
}
287

programs/utilit/right.ui.php 1 location

@@ 1355-1365 (lines=11) @@
1352
	}
1353
	
1354
1355
	protected function addButtons()
1356
	{
1357
		$W = bab_Widgets();
1358
	
1359
		$button = $W->FlowItems(
1360
				$W->SubmitButton()->setName('cancel')->setLabel(absences_translate('Cancel')),
1361
				$W->SubmitButton()->setName('save')->setLabel(absences_translate('Save'))
1362
		)->setSpacing(1,'em');
1363
	
1364
		$this->addItem($button);
1365
	}
1366
1367
}
1368