Code Duplication    Length = 18-18 lines in 2 locations

programs/utilit/agentlist.ui.php 1 location

@@ 328-345 (lines=18) @@
325
class absences_AgentListFilterEditor extends Widget_Form
326
{
327
328
    public function __construct()
329
    {
330
        $W = bab_Widgets();
331
332
        parent::__construct(null, $W->FlowLayout()->setSpacing(1,'em', 3,'em'));
333
334
        $this->addClass('BabLoginMenuBackground');
335
        $this->addClass('absences-filterform');
336
        $this->setName('filter');
337
        $this->colon();
338
        $this->setReadOnly();
339
340
        $this->addFields();
341
        $this->loadFormValues();
342
343
        $this->addButtons();
344
        $this->setSelfPageHiddenFields();
345
    }
346
347
348

programs/utilit/archive.ui.php 1 location

@@ 40-57 (lines=18) @@
37
38
39
40
	public function __construct()
41
	{
42
		$W = bab_Widgets();
43
		parent::__construct(null, $W->VBoxLayout()->setVerticalSpacing(2,'em'));
44
45
		$this->setName('archive');
46
		$this->addClass('widget-bordered');
47
		$this->addClass('BabLoginMenuBackground');
48
		$this->addClass('widget-centered');
49
		$this->colon();
50
51
		$this->setCanvasOptions($this->Options()->width(50,'em'));
52
53
		$this->addFields();
54
		$this->addButtons();
55
		$this->setSelfPageHiddenFields();
56
57
	}
58
59
60
	abstract protected function addFields();