Completed
Push — develop ( e649e8...88dc2a )
by
unknown
15:53 queued 08:30
created

WorkflowSettingsFieldset::getViewPartial()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * YAWIK
4
 *
5
 * @filesource
6
 * @license    MIT
7
 * @copyright  2013 - 2016 Cross Solution <http://cross-solution.de>
8
 */
9
10
/** */
11
namespace Organizations\Form;
12
13
use Core\Form\ViewPartialProviderInterface;
14
use Organizations\Entity\EmployeeInterface;
15
use Zend\Form\Fieldset;
16
use Organizations\Entity\EmployeePermissionsInterface as Perms;
17
18
/**
19
 * Workflow Settings.
20
 *
21
 * @author Carsten Bleek <[email protected]>
22
 * @since  0.25
23
 */
24
class WorkflowSettingsFieldset extends Fieldset implements ViewPartialProviderInterface
25
{
26
27
    protected $partial = 'organizations/form/workflow-fieldset';
28
29
    public function setViewPartial($partial)
30
    {
31
        $this->partial = (string) $partial;
32
33
        return $this;
34
    }
35
36
    public function getViewPartial()
37
    {
38
        return $this->partial;
39
    }
40
41
    public function init()
42
    {
43
44
        $this->setName('Workflow');
45
46
        $this->add(
47
            array(
48
                'type'    => 'checkbox',
49
                'name'    => 'acceptApplicationByDepartmentManager',
50
                'label'   => 'accept',
51
                'options' => [
52
                    'label' => /* @translate */ 'accept Applications by Department Managers',
53
                    'long_label' => /* @translate */ 'if checked, department managers are informed about new applications first.',
54
                    'description' => /* @translate */ 'Department managers are notified of incoming applications and must accept this. Only then the recruiter can start his work with the application'
55
                ],
56
            )
57
        );
58
59
        $this->add(
60
            array(
61
                'type'    => 'checkbox',
62
                'name'    => 'assignDepartmentManagersToJobs',
63
                'label'   => 'assign',
64
                'options' => [
65
                    'label' => /* @translate */ 'assign department managers to jobs',
66
                    'long_label' => /* @translate */ 'if checked, department managers have to be assigned to job postings.',
67
                    'description' => /* @translate */ 'if you have more them one department managers, you can assign them to a job posting. If nobody is assigned, all department managers will be informed about new applications',
68
                ],
69
            )
70
        );
71
72
    }
73
}
74