/** * Renders column as input when it is editable * * @param Varien_Object $row * @return string */ protected function _getEditableView(Varien_Object $row) { $value = $row->getData($this->getColumn()->getIndex()); if (!$row->getIsQtyDecimal() && !is_null($value)) { $value = intval($value); } $class = 'input-text ' . $this->getColumn()->getValidateClass(); $html = '<input type="text" '; $html .= 'name="items[' . $row->getId() . '][' . $this->getColumn()->getId() . ']" '; $html .= 'value="' . $value . '" '; if ($this->getStatusManager()->getAttributeIsDisabled($this->getColumn()->getId())) { $html .= ' disabled="disabled" '; $class .= ' disabled '; } $html .= 'class="' . $class . '" />'; return $html; }