Commit 9c8c13136038cc986e834373733581a09c19b450

Authored by Lucas Schmoeller da Silva
1 parent 0cba70ee
Exists in master

#35 Alterando cadastro de tabelas de arredondamento para que ao editar somente mostre o tipo de nota

ieducar/modules/TabelaArredondamento/Views/EditController.php
... ... @@ -156,8 +156,12 @@ class EditController extends Core_Controller_Page_EditController
156 156 $notaTipoValor = RegraAvaliacao_Model_Nota_TipoValor::getInstance();
157 157 $notaTipos = $notaTipoValor->getEnums();
158 158 unset($notaTipos[RegraAvaliacao_Model_Nota_TipoValor::NENHUM]);
159   - $this->campoRadio('tipoNota', $this->_getLabel('tipoNota'), $notaTipos,
160   - $this->getEntity()->get('tipoNota'), '', $this->_getHelp('tipoNota'));
  159 + if ($this->getEntity()->id!='')
  160 + $this->campoTexto('tipNota',$this->_getLabel('tipoNota'),$notaTipos[$this->getEntity()->get('tipoNota')],
  161 + 40,40,false,false,false,'','','','',true);
  162 + else
  163 + $this->campoRadio('tipoNota', $this->_getLabel('tipoNota'), $notaTipos,
  164 + $this->getEntity()->get('tipoNota'), '', $this->_getHelp('tipoNota'));
161 165  
162 166 // Parte condicional
163 167 if (!$this->getEntity()->isNew()) {
... ...