/** * @param Customweb_Form_IElement $element * @return string */ protected function renderElementScopeControl(Customweb_Form_IElement $element) { $scopeControlId = $element->getControl()->getControlId() . '-scope'; $scopeControlName = implode('_', $element->getControl()->getControlNameAsArray()); $output = ''; $output .= '<div class="checkbox">'; $output .= '<label for="' . $scopeControlId . '">'; $output .= '<input type="checkbox" ' . ($element->isInherited() ? 'checked="checked"' : '') . ' name="default[' . $scopeControlName . ']" id="' . $scopeControlId . '" value="default" ' . ($this->isAddJs() ? 'onclick="scopeToggleElements(this)"' : '') . ' /> '; $output .= Customweb_I18n_Translation::__('Use Default'); $output .= '</label>'; $output .= '</div>'; return $output; }
/** * @param Customweb_Form_IElement $element * @return string */ protected function renderElementScopeControl(Customweb_Form_IElement $element) { $scopeControlId = $element->getControl()->getControlId() . '-scope'; $scopeControlName = implode('_', $element->getControl()->getControlNameAsArray()); $output = ''; $output .= '<input class="use-default-checkbox" type="checkbox" ' . ($element->isInherited() ? 'checked="checked"' : '') . ' name="default[' . $scopeControlName . ']" id="' . $scopeControlId . '" value="default" ' . ($this->isAddJs() ? 'onclick="toggleValueElements(this, Element.previous(this.parentNode))"' : '') . ' />'; $output .= '<label for="' . $scopeControlId . '">' . Mage::helper('SaferpayCw')->__('Use Default') . '</label>'; return $output; }