@@ -33,7 +33,7 @@ |
||
| 33 | 33 | ]; |
| 34 | 34 | |
| 35 | 35 | // do nothing for allowed routes |
| 36 | - if (in_array($routeName, $allowedRoutes)) |
|
| 36 | + if (in_array($routeName, $allowedRoutes)) |
|
| 37 | 37 | { |
| 38 | 38 | return; |
| 39 | 39 | } |
@@ -62,17 +62,17 @@ |
||
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | /** |
| 65 | - * @param array $statusOptions |
|
| 66 | - * @return UserStatusFieldset |
|
| 67 | - */ |
|
| 68 | - public function setStatusOptions(array $statusOptions) |
|
| 69 | - { |
|
| 70 | - $this->statusOptions = $statusOptions; |
|
| 65 | + * @param array $statusOptions |
|
| 66 | + * @return UserStatusFieldset |
|
| 67 | + */ |
|
| 68 | + public function setStatusOptions(array $statusOptions) |
|
| 69 | + { |
|
| 70 | + $this->statusOptions = $statusOptions; |
|
| 71 | 71 | |
| 72 | - return $this; |
|
| 73 | - } |
|
| 72 | + return $this; |
|
| 73 | + } |
|
| 74 | 74 | |
| 75 | - public function init() |
|
| 75 | + public function init() |
|
| 76 | 76 | { |
| 77 | 77 | $this->setName('status'); |
| 78 | 78 | |
@@ -84,9 +84,9 @@ |
||
| 84 | 84 | $imageStrategy = $infoContainer->getForm('info.image') |
| 85 | 85 | ->getHydrator() |
| 86 | 86 | ->getStrategy('image'); |
| 87 | - $fileEntity = $imageStrategy->getFileEntity(); |
|
| 88 | - $fileEntity->setUser($user); |
|
| 89 | - $imageStrategy->setFileEntity($fileEntity); |
|
| 87 | + $fileEntity = $imageStrategy->getFileEntity(); |
|
| 88 | + $fileEntity->setUser($user); |
|
| 89 | + $imageStrategy->setFileEntity($fileEntity); |
|
| 90 | 90 | |
| 91 | 91 | if ($this->request->isPost()) { |
| 92 | 92 | $formName = $params->fromQuery('form'); |
@@ -25,9 +25,9 @@ |
||
| 25 | 25 | public function indexAction() |
| 26 | 26 | { |
| 27 | 27 | return $this->pagination([ |
| 28 | - 'form' => ['Core/TextSearch', 'as' => 'form'], |
|
| 29 | - 'paginator' => ['Orders', [ 'sort' => 'date'], 'as' => 'orders'] |
|
| 30 | - ]); |
|
| 28 | + 'form' => ['Core/TextSearch', 'as' => 'form'], |
|
| 29 | + 'paginator' => ['Orders', [ 'sort' => 'date'], 'as' => 'orders'] |
|
| 30 | + ]); |
|
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | public function viewAction() |
@@ -53,10 +53,10 @@ |
||
| 53 | 53 | public function init() |
| 54 | 54 | { |
| 55 | 55 | $this->setAttributes([ |
| 56 | - 'class' => 'form-inline search-form', |
|
| 57 | - 'data-handle-by' => 'script', |
|
| 58 | - 'method' => 'get', |
|
| 59 | - ] |
|
| 56 | + 'class' => 'form-inline search-form', |
|
| 57 | + 'data-handle-by' => 'script', |
|
| 58 | + 'method' => 'get', |
|
| 59 | + ] |
|
| 60 | 60 | ); |
| 61 | 61 | |
| 62 | 62 | if (!$this->hasAttribute('name')) { |
@@ -64,8 +64,8 @@ discard block |
||
| 64 | 64 | $content = $this->renderElements($elements, $buttons, $colMap, $buttonsSpan); |
| 65 | 65 | |
| 66 | 66 | return $this->openTag($form) |
| 67 | - . '<div class="row" style="padding: 0 15px;">' |
|
| 68 | - . $content . '</div>' . $this->closeTag(); |
|
| 67 | + . '<div class="row" style="padding: 0 15px;">' |
|
| 68 | + . $content . '</div>' . $this->closeTag(); |
|
| 69 | 69 | |
| 70 | 70 | } |
| 71 | 71 | |
@@ -104,15 +104,15 @@ discard block |
||
| 104 | 104 | |
| 105 | 105 | if ($fieldset instanceOf TextSearchFormFieldset && $element->getName() == $fieldset->getButtonElement()) { |
| 106 | 106 | $content.='<div class="input-group col-md-' . $cols . '">' |
| 107 | - . $formElement($element) |
|
| 108 | - . '<div class="input-group-btn search-form-buttons" style="width: 0px;">' |
|
| 109 | - . $this->renderElements($buttonsFieldset, true) . '</div>' |
|
| 110 | - . '</div>'; |
|
| 107 | + . $formElement($element) |
|
| 108 | + . '<div class="input-group-btn search-form-buttons" style="width: 0px;">' |
|
| 109 | + . $this->renderElements($buttonsFieldset, true) . '</div>' |
|
| 110 | + . '</div>'; |
|
| 111 | 111 | $buttonsRendered = true; |
| 112 | 112 | } else { |
| 113 | 113 | $content .= '<div class="input-group col-md-' . $cols . '">' |
| 114 | - . $formElement($element) |
|
| 115 | - . '</div>'; |
|
| 114 | + . $formElement($element) |
|
| 115 | + . '</div>'; |
|
| 116 | 116 | } |
| 117 | 117 | |
| 118 | 118 | $i += 1; |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | $buttonsSpan = $buttonsFieldset->getSpan(); |
| 124 | 124 | } |
| 125 | 125 | $content .= '<div class="input-group search-form-buttons col-md-' . $buttonsSpan . ' text-right">' |
| 126 | - . '<div class="btn-group">' . $this->renderElements($buttonsFieldset, true) .'</div></div>'; |
|
| 126 | + . '<div class="btn-group">' . $this->renderElements($buttonsFieldset, true) .'</div></div>'; |
|
| 127 | 127 | } |
| 128 | 128 | |
| 129 | 129 | return $content; |
@@ -126,11 +126,11 @@ discard block |
||
| 126 | 126 | public function init() |
| 127 | 127 | { |
| 128 | 128 | $this->addTextElement( |
| 129 | - $this->getOption('text_label') |
|
| 129 | + $this->getOption('text_label') |
|
| 130 | 130 | ? : /*@translate*/ 'Search', |
| 131 | - $this->getOption('text_placeholder') |
|
| 131 | + $this->getOption('text_placeholder') |
|
| 132 | 132 | ? : /*@translate*/ 'Search query', |
| 133 | - $this->getOption('text_span') ? : 12 |
|
| 133 | + $this->getOption('text_span') ? : 12 |
|
| 134 | 134 | ); |
| 135 | 135 | } |
| 136 | 136 | |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | && $elementOrFieldset['options']['is_button_element'] |
| 146 | 146 | ) { |
| 147 | 147 | $this->setButtonElement( |
| 148 | - isset($flags['name']) ? $flags['name'] : $elementOrFieldset['name'] |
|
| 148 | + isset($flags['name']) ? $flags['name'] : $elementOrFieldset['name'] |
|
| 149 | 149 | ); |
| 150 | 150 | } |
| 151 | 151 | |
@@ -173,16 +173,16 @@ discard block |
||
| 173 | 173 | protected function addTextElement($label, $placeholder = 'Search query', $span = 12) |
| 174 | 174 | { |
| 175 | 175 | return $this->add([ |
| 176 | - 'type' => 'Text', |
|
| 177 | - 'name' => 'text', |
|
| 178 | - 'options' => [ |
|
| 179 | - 'label' => $label, |
|
| 180 | - 'span' => $span, |
|
| 181 | - ], |
|
| 182 | - 'attributes' => [ |
|
| 183 | - 'placeholder' => $placeholder, |
|
| 184 | - ], |
|
| 185 | - ] |
|
| 176 | + 'type' => 'Text', |
|
| 177 | + 'name' => 'text', |
|
| 178 | + 'options' => [ |
|
| 179 | + 'label' => $label, |
|
| 180 | + 'span' => $span, |
|
| 181 | + ], |
|
| 182 | + 'attributes' => [ |
|
| 183 | + 'placeholder' => $placeholder, |
|
| 184 | + ], |
|
| 185 | + ] |
|
| 186 | 186 | ); |
| 187 | 187 | } |
| 188 | 188 | } |
| 189 | 189 | \ No newline at end of file |
@@ -25,8 +25,8 @@ |
||
| 25 | 25 | public function init() |
| 26 | 26 | { |
| 27 | 27 | $this->addTextElement( |
| 28 | - 'Search', |
|
| 29 | - /*@translate*/ 'search for position or company' |
|
| 28 | + 'Search', |
|
| 29 | + /*@translate*/ 'search for position or company' |
|
| 30 | 30 | ); |
| 31 | 31 | |
| 32 | 32 | |
@@ -89,23 +89,23 @@ |
||
| 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 | - . (false !== $containerParams['finish_label'] |
|
| 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 | + . (false !== $containerParams['finish_label'] |
|
| 104 | 104 | ? '<a class="pull-right" href="' . $containerParams['finish_href'] . '">' |
| 105 | - . $translate($containerParams['finish_label']) . ' •</a>' |
|
| 105 | + . $translate($containerParams['finish_label']) . ' •</a>' |
|
| 106 | 106 | : '' |
| 107 | 107 | ) |
| 108 | - . '</li></div>'; |
|
| 108 | + . '</li></div>'; |
|
| 109 | 109 | |
| 110 | 110 | $content .= $container->renderPost($this->getView()); |
| 111 | 111 | |