b-b-a / bba-power

1 stars 0 forks source link

New Contract - grey out Status #223

Closed ghost closed 11 years ago

ghost commented 11 years ago

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??

paulmallett commented 11 years ago

Please work on this as necessary.