addElement('date', 'from', ['label' => 'Date From', 'required' => true, 'yearRange' => '1970:c']); $this->addElement('date', 'to', ['label' => 'Date To', 'yearRange' => '1970:c', 'required' => true]); $this->addElement('text', 'name', ['label' => 'Name', 'required' => true]); $this->addElement('text', 'address', ['label' => 'Address', 'required' => true]); $this->addElement('phone', 'phone', ['label' => 'Phone', 'required' => true]); $this->addElement('text', 'title', ['label' => 'Title', 'required' => true]); $this->addElement('textarea', 'leaveReason', ['label' => 'Reason for leaving', 'required' => true]); return $this; } }