@@ -1,16 +1,16 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * YAWIK |
|
| 4 | - * Configuration file of the Core module |
|
| 5 | - * |
|
| 6 | - * This file intents to provide the configuration for all other modules |
|
| 7 | - * as well (convention over configuration). |
|
| 8 | - * Having said that, you may always overwrite or extend the configuration |
|
| 9 | - * in your own modules configuration file(s) (or via the config autoloading). |
|
| 10 | - * |
|
| 11 | - * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
| 12 | - * @license MIT |
|
| 13 | - */ |
|
| 3 | + * YAWIK |
|
| 4 | + * Configuration file of the Core module |
|
| 5 | + * |
|
| 6 | + * This file intents to provide the configuration for all other modules |
|
| 7 | + * as well (convention over configuration). |
|
| 8 | + * Having said that, you may always overwrite or extend the configuration |
|
| 9 | + * in your own modules configuration file(s) (or via the config autoloading). |
|
| 10 | + * |
|
| 11 | + * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
| 12 | + * @license MIT |
|
| 13 | + */ |
|
| 14 | 14 | |
| 15 | 15 | $doctrineConfig = include __DIR__ . '/doctrine.config.php'; |
| 16 | 16 | |
@@ -32,24 +32,24 @@ discard block |
||
| 32 | 32 | 'log' => array( |
| 33 | 33 | 'Core/Log' => array( |
| 34 | 34 | 'writers' => array( |
| 35 | - array( |
|
| 36 | - 'name' => 'stream', |
|
| 35 | + array( |
|
| 36 | + 'name' => 'stream', |
|
| 37 | 37 | 'priority' => 1000, |
| 38 | 38 | 'options' => array( |
| 39 | - 'stream' => __DIR__ .'/../../../log/yawik.log', |
|
| 39 | + 'stream' => __DIR__ .'/../../../log/yawik.log', |
|
| 40 | + ), |
|
| 40 | 41 | ), |
| 41 | - ), |
|
| 42 | 42 | ), |
| 43 | 43 | ), |
| 44 | 44 | 'Log/Core/Mail' => array( |
| 45 | 45 | 'writers' => array( |
| 46 | - array( |
|
| 47 | - 'name' => 'stream', |
|
| 46 | + array( |
|
| 47 | + 'name' => 'stream', |
|
| 48 | 48 | 'priority' => 1000, |
| 49 | 49 | 'options' => array( |
| 50 | - 'stream' => __DIR__ .'/../../../log/mails.log', |
|
| 50 | + 'stream' => __DIR__ .'/../../../log/mails.log', |
|
| 51 | + ), |
|
| 51 | 52 | ), |
| 52 | - ), |
|
| 53 | 53 | ), |
| 54 | 54 | ), |
| 55 | 55 | 'ErrorLogger' => array( |
@@ -207,11 +207,11 @@ discard block |
||
| 207 | 207 | // Defines the Core/Navigation. |
| 208 | 208 | 'navigation' => array( |
| 209 | 209 | 'default' => array( |
| 210 | - 'home' => array( |
|
| 211 | - 'label' => /*@translate*/ 'Home', |
|
| 212 | - 'route' => 'lang', |
|
| 213 | - 'visible' => false |
|
| 214 | - ), |
|
| 210 | + 'home' => array( |
|
| 211 | + 'label' => /*@translate*/ 'Home', |
|
| 212 | + 'route' => 'lang', |
|
| 213 | + 'visible' => false |
|
| 214 | + ), |
|
| 215 | 215 | ), |
| 216 | 216 | ), |
| 217 | 217 | // Configuration of the controller service manager (Which loads controllers) |
@@ -1,11 +1,11 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * YAWIK |
|
| 4 | - * |
|
| 5 | - * @filesource |
|
| 6 | - * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
| 7 | - * @license MIT |
|
| 8 | - */ |
|
| 3 | + * YAWIK |
|
| 4 | + * |
|
| 5 | + * @filesource |
|
| 6 | + * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
| 7 | + * @license MIT |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | /** Core forms view helpers */ |
| 11 | 11 | namespace Core\Form\View\Helper; |
@@ -83,8 +83,8 @@ discard block |
||
| 83 | 83 | if ($element instanceof ViewPartialProviderInterface) { |
| 84 | 84 | $parameterPartial = array_merge(array('element' => $element, 'layout' => $layout), $parameterPartial); |
| 85 | 85 | $content .= $this->getView()->partial( |
| 86 | - $element->getViewPartial(), |
|
| 87 | - $parameterPartial |
|
| 86 | + $element->getViewPartial(), |
|
| 87 | + $parameterPartial |
|
| 88 | 88 | ); |
| 89 | 89 | |
| 90 | 90 | } elseif ($element instanceof ViewHelperProviderInterface) { |
@@ -1,11 +1,11 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * YAWIK |
|
| 4 | - * |
|
| 5 | - * @filesource |
|
| 6 | - * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
| 7 | - * @license MIT |
|
| 8 | - */ |
|
| 3 | + * YAWIK |
|
| 4 | + * |
|
| 5 | + * @filesource |
|
| 6 | + * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
| 7 | + * @license MIT |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | /** Core forms view helpers */ |
| 11 | 11 | namespace Core\Form\View\Helper; |
@@ -89,20 +89,20 @@ discard block |
||
| 89 | 89 | $tabId = $containerId . '-' . strtolower($tabElement->getName()); |
| 90 | 90 | $tabsNav .= '<li><a data-toggle="tab" href="#' . $tabId . '">' . $translate($tabElement->getLabel()) . '</a></li>'; |
| 91 | 91 | $tabsContent .= '<div class="tab-pane" id="' . $tabId . '">' |
| 92 | - . $formContainer($tabElement, $layout, $parameter) |
|
| 93 | - . '</div>'; |
|
| 92 | + . $formContainer($tabElement, $layout, $parameter) |
|
| 93 | + . '</div>'; |
|
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | $content .= '<div class="wizard-container" id="' . $containerId . '">' |
| 97 | - . '<ul>' . $tabsNav . '</ul>' |
|
| 98 | - . '<div class="tab-content">' . $tabsContent . '</div>' |
|
| 99 | - . '<ul class="pager wizard">' |
|
| 100 | - . '<li class="previous"><a href="javascript:;">← ' . $translate('Previous') . '</a></li>' |
|
| 101 | - . '<li class="next"><a href="javascript:;">' . $translate('Next') . ' →</a></li>' |
|
| 102 | - . '<li class="finish' . ($containerParams['finish_enabled'] ? '' : ' disabled') . '">' |
|
| 103 | - . '<a class="pull-right" href="' . $containerParams['finish_href'] . '">' |
|
| 104 | - . $translate($containerParams['finish_label']) . ' •</a></li>' |
|
| 105 | - . '</div>'; |
|
| 97 | + . '<ul>' . $tabsNav . '</ul>' |
|
| 98 | + . '<div class="tab-content">' . $tabsContent . '</div>' |
|
| 99 | + . '<ul class="pager wizard">' |
|
| 100 | + . '<li class="previous"><a href="javascript:;">← ' . $translate('Previous') . '</a></li>' |
|
| 101 | + . '<li class="next"><a href="javascript:;">' . $translate('Next') . ' →</a></li>' |
|
| 102 | + . '<li class="finish' . ($containerParams['finish_enabled'] ? '' : ' disabled') . '">' |
|
| 103 | + . '<a class="pull-right" href="' . $containerParams['finish_href'] . '">' |
|
| 104 | + . $translate($containerParams['finish_label']) . ' •</a></li>' |
|
| 105 | + . '</div>'; |
|
| 106 | 106 | |
| 107 | 107 | $content .= $container->renderPost($this->getView()); |
| 108 | 108 | |
@@ -60,4 +60,4 @@ |
||
| 60 | 60 | ], |
| 61 | 61 | ], |
| 62 | 62 | ]; |
| 63 | - |
|
| 64 | 63 | \ No newline at end of file |
| 64 | + |
|
| 65 | 65 | \ No newline at end of file |
@@ -62,51 +62,51 @@ |
||
| 62 | 62 | ]); |
| 63 | 63 | |
| 64 | 64 | $this->add([ |
| 65 | - 'type' => 'text', |
|
| 66 | - 'name' => 'zipCode', |
|
| 67 | - 'options' => [ |
|
| 68 | - 'label' => 'Postal code' |
|
| 69 | - ], |
|
| 70 | - ]); |
|
| 65 | + 'type' => 'text', |
|
| 66 | + 'name' => 'zipCode', |
|
| 67 | + 'options' => [ |
|
| 68 | + 'label' => 'Postal code' |
|
| 69 | + ], |
|
| 70 | + ]); |
|
| 71 | 71 | |
| 72 | 72 | $this->add([ |
| 73 | - 'type' => 'text', |
|
| 74 | - 'name' => 'city', |
|
| 75 | - 'options' => [ |
|
| 76 | - 'label' => /*@translate*/ 'City', |
|
| 77 | - ], |
|
| 78 | - ]); |
|
| 73 | + 'type' => 'text', |
|
| 74 | + 'name' => 'city', |
|
| 75 | + 'options' => [ |
|
| 76 | + 'label' => /*@translate*/ 'City', |
|
| 77 | + ], |
|
| 78 | + ]); |
|
| 79 | 79 | |
| 80 | 80 | $this->add([ |
| 81 | - 'type' => 'text', |
|
| 82 | - 'name' => 'region', |
|
| 83 | - 'options' => [ |
|
| 84 | - 'label' => /*@translate*/ 'Region', |
|
| 85 | - ], |
|
| 86 | - ]); |
|
| 81 | + 'type' => 'text', |
|
| 82 | + 'name' => 'region', |
|
| 83 | + 'options' => [ |
|
| 84 | + 'label' => /*@translate*/ 'Region', |
|
| 85 | + ], |
|
| 86 | + ]); |
|
| 87 | 87 | |
| 88 | 88 | $this->add([ |
| 89 | - 'type' => 'text', |
|
| 90 | - 'name' => 'country', |
|
| 91 | - 'options' => [ |
|
| 92 | - 'label' => /*@translate*/ 'Country', |
|
| 93 | - ], |
|
| 94 | - ]); |
|
| 89 | + 'type' => 'text', |
|
| 90 | + 'name' => 'country', |
|
| 91 | + 'options' => [ |
|
| 92 | + 'label' => /*@translate*/ 'Country', |
|
| 93 | + ], |
|
| 94 | + ]); |
|
| 95 | 95 | |
| 96 | 96 | $this->add([ |
| 97 | - 'type' => 'text', |
|
| 98 | - 'name' => 'vatId', |
|
| 99 | - 'options' => [ |
|
| 100 | - 'label' => /*@translate*/ 'Value added tax ID', |
|
| 101 | - ], |
|
| 102 | - ]); |
|
| 97 | + 'type' => 'text', |
|
| 98 | + 'name' => 'vatId', |
|
| 99 | + 'options' => [ |
|
| 100 | + 'label' => /*@translate*/ 'Value added tax ID', |
|
| 101 | + ], |
|
| 102 | + ]); |
|
| 103 | 103 | $this->add([ |
| 104 | - 'type' => 'text', |
|
| 105 | - 'name' => 'email', |
|
| 106 | - 'options' => [ |
|
| 107 | - 'label' => /*@translate*/ 'Email address', |
|
| 108 | - ], |
|
| 109 | - ]); |
|
| 104 | + 'type' => 'text', |
|
| 105 | + 'name' => 'email', |
|
| 106 | + 'options' => [ |
|
| 107 | + 'label' => /*@translate*/ 'Email address', |
|
| 108 | + ], |
|
| 109 | + ]); |
|
| 110 | 110 | |
| 111 | 111 | |
| 112 | 112 | } |
@@ -1,11 +1,11 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * YAWIK |
|
| 4 | - * |
|
| 5 | - * @filesource |
|
| 6 | - * @license MIT |
|
| 7 | - * @copyright 2013 - 2016 Cross Solution <http://cross-solution.de> |
|
| 8 | - */ |
|
| 3 | + * YAWIK |
|
| 4 | + * |
|
| 5 | + * @filesource |
|
| 6 | + * @license MIT |
|
| 7 | + * @copyright 2013 - 2016 Cross Solution <http://cross-solution.de> |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | /** */ |
| 11 | 11 | namespace Organizations\Form\Element; |
@@ -139,12 +139,12 @@ discard block |
||
| 139 | 139 | $jobEntity = $this->initializeJob()->get($this->params()); |
| 140 | 140 | |
| 141 | 141 | $model = new ViewModel([ |
| 142 | - 'portals' => $jobEntity->getPortals(), |
|
| 143 | - 'channels' => $channels, |
|
| 144 | - 'defaultCurrencyCode' => $options->defaultCurrencyCode, |
|
| 145 | - 'defaultTaxRate' => $options->defaultTaxRate, |
|
| 146 | - 'jobId' => $jobEntity->getId() |
|
| 147 | - ]); |
|
| 142 | + 'portals' => $jobEntity->getPortals(), |
|
| 143 | + 'channels' => $channels, |
|
| 144 | + 'defaultCurrencyCode' => $options->defaultCurrencyCode, |
|
| 145 | + 'defaultTaxRate' => $options->defaultTaxRate, |
|
| 146 | + 'jobId' => $jobEntity->getId() |
|
| 147 | + ]); |
|
| 148 | 148 | $model->setTemplate('jobs/partials/channel-list')->setTerminal(true); |
| 149 | 149 | return $model; |
| 150 | 150 | } |
@@ -440,9 +440,9 @@ discard block |
||
| 440 | 440 | // we want just some Values to be compared |
| 441 | 441 | $diff = null; |
| 442 | 442 | foreach (array('title', 'organization', 'location', |
| 443 | - 'templateValues.qualifications', 'templateValues.requirements', 'templateValues.benefits', 'templateValues.title', |
|
| 444 | - 'templateValues._freeValues.description', |
|
| 445 | - ) as $prelKey) { |
|
| 443 | + 'templateValues.qualifications', 'templateValues.requirements', 'templateValues.benefits', 'templateValues.title', |
|
| 444 | + 'templateValues._freeValues.description', |
|
| 445 | + ) as $prelKey) { |
|
| 446 | 446 | if (array_key_exists($prelKey, $prelDiff)) { |
| 447 | 447 | $diff[$prelKey] = $prelDiff[$prelKey]; |
| 448 | 448 | } |
@@ -471,28 +471,28 @@ discard block |
||
| 471 | 471 | 'lang/jobs/view', |
| 472 | 472 | array(), |
| 473 | 473 | array('query' => |
| 474 | - array( 'id' => $jobEntity->getId())) |
|
| 474 | + array( 'id' => $jobEntity->getId())) |
|
| 475 | 475 | ); |
| 476 | 476 | |
| 477 | 477 | $approvalLink = $this->url()->fromRoute( |
| 478 | 478 | 'lang/jobs/approval', |
| 479 | 479 | array('state' => 'approved'), |
| 480 | 480 | array('query' => |
| 481 | - array( 'id' => $jobEntity->getId())) |
|
| 481 | + array( 'id' => $jobEntity->getId())) |
|
| 482 | 482 | ); |
| 483 | 483 | |
| 484 | 484 | $declineLink = $this->url()->fromRoute( |
| 485 | 485 | 'lang/jobs/approval', |
| 486 | 486 | array('state' => 'declined'), |
| 487 | 487 | array('query' => |
| 488 | - array( 'id' => $jobEntity->getId())) |
|
| 488 | + array( 'id' => $jobEntity->getId())) |
|
| 489 | 489 | ); |
| 490 | 490 | |
| 491 | 491 | return array('job' => $jobEntity, |
| 492 | - 'diffSnapshot' => $diff, |
|
| 493 | - 'viewLink' => $viewLink, |
|
| 494 | - 'approvalLink' => $approvalLink, |
|
| 495 | - 'declineLink' => $declineLink); |
|
| 492 | + 'diffSnapshot' => $diff, |
|
| 493 | + 'viewLink' => $viewLink, |
|
| 494 | + 'approvalLink' => $approvalLink, |
|
| 495 | + 'declineLink' => $declineLink); |
|
| 496 | 496 | } |
| 497 | 497 | |
| 498 | 498 | /** |