| @@ 97-113 (lines=17) @@ | ||
| 94 | * @param string $columnName |
|
| 95 | * @return string |
|
| 96 | */ |
|
| 97 | public function renderCellTemplate($columnName) |
|
| 98 | { |
|
| 99 | if ($columnName == 'personstatus' && isset($this->_columns[$columnName])) { |
|
| 100 | $aOptions = $this->personStatus->toOptionArray(); |
|
| 101 | } elseif ($columnName == 'score' && isset($this->_columns[$columnName])) { |
|
| 102 | $aOptions = $this->creditScore->toOptionArray(); |
|
| 103 | } else { |
|
| 104 | return parent::renderCellTemplate($columnName); |
|
| 105 | } |
|
| 106 | ||
| 107 | $oElement = $this->elementFactory->create('select'); |
|
| 108 | $oElement->setForm($this->getForm()); |
|
| 109 | $oElement->setName($this->_getCellInputElementName($columnName)); |
|
| 110 | $oElement->setHtmlId($this->_getCellInputElementId('<%- _id %>', $columnName)); |
|
| 111 | $oElement->setValues($aOptions); |
|
| 112 | return str_replace("\n", '', $oElement->getElementHtml()); |
|
| 113 | } |
|
| 114 | } |
|
| 115 | ||
| @@ 97-113 (lines=17) @@ | ||
| 94 | * @param string $columnName |
|
| 95 | * @return string |
|
| 96 | */ |
|
| 97 | public function renderCellTemplate($columnName) |
|
| 98 | { |
|
| 99 | if ($columnName == 'txaction' && isset($this->_columns[$columnName])) { |
|
| 100 | $aOptions = $this->transactionStatus->toOptionArray(); // add transction status action options to dropdown |
|
| 101 | } elseif ($columnName == 'state_status' && isset($this->_columns[$columnName])) { |
|
| 102 | $aOptions = $this->orderStatus->toOptionArray(); // add state_status options to dropdown |
|
| 103 | } else { |
|
| 104 | return parent::renderCellTemplate($columnName); |
|
| 105 | } |
|
| 106 | ||
| 107 | $oElement = $this->elementFactory->create('select'); |
|
| 108 | $oElement->setForm($this->getForm()); |
|
| 109 | $oElement->setName($this->_getCellInputElementName($columnName)); |
|
| 110 | $oElement->setHtmlId($this->_getCellInputElementId('<%- _id %>', $columnName)); |
|
| 111 | $oElement->setValues($aOptions); |
|
| 112 | return str_replace("\n", '', $oElement->getElementHtml()); |
|
| 113 | } |
|
| 114 | ||
| 115 | /** |
|
| 116 | * Obtain existing data from form element |
|