|
1
|
|
|
<?php |
|
2
|
|
|
/** |
|
3
|
|
|
* YAWIK |
|
4
|
|
|
* |
|
5
|
|
|
* @filesource |
|
6
|
|
|
* @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
7
|
|
|
* @license MIT |
|
8
|
|
|
*/ |
|
9
|
|
|
|
|
10
|
|
|
namespace Cv\Form; |
|
11
|
|
|
|
|
12
|
|
|
use Core\Form\Container; |
|
13
|
|
|
use Core\Form\ViewPartialProviderInterface; |
|
14
|
|
|
use Core\Form\ViewPartialProviderTrait; |
|
15
|
|
|
|
|
16
|
|
|
/** |
|
17
|
|
|
* CV form container |
|
18
|
|
|
*/ |
|
19
|
|
|
class CvContainer extends Container implements ViewPartialProviderInterface |
|
20
|
|
|
{ |
|
21
|
|
|
use ViewPartialProviderTrait; |
|
22
|
|
|
|
|
23
|
|
|
/** |
|
24
|
|
|
* @var string |
|
25
|
|
|
*/ |
|
26
|
|
|
protected $defaultPartial = 'cv/form/cv-container'; |
|
27
|
|
|
|
|
28
|
|
|
public function init() |
|
29
|
|
|
{ |
|
30
|
|
|
$this->setName('cv-form'); |
|
31
|
|
|
|
|
32
|
|
|
$this->setForms(array( |
|
33
|
|
|
'contact' => array( |
|
34
|
|
|
'type' => 'Auth/UserInfo', |
|
35
|
|
|
'property' => 'contact' |
|
36
|
|
|
), |
|
37
|
|
|
'image' => array( |
|
38
|
|
|
'type' => 'CvContactImage', |
|
39
|
|
|
'property' => 'contact', |
|
40
|
|
|
'use_files_array' => true |
|
41
|
|
|
), |
|
42
|
|
|
'preferredJob' => array( |
|
43
|
|
|
'type' => 'Cv/PreferredJobForm', |
|
44
|
|
|
'property' => 'preferredJob', |
|
45
|
|
|
'options' => array( |
|
46
|
|
|
'is_disable_capable' => true, |
|
47
|
|
|
'is_disable_elements_capable' => true, |
|
48
|
|
|
'enable_descriptions' => true, |
|
49
|
|
|
'description' => /*@translate*/ 'Where do you want to work tomorrow. This heading gives an immediate overview of your desired next job.', |
|
50
|
|
|
), |
|
51
|
|
|
|
|
52
|
|
|
), |
|
53
|
|
|
'employments' => array( |
|
54
|
|
|
'type' => 'CvEmploymentCollection', |
|
55
|
|
|
'property' => 'employmentsIndexedById' |
|
56
|
|
|
), |
|
57
|
|
|
'educations' => array( |
|
58
|
|
|
'type' => 'CvEducationCollection', |
|
59
|
|
|
'property' => 'educationsIndexedById' |
|
60
|
|
|
), |
|
61
|
|
|
'nativeLanguage' => [ |
|
62
|
|
|
'type' => 'Cv/NativeLanguageForm', |
|
63
|
|
|
'property' => true, |
|
64
|
|
|
'options' => array( |
|
65
|
|
|
'enable_descriptions' => true, |
|
66
|
|
|
'description' => /*@translate*/ 'Select from list or enter your mother tongue.', |
|
67
|
|
|
), |
|
68
|
|
|
], |
|
69
|
|
|
'languageSkills' => [ |
|
70
|
|
|
'type' => 'Cv/LanguageSkillCollection', |
|
71
|
|
|
'property' => 'languageSkillsIndexedById', |
|
72
|
|
|
], |
|
73
|
|
|
'skills' => array( |
|
74
|
|
|
'type' => 'CvSkillCollection', |
|
75
|
|
|
'property' => 'skillsIndexedById' |
|
76
|
|
|
) |
|
77
|
|
|
)); |
|
78
|
|
|
} |
|
79
|
|
|
} |
|
80
|
|
|
|