- $group = array ();
- $group[] = HTML_QuickForm::createElement('static', 'error' , 'Error:', $res->getMessage());
- $group[] = HTML_QuickForm::createElement('submit', 'aceptar' , $aceptar->getValue());
- $FORM->removeElement('botones');
- $FORM->addGroup($group,'botones', '', '<br>');
+ $ERROR = new MECON_HTML_Error(traducir($res->getMessage()));
+ if ($aceptar->getValue() == 'Eliminar') {
+ $FORM->freeze();
+ }