@@ -192,9 +192,9 @@ |
||
192 | 192 | return (float) $i; |
193 | 193 | }, $locData['coordinates']); |
194 | 194 | $location->setCountry($locData['country']) |
195 | - ->setRegion($locData['region']) |
|
196 | - ->setCity($locData['city']) |
|
197 | - ->setCoordinates(new Point($coords)); |
|
195 | + ->setRegion($locData['region']) |
|
196 | + ->setCity($locData['city']) |
|
197 | + ->setCoordinates(new Point($coords)); |
|
198 | 198 | |
199 | 199 | $jobLocations->add($location); |
200 | 200 | } |
@@ -44,8 +44,8 @@ |
||
44 | 44 | $fileId = new \MongoId($file->getId()); |
45 | 45 | $dm = $eventArgs->getDocumentManager(); |
46 | 46 | $dm->createQueryBuilder('Cv\Entity\Cv') |
47 | - ->update()->multiple(true) |
|
48 | - ->field('attachments')->equals($fileId)->pull($fileId) |
|
49 | - ->getQuery()->execute(); |
|
47 | + ->update()->multiple(true) |
|
48 | + ->field('attachments')->equals($fileId)->pull($fileId) |
|
49 | + ->getQuery()->execute(); |
|
50 | 50 | } |
51 | 51 | } |
@@ -33,44 +33,44 @@ |
||
33 | 33 | protected function addElements() |
34 | 34 | { |
35 | 35 | $this->add( |
36 | - [ |
|
37 | - 'name' => 'l', |
|
38 | - 'type' => 'LocationSelect', |
|
39 | - 'options' => [ |
|
40 | - 'label' => /*@translate*/ 'Location', |
|
41 | - 'span' => 3, |
|
42 | - 'location_entity' => Location::class, |
|
43 | - ], |
|
44 | - 'attributes' => [ |
|
45 | - 'data-width' => '100%', |
|
46 | - ], |
|
47 | - ] |
|
36 | + [ |
|
37 | + 'name' => 'l', |
|
38 | + 'type' => 'LocationSelect', |
|
39 | + 'options' => [ |
|
40 | + 'label' => /*@translate*/ 'Location', |
|
41 | + 'span' => 3, |
|
42 | + 'location_entity' => Location::class, |
|
43 | + ], |
|
44 | + 'attributes' => [ |
|
45 | + 'data-width' => '100%', |
|
46 | + ], |
|
47 | + ] |
|
48 | 48 | ); |
49 | 49 | |
50 | 50 | $this->add( |
51 | - [ |
|
52 | - 'name' => 'd', |
|
53 | - 'type' => 'Core\Form\Element\Select', //Zend\Form\Element\Select |
|
54 | - 'options' => [ |
|
55 | - 'label' => /*@translate*/ 'Distance', |
|
56 | - 'value_options' => [ |
|
57 | - '5' => '5 km', |
|
58 | - '10' => '10 km', |
|
59 | - '20' => '20 km', |
|
60 | - '50' => '50 km', |
|
61 | - '100' => '100 km' |
|
62 | - ], |
|
63 | - 'span' => 4, |
|
51 | + [ |
|
52 | + 'name' => 'd', |
|
53 | + 'type' => 'Core\Form\Element\Select', //Zend\Form\Element\Select |
|
54 | + 'options' => [ |
|
55 | + 'label' => /*@translate*/ 'Distance', |
|
56 | + 'value_options' => [ |
|
57 | + '5' => '5 km', |
|
58 | + '10' => '10 km', |
|
59 | + '20' => '20 km', |
|
60 | + '50' => '50 km', |
|
61 | + '100' => '100 km' |
|
62 | + ], |
|
63 | + 'span' => 4, |
|
64 | 64 | |
65 | - ], |
|
66 | - 'attributes' => [ |
|
67 | - 'value' => '10', // default distance |
|
68 | - 'data-searchbox' => -1, // hide the search box |
|
69 | - 'data-allowclear' => 'false', // allow to clear a selected value |
|
70 | - 'data-placeholder' => /*@translate*/ 'Distance', |
|
71 | - 'data-width' => '100%', |
|
72 | - ] |
|
73 | - ] |
|
65 | + ], |
|
66 | + 'attributes' => [ |
|
67 | + 'value' => '10', // default distance |
|
68 | + 'data-searchbox' => -1, // hide the search box |
|
69 | + 'data-allowclear' => 'false', // allow to clear a selected value |
|
70 | + 'data-placeholder' => /*@translate*/ 'Distance', |
|
71 | + 'data-width' => '100%', |
|
72 | + ] |
|
73 | + ] |
|
74 | 74 | ); |
75 | 75 | } |
76 | 76 | } |
@@ -124,9 +124,9 @@ |
||
124 | 124 | public function init() |
125 | 125 | { |
126 | 126 | $this->setName('nativeLanguages') |
127 | - ->setHydrator(new EntityHydrator()) |
|
128 | - ->setObject(new NativeLanguageEntity()) |
|
129 | - ->setLabel('Native Language'); |
|
127 | + ->setHydrator(new EntityHydrator()) |
|
128 | + ->setObject(new NativeLanguageEntity()) |
|
129 | + ->setLabel('Native Language'); |
|
130 | 130 | |
131 | 131 | |
132 | 132 | $this->add( |
@@ -11,9 +11,9 @@ |
||
11 | 11 | public function init() |
12 | 12 | { |
13 | 13 | $this->setName('language') |
14 | - ->setHydrator(new EntityHydrator()) |
|
15 | - ->setObject(new LanguageEntity()) |
|
16 | - ->setLabel('Language'); |
|
14 | + ->setHydrator(new EntityHydrator()) |
|
15 | + ->setObject(new LanguageEntity()) |
|
16 | + ->setLabel('Language'); |
|
17 | 17 | |
18 | 18 | $this->add( |
19 | 19 | array( |
@@ -24,8 +24,8 @@ |
||
24 | 24 | public function init() |
25 | 25 | { |
26 | 26 | $this->setName('education') |
27 | - ->setHydrator(new EntityHydrator()) |
|
28 | - ->setObject(new EducationEntity()); |
|
27 | + ->setHydrator(new EntityHydrator()) |
|
28 | + ->setObject(new EducationEntity()); |
|
29 | 29 | |
30 | 30 | $this->add( |
31 | 31 | array( |
@@ -128,7 +128,7 @@ |
||
128 | 128 | ); |
129 | 129 | |
130 | 130 | $this->setName('preferredJob') |
131 | - ->setHydrator(new EntityHydrator()) |
|
132 | - ->setObject(new PreferredJob()); |
|
131 | + ->setHydrator(new EntityHydrator()) |
|
132 | + ->setObject(new PreferredJob()); |
|
133 | 133 | } |
134 | 134 | } |
@@ -24,8 +24,8 @@ |
||
24 | 24 | public function init() |
25 | 25 | { |
26 | 26 | $this->setName('employment') |
27 | - ->setHydrator(new EntityHydrator()) |
|
28 | - ->setObject(new EmploymentEntity()); |
|
27 | + ->setHydrator(new EntityHydrator()) |
|
28 | + ->setObject(new EmploymentEntity()); |
|
29 | 29 | |
30 | 30 | $this->add( |
31 | 31 | array( |
@@ -74,14 +74,14 @@ |
||
74 | 74 | $count = $options->getAttachmentsCount(); |
75 | 75 | |
76 | 76 | $form->setIsDisableCapable(false) |
77 | - ->setIsDisableElementsCapable(false) |
|
78 | - ->setIsDescriptionsEnabled(true) |
|
79 | - ->setDescription( |
|
77 | + ->setIsDisableElementsCapable(false) |
|
78 | + ->setIsDescriptionsEnabled(true) |
|
79 | + ->setDescription( |
|
80 | 80 | /*@translate*/ 'Attach images or PDF Documents to your CV. Drag&drop them, or click into the attachement area. You can upload up to %sMB', |
81 | - [round($size/(1024*1024))>0? round($size/(1024*1024)):round($size/(1024*1024), 1)] |
|
82 | - ) |
|
83 | - ->setParam('return', 'file-uri') |
|
84 | - ->setLabel(/*@translate*/ 'Attachments'); |
|
81 | + [round($size/(1024*1024))>0? round($size/(1024*1024)):round($size/(1024*1024), 1)] |
|
82 | + ) |
|
83 | + ->setParam('return', 'file-uri') |
|
84 | + ->setLabel(/*@translate*/ 'Attachments'); |
|
85 | 85 | |
86 | 86 | /* @var $file \Core\Form\Element\FileUpload */ |
87 | 87 | $file = $form->get($this->fileName); |