@@ -35,50 +35,50 @@ |
||
35 | 35 | protected function addElements() |
36 | 36 | { |
37 | 37 | $this->add( |
38 | - [ |
|
39 | - 'type' => JobSelect::class, |
|
40 | - 'name' => 'job', |
|
41 | - 'options' => [ |
|
42 | - 'label' => /* @translate */ 'Enter job title', |
|
43 | - //'empty_option' => 'Enter job title', |
|
44 | - ], |
|
45 | - 'attributes' => [ |
|
46 | - 'id' => 'job-filter', |
|
47 | - 'class' => 'form-control', |
|
48 | - 'data-placeholder' => 'Enter job title', |
|
49 | - 'data-autoinit' => 'false', |
|
50 | - 'data-submit-on-change' => 'true', |
|
51 | - ] |
|
52 | - ] |
|
38 | + [ |
|
39 | + 'type' => JobSelect::class, |
|
40 | + 'name' => 'job', |
|
41 | + 'options' => [ |
|
42 | + 'label' => /* @translate */ 'Enter job title', |
|
43 | + //'empty_option' => 'Enter job title', |
|
44 | + ], |
|
45 | + 'attributes' => [ |
|
46 | + 'id' => 'job-filter', |
|
47 | + 'class' => 'form-control', |
|
48 | + 'data-placeholder' => 'Enter job title', |
|
49 | + 'data-autoinit' => 'false', |
|
50 | + 'data-submit-on-change' => 'true', |
|
51 | + ] |
|
52 | + ] |
|
53 | 53 | ); |
54 | 54 | |
55 | 55 | $this->add( |
56 | - [ |
|
57 | - 'type' => 'Applications\Form\Element\StatusSelect', |
|
58 | - 'name' => 'status', |
|
59 | - 'options' => [ |
|
60 | - 'label' => /* @translate */ 'Status', |
|
61 | - ], |
|
62 | - 'attributes' => [ |
|
63 | - 'data-width' => '100%', |
|
64 | - 'data-submit-on-change' => 'true', |
|
65 | - 'data-placeholder' => /*@translate*/ 'all', |
|
66 | - ] |
|
67 | - ] |
|
56 | + [ |
|
57 | + 'type' => 'Applications\Form\Element\StatusSelect', |
|
58 | + 'name' => 'status', |
|
59 | + 'options' => [ |
|
60 | + 'label' => /* @translate */ 'Status', |
|
61 | + ], |
|
62 | + 'attributes' => [ |
|
63 | + 'data-width' => '100%', |
|
64 | + 'data-submit-on-change' => 'true', |
|
65 | + 'data-placeholder' => /*@translate*/ 'all', |
|
66 | + ] |
|
67 | + ] |
|
68 | 68 | ); |
69 | 69 | |
70 | 70 | $this->add( |
71 | - ['type' => 'ToggleButton', |
|
72 | - 'name' => 'unread', |
|
73 | - 'options' => [ |
|
74 | - 'checked_value' => '1', |
|
75 | - 'unchecked_value' => '0', |
|
76 | - 'label' => 'unread', |
|
77 | - ], |
|
78 | - 'attributes' => [ |
|
79 | - 'data-submit-on-change' => 'true', |
|
80 | - ] |
|
81 | - ] |
|
71 | + ['type' => 'ToggleButton', |
|
72 | + 'name' => 'unread', |
|
73 | + 'options' => [ |
|
74 | + 'checked_value' => '1', |
|
75 | + 'unchecked_value' => '0', |
|
76 | + 'label' => 'unread', |
|
77 | + ], |
|
78 | + 'attributes' => [ |
|
79 | + 'data-submit-on-change' => 'true', |
|
80 | + ] |
|
81 | + ] |
|
82 | 82 | ); |
83 | 83 | |
84 | 84 | $this->setButtonElement('unread'); |
@@ -34,7 +34,7 @@ |
||
34 | 34 | public function init() |
35 | 35 | { |
36 | 36 | $this->setHydrator(new \Core\Entity\Hydrator\EntityHydrator()) |
37 | - ->setName('base'); |
|
37 | + ->setName('base'); |
|
38 | 38 | |
39 | 39 | $this->add( |
40 | 40 | array( |
@@ -24,7 +24,7 @@ |
||
24 | 24 | * |
25 | 25 | * @var string |
26 | 26 | */ |
27 | - protected $label = /*@translate*/ 'Cover Letter'; |
|
27 | + protected $label = /*@translate*/ 'Cover Letter'; |
|
28 | 28 | |
29 | 29 | /** |
30 | 30 | * {@inheritDoc} |
@@ -25,8 +25,8 @@ discard block |
||
25 | 25 | public function init() |
26 | 26 | { |
27 | 27 | $this->setIsDisableCapable(false) |
28 | - ->setIsDisableElementsCapable(false) |
|
29 | - ->setAttribute('data-submit-on', 'checkbox'); |
|
28 | + ->setIsDisableElementsCapable(false) |
|
29 | + ->setAttribute('data-submit-on', 'checkbox'); |
|
30 | 30 | |
31 | 31 | $this->add( |
32 | 32 | array( |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | 'route' => 'lang/content', |
55 | 55 | 'params' => array( |
56 | 56 | 'view' => 'applications-privacy-policy' |
57 | - ) |
|
57 | + ) |
|
58 | 58 | ), |
59 | 59 | 'attributes' => array( |
60 | 60 | 'data-validate' => 'acceptedPrivacyPolicy', |
@@ -35,10 +35,10 @@ |
||
35 | 35 | 'applications list' => 'list view scripts.', |
36 | 36 | 'applications reset-files-permissions [--filter=]' => 'Resets (means: Set again) the permissions of attachments and contact images', |
37 | 37 | array('--filter=JSON', "available keys:\n" |
38 | - . "- before ISODate only applications before the given date\n" |
|
39 | - . "- after ISODate only applications after the given date\n" |
|
40 | - . "- id String Mongo ID of the application\n" |
|
41 | - . "- isDraft Boolean "), |
|
38 | + . "- before ISODate only applications before the given date\n" |
|
39 | + . "- after ISODate only applications after the given date\n" |
|
40 | + . "- id String Mongo ID of the application\n" |
|
41 | + . "- isDraft Boolean "), |
|
42 | 42 | ); |
43 | 43 | } |
44 | 44 |
@@ -49,6 +49,6 @@ |
||
49 | 49 | */ |
50 | 50 | public function getConfig() |
51 | 51 | { |
52 | - return ModuleConfigLoader::load(__DIR__ . '/../config'); |
|
52 | + return ModuleConfigLoader::load(__DIR__.'/../config'); |
|
53 | 53 | } |
54 | 54 | } |
@@ -63,7 +63,7 @@ |
||
63 | 63 | foreach ($this->repository->getUserApplications($user->getId(), $limit) as $application) /* @var $application \Applications\Entity\Application */ |
64 | 64 | { |
65 | 65 | $title = $application->getJob()->getTitle(); |
66 | - $title .= ' ('. $view->dateFormat($application->getDateCreated()) . ')'; |
|
66 | + $title .= ' ('.$view->dateFormat($application->getDateCreated()).')'; |
|
67 | 67 | $url = $view->url('lang/applications/detail', ['id' => $application->getId()]); |
68 | 68 | $items[] = new ListItem($title, $url); |
69 | 69 | } |
@@ -60,9 +60,11 @@ |
||
60 | 60 | { |
61 | 61 | $items = []; |
62 | 62 | |
63 | - foreach ($this->repository->getUserApplications($user->getId(), $limit) as $application) /* @var $application \Applications\Entity\Application */ |
|
63 | + foreach ($this->repository->getUserApplications($user->getId(), $limit) as $application) { |
|
64 | + /* @var $application \Applications\Entity\Application */ |
|
64 | 65 | { |
65 | 66 | $title = $application->getJob()->getTitle(); |
67 | + } |
|
66 | 68 | $title .= ' ('. $view->dateFormat($application->getDateCreated()) . ')'; |
67 | 69 | $url = $view->url('lang/applications/detail', ['id' => $application->getId()]); |
68 | 70 | $items[] = new ListItem($title, $url); |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | if ($entity instanceof Job) { |
36 | 36 | $entities = $event->getRepository('Applications')->findBy(['isDraft' => null, 'job' => new \MongoId($entity->getId())]); |
37 | 37 | |
38 | - return ['Applications', $entities, 'These applications references the job and will also be removed:' ]; |
|
38 | + return ['Applications', $entities, 'These applications references the job and will also be removed:']; |
|
39 | 39 | } |
40 | 40 | } |
41 | 41 | |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | foreach ($entities as $ent) { |
50 | 50 | $repository->remove($ent); |
51 | 51 | } |
52 | - return ['Applications', $entities, 'were removed.' ]; |
|
52 | + return ['Applications', $entities, 'were removed.']; |
|
53 | 53 | } |
54 | 54 | } |
55 | 55 | } |
@@ -28,17 +28,17 @@ |
||
28 | 28 | /** |
29 | 29 | * Event is fired when a new application is saved. |
30 | 30 | */ |
31 | - const EVENT_APPLICATION_POST_CREATE = 'application.post.create'; |
|
31 | + const EVENT_APPLICATION_POST_CREATE = 'application.post.create'; |
|
32 | 32 | |
33 | 33 | /** |
34 | 34 | * Event is fired when a users deleted application |
35 | 35 | */ |
36 | - const EVENT_APPLICATION_PRE_DELETE = 'application.pre.delete'; |
|
36 | + const EVENT_APPLICATION_PRE_DELETE = 'application.pre.delete'; |
|
37 | 37 | |
38 | 38 | /** |
39 | 39 | * Event is fired when the status of an application is changed |
40 | 40 | */ |
41 | - const EVENT_APPLICATION_STATUS_CHANGE = 'application.status.change'; |
|
41 | + const EVENT_APPLICATION_STATUS_CHANGE = 'application.status.change'; |
|
42 | 42 | |
43 | 43 | /** |
44 | 44 | * @var Application $application |
@@ -73,14 +73,14 @@ |
||
73 | 73 | $count = $options->getAttachmentsCount(); |
74 | 74 | |
75 | 75 | $form->setIsDisableCapable(false) |
76 | - ->setIsDisableElementsCapable(false) |
|
77 | - ->setIsDescriptionsEnabled(true) |
|
78 | - ->setDescription( |
|
76 | + ->setIsDisableElementsCapable(false) |
|
77 | + ->setIsDescriptionsEnabled(true) |
|
78 | + ->setDescription( |
|
79 | 79 | /*@translate*/ 'Attach images or PDF Documents to your application. Drag&drop them, or click into the attachement area. You can upload up to %sMB', |
80 | - [round($size/(1024*1024))>0? round($size/(1024*1024)):round($size/(1024*1024), 1)] |
|
81 | - ) |
|
82 | - ->setParam('return', 'file-uri') |
|
83 | - ->setLabel(/*@translate*/ 'Attachments'); |
|
80 | + [round($size/(1024*1024))>0? round($size/(1024*1024)):round($size/(1024*1024), 1)] |
|
81 | + ) |
|
82 | + ->setParam('return', 'file-uri') |
|
83 | + ->setLabel(/*@translate*/ 'Attachments'); |
|
84 | 84 | |
85 | 85 | /** @var $file FileUpload*/ |
86 | 86 | $file = $form->get($this->fileName); |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | * |
57 | 57 | * @var string |
58 | 58 | */ |
59 | - protected $options="Applications/Options"; |
|
59 | + protected $options = "Applications/Options"; |
|
60 | 60 | |
61 | 61 | |
62 | 62 | /** |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | ->setIsDescriptionsEnabled(true) |
78 | 78 | ->setDescription( |
79 | 79 | /*@translate*/ 'Attach images or PDF Documents to your application. Drag&drop them, or click into the attachement area. You can upload up to %sMB', |
80 | - [round($size/(1024*1024))>0? round($size/(1024*1024)):round($size/(1024*1024), 1)] |
|
80 | + [round($size / (1024 * 1024)) > 0 ? round($size / (1024 * 1024)) : round($size / (1024 * 1024), 1)] |
|
81 | 81 | ) |
82 | 82 | ->setParam('return', 'file-uri') |
83 | 83 | ->setLabel(/*@translate*/ 'Attachments'); |