[Alba-desarrollo] SVN Alba r6122 - prosistem/alba/trunk/alba/apps/principal/modules/alumno/templates

commits en pressenter.com.ar commits en pressenter.com.ar
Vie Abr 24 22:26:34 CEST 2009


Author: hsanchez
Date: 2009-04-24 17:26:34 -0300 (Fri, 24 Apr 2009)
New Revision: 6122

Modified:
   prosistem/alba/trunk/alba/apps/principal/modules/alumno/templates/editSuccess.php
Log:
Fix hasError

Modified: prosistem/alba/trunk/alba/apps/principal/modules/alumno/templates/editSuccess.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/alumno/templates/editSuccess.php	2009-04-24 20:03:00 UTC (rev 6121)
+++ prosistem/alba/trunk/alba/apps/principal/modules/alumno/templates/editSuccess.php	2009-04-24 20:26:34 UTC (rev 6122)
@@ -25,17 +25,7 @@
         <?php include_partial('alumno/edit_header', array('alumno' => $alumno)) ?>
     </div>
 
-
-    <?php if ($sf_request->hasErrors()): ?>
-    <div class="form-errors">
-        <h2><?php echo __('There are some errors that prevent the form to validate') ?></h2>
-        <ul>
-            <?php foreach ($sf_request->getErrorNames() as $name): ?>
-              <li><?php echo $sf_request->getError($name) ?></li>
-            <?php endforeach; ?>
-        </ul>
-    </div>
-    <?php elseif ($sf_user->hasFlash('notice')): ?>
+    <?php if ($sf_user->hasFlash('notice')): ?>
     <div class="save-ok">
         <h2><?php echo __($sf_user->getFlash('notice')) ?></h2>
     </div>
@@ -63,8 +53,8 @@
 
             <div class="form-row">
               <?php echo label_for('alumno[apellido_materno]', __('Apellido Materno:'), '') ?>
-              <div class="content<?php if ($sf_request->haserror('alumno{apellido_materno}')): ?> form-error<?php endif; ?>">
-              <?php if ($sf_request->haserror('alumno{apellido_materno}')): ?>
+              <div class="content<?php if ($sf_request->hasError('alumno{apellido_materno}')): ?> form-error<?php endif; ?>">
+              <?php if ($sf_request->hasError('alumno{apellido_materno}')): ?>
                 <?php echo form_error('alumno{apellido_materno}', array('class' => 'form-error-msg')) ?>
               <?php endif; ?>
 
@@ -118,7 +108,7 @@
               <?php echo label_for('alumno[nro_documento]', __('Nro. Documento:'), 'class="required" ') ?>
               <div class="content<?php if ($sf_request->hasError('alumno{nro_documento}')): ?> form-error<?php endif; ?>">
               <?php if ($sf_request->hasError('alumno{nro_documento}')): ?>
-                <?php echo form_error('alumno{nro_documento}', array('class' => 'form-error-msg')) ?>
+            <?php echo form_error('alumno{nro_documento}', array('class' => 'form-error-msg')) ?>
               <?php endif; ?>
 
               <?php echo object_input_tag($alumno, 'getNroDocumento', array (
@@ -257,8 +247,6 @@
                  </div>
               </div>
             </div>
-            
-            
             <div class="form-row">
               <?php echo label_for('alumno[codigo_postal]', __('CP:'), 'class="required" ') ?>
               <div class="content<?php if ($sf_request->hasError('alumno{codigo_postal}')): ?> form-error<?php endif; ?>">




Más información sobre la lista de distribución Alba-desarrollo