@@ -14,10 +14,10 @@ |
||
| 14 | 14 | protected $validator; |
| 15 | 15 | |
| 16 | 16 | /** |
| 17 | - * Get a validator if none has been set. |
|
| 18 | - * https://github.com/posabsolute/jQuery-Validation-Engine/issues/265 |
|
| 19 | - * @return RegexValidator |
|
| 20 | - */ |
|
| 17 | + * Get a validator if none has been set. |
|
| 18 | + * https://github.com/posabsolute/jQuery-Validation-Engine/issues/265 |
|
| 19 | + * @return RegexValidator |
|
| 20 | + */ |
|
| 21 | 21 | public function getValidator() |
| 22 | 22 | { |
| 23 | 23 | if (null === $this->validator) { |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | |
| 51 | 51 | public function init() |
| 52 | 52 | { |
| 53 | - $this->setName('items'); |
|
| 53 | + $this->setName('items'); |
|
| 54 | 54 | $this->add([ |
| 55 | 55 | 'type' => 'Collection', |
| 56 | 56 | 'name' => 'items', |
@@ -134,8 +134,8 @@ |
||
| 134 | 134 | $elementOptions = $element->getOptions(); |
| 135 | 135 | if (array_key_exists('placeholder', $elementOptions) && !empty($elementOptions['placeholder'])) { |
| 136 | 136 | $placeHolder = '<div id="placeholder-' . $name . '" style="border: 0 none; position: relative; top: 0ex; left: 10px; color: #aaa; height: 0px; overflow: visible;' . |
| 137 | - (empty($content)?'':'display:none;') . |
|
| 138 | - '">' . $this->translator->translate($elementOptions['placeholder']) . '</div>'; |
|
| 137 | + (empty($content)?'':'display:none;') . |
|
| 138 | + '">' . $this->translator->translate($elementOptions['placeholder']) . '</div>'; |
|
| 139 | 139 | } |
| 140 | 140 | return |
| 141 | 141 | $placeHolder |
@@ -48,8 +48,8 @@ |
||
| 48 | 48 | } |
| 49 | 49 | $linktext = $translator->translate($linktext); |
| 50 | 50 | $link = '<a data-toggle="modal" href="' . $href . '" ' |
| 51 | - . 'data-target="#modal-' . $element->getAttribute('id') . '">' |
|
| 52 | - . $linktext . '</a>'; |
|
| 51 | + . 'data-target="#modal-' . $element->getAttribute('id') . '">' |
|
| 52 | + . $linktext . '</a>'; |
|
| 53 | 53 | |
| 54 | 54 | $label = sprintf($label, $link); |
| 55 | 55 | } |
@@ -67,8 +67,8 @@ discard block |
||
| 67 | 67 | $content = $this->renderElements($form, $colMap, $buttonsSpan); |
| 68 | 68 | |
| 69 | 69 | return $this->openTag($form) |
| 70 | - . '<div class="row" style="padding: 0 15px;">' |
|
| 71 | - . $content . '</div>' . $this->closeTag(); |
|
| 70 | + . '<div class="row" style="padding: 0 15px;">' |
|
| 71 | + . $content . '</div>' . $this->closeTag(); |
|
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | public function renderButtons($buttons) |
@@ -81,8 +81,8 @@ discard block |
||
| 81 | 81 | $attrs = $helper->createAttributesString($button->getAttributes()); |
| 82 | 82 | |
| 83 | 83 | $content.= '<button ' . $attrs . '>' |
| 84 | - . $this->getTranslator()->translate($button->getLabel(), $this->getTranslatorTextDomain()) |
|
| 85 | - . '</button>'; |
|
| 84 | + . $this->getTranslator()->translate($button->getLabel(), $this->getTranslatorTextDomain()) |
|
| 85 | + . '</button>'; |
|
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | return $content; |
@@ -118,15 +118,15 @@ discard block |
||
| 118 | 118 | |
| 119 | 119 | if ($element->getName() == $form->getButtonElement()) { |
| 120 | 120 | $content.='<div class="input-group col-md-' . $cols . '">' |
| 121 | - . $formElement($element) |
|
| 122 | - . '<div class="input-group-btn search-form-buttons" style="width: 1px;">' |
|
| 123 | - . $this->renderButtons($form->getButtons()) . '</div>' |
|
| 124 | - . '</div>'; |
|
| 121 | + . $formElement($element) |
|
| 122 | + . '<div class="input-group-btn search-form-buttons" style="width: 1px;">' |
|
| 123 | + . $this->renderButtons($form->getButtons()) . '</div>' |
|
| 124 | + . '</div>'; |
|
| 125 | 125 | $buttonsRendered = true; |
| 126 | 126 | } else { |
| 127 | 127 | $content .= '<div class="input-group col-md-' . $cols . '">' |
| 128 | - . $formElement($element) |
|
| 129 | - . '</div>'; |
|
| 128 | + . $formElement($element) |
|
| 129 | + . '</div>'; |
|
| 130 | 130 | } |
| 131 | 131 | |
| 132 | 132 | $i += 1; |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | $buttonsSpan = $form->getOption('buttons_span') ?: 12; |
| 138 | 138 | } |
| 139 | 139 | $content .= '<div class="input-group search-form-buttons col-md-' . $buttonsSpan . ' text-right">' |
| 140 | - . '<div class="btn-group">' . $this->renderButtons($form->getButtons()) .'</div></div>'; |
|
| 140 | + . '<div class="btn-group">' . $this->renderButtons($form->getButtons()) .'</div></div>'; |
|
| 141 | 141 | } |
| 142 | 142 | |
| 143 | 143 | return $content; |
@@ -113,11 +113,11 @@ discard block |
||
| 113 | 113 | |
| 114 | 114 | return str_replace( |
| 115 | 115 | array('#abort', |
| 116 | - '__file-uri__', |
|
| 117 | - '__file-name__', |
|
| 118 | - '__file-size__', |
|
| 119 | - 'fu-working', |
|
| 120 | - 'fa-file-o' |
|
| 116 | + '__file-uri__', |
|
| 117 | + '__file-name__', |
|
| 118 | + '__file-size__', |
|
| 119 | + 'fu-working', |
|
| 120 | + 'fa-file-o' |
|
| 121 | 121 | ), |
| 122 | 122 | array("$uri?do=delete", $uri, $name, $size, '', $icon), |
| 123 | 123 | $template |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | '<div class="fu-nonempty-notice"' . ('' == trim($preview) ? ' style="display:none;"' : '') . '>' |
| 141 | 141 | . $this->getNonEmptyNotice() . '</div>'; |
| 142 | 142 | $emptynotice = '<div class="fu-empty-notice"' |
| 143 | - . ('' == trim($preview) ? '' : ' style="display: none;"') . '> |
|
| 143 | + . ('' == trim($preview) ? '' : ' style="display: none;"') . '> |
|
| 144 | 144 | ' . $this->getEmptyNotice() . ' |
| 145 | 145 | </div>'; |
| 146 | 146 | |
@@ -50,10 +50,10 @@ discard block |
||
| 50 | 50 | if ($element instanceof ViewPartialProviderInterface && !$ignoreViewPartial) { |
| 51 | 51 | return $this->getView()->partial( |
| 52 | 52 | $element->getViewPartial(), |
| 53 | - array( |
|
| 54 | - 'element' => $element, |
|
| 55 | - 'labelWitdh' => $labelWidth, |
|
| 56 | - 'label_attributes' => $labelAttributes |
|
| 53 | + array( |
|
| 54 | + 'element' => $element, |
|
| 55 | + 'labelWitdh' => $labelWidth, |
|
| 56 | + 'label_attributes' => $labelAttributes |
|
| 57 | 57 | ) |
| 58 | 58 | ); |
| 59 | 59 | } |
@@ -110,9 +110,9 @@ discard block |
||
| 110 | 110 | if ($desc && $this->layout != Form::LAYOUT_BARE) { |
| 111 | 111 | if (null !== ($translator = $this->getTranslator())) { |
| 112 | 112 | $desc = $translator->translate( |
| 113 | - $desc, |
|
| 114 | - $this->getTranslatorTextDomain() |
|
| 115 | - ); |
|
| 113 | + $desc, |
|
| 114 | + $this->getTranslatorTextDomain() |
|
| 115 | + ); |
|
| 116 | 116 | } |
| 117 | 117 | $elementString .= sprintf( |
| 118 | 118 | '<div id="%s-desc" class="cam-description alert alert-info">%s</div>', |
@@ -71,8 +71,8 @@ |
||
| 71 | 71 | $basepath = $renderer->plugin('basepath'); |
| 72 | 72 | |
| 73 | 73 | $headscript->appendFile($basepath('modules/Core/js/core.spinnerbutton.js')) |
| 74 | - //->appendFile($basepath('/assets/select2/js/select2.min.js')) |
|
| 75 | - ->appendFile($basepath('modules/Core/js/core.forms.js')); |
|
| 74 | + //->appendFile($basepath('/assets/select2/js/select2.min.js')) |
|
| 75 | + ->appendFile($basepath('modules/Core/js/core.forms.js')); |
|
| 76 | 76 | |
| 77 | 77 | /* @noinspection PhpParamsInspection */ |
| 78 | 78 | //$renderer->headLink()->appendStylesheet($basepath('/assets/select2/css/select2.css')); |
@@ -84,8 +84,8 @@ |
||
| 84 | 84 | if ($element instanceof ViewPartialProviderInterface) { |
| 85 | 85 | $parameterPartial = array_merge(array('element' => $element, 'layout' => $layout), $parameterPartial); |
| 86 | 86 | $content .= $this->getView()->partial( |
| 87 | - $element->getViewPartial(), |
|
| 88 | - $parameterPartial |
|
| 87 | + $element->getViewPartial(), |
|
| 88 | + $parameterPartial |
|
| 89 | 89 | ); |
| 90 | 90 | } elseif ($element instanceof ViewHelperProviderInterface) { |
| 91 | 91 | $helper = $element->getViewHelper(); |