On new contract, grey out the status (i.e. disabled).
Perhaps use following as in edit contract:
$this->removeElement('contract_status');
$this->addHiddenElement('contract_status', 'new');
$this->addElement('FilteringSelect', 'contract_statusDisabled', array(
'label' => 'Status:',
'multiOptions' => $this->_getContractStatus(),
'order' => 30,
'attribs' => array(
'disabled' => 'disabled'
)
));
Suggestion - to make this more general:
$tempStatus = $this->_request->getParam('contract_status');
$this->removeElement('contract_status');
$this->addHiddenElement('contract_status', $tempStatus);
both here and in edit status??
On new contract, grey out the status (i.e. disabled). Perhaps use following as in edit contract: $this->removeElement('contract_status'); $this->addHiddenElement('contract_status', 'new'); $this->addElement('FilteringSelect', 'contract_statusDisabled', array( 'label' => 'Status:', 'multiOptions' => $this->_getContractStatus(), 'order' => 30, 'attribs' => array( 'disabled' => 'disabled' ) ));
Suggestion - to make this more general: $tempStatus = $this->_request->getParam('contract_status'); $this->removeElement('contract_status'); $this->addHiddenElement('contract_status', $tempStatus); both here and in edit status??