Commit 91e2fa5c0898ea2205b2fc0cfd522ef08f1e152e

Authored by Fabiana Ofugi + Rafael Ferreira
Committed by Fabiana Ofugi
1 parent b4902a33
Exists in master

Obrigatoriedade retirada do campo turma no processo de enturmacao, e 'Enturmar d…

…epois' como opcao default
ieducar/intranet/educar_matricula_cad.php
@@ -158,9 +158,10 @@ class indice extends clsCadastro @@ -158,9 +158,10 @@ class indice extends clsCadastro
158 158
159 $anoLetivoHelperOptions = array('situacoes' => array('em_andamento', 'nao_iniciado')); 159 $anoLetivoHelperOptions = array('situacoes' => array('em_andamento', 'nao_iniciado'));
160 160
161 - $this->inputsHelper()->dynamic(array('instituicao', 'escola', 'curso', 'serie', 'turma')); 161 + $this->inputsHelper()->dynamic(array('instituicao', 'escola', 'curso', 'serie'));
  162 + $this->inputsHelper()->dynamic('turma', array('required' => false, 'option value' => 'Enturmar depois'));
162 $this->inputsHelper()->dynamic('anoLetivo', array('label' => 'Ano destino'), $anoLetivoHelperOptions); 163 $this->inputsHelper()->dynamic('anoLetivo', array('label' => 'Ano destino'), $anoLetivoHelperOptions);
163 - 164 +
164 165
165 if (is_numeric($this->ref_cod_curso)) { 166 if (is_numeric($this->ref_cod_curso)) {
166 $obj_curso = new clsPmieducarCurso($this->ref_cod_curso); 167 $obj_curso = new clsPmieducarCurso($this->ref_cod_curso);
ieducar/lib/Portabilis/View/Helper/DynamicInput/Turma.php
@@ -80,7 +80,7 @@ class Portabilis_View_Helper_DynamicInput_Turma extends Portabilis_View_Helper_D @@ -80,7 +80,7 @@ class Portabilis_View_Helper_DynamicInput_Turma extends Portabilis_View_Helper_D
80 } 80 }
81 } 81 }
82 82
83 - return $this->insertOption(null, "Selecione uma turma", $resources); 83 + return $this->insertOption(null, "Enturmar depois", $resources);
84 } 84 }
85 85
86 protected function turmasPorAno($escolaId, $ano) { 86 protected function turmasPorAno($escolaId, $ano) {
ieducar/modules/DynamicInput/Assets/Javascripts/Turma.js
@@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@
11 11
12 var handleGetTurmas = function(response) { 12 var handleGetTurmas = function(response) {
13 var selectOptions = jsonResourcesToSelectOptions(response['options']); 13 var selectOptions = jsonResourcesToSelectOptions(response['options']);
14 - updateSelect($turmaField, selectOptions, "Selecione uma turma"); 14 + updateSelect($turmaField, selectOptions, "Enturmar depois");
15 } 15 }
16 16
17 var updateTurmas = function(){ 17 var updateTurmas = function(){