[Alba-desarrollo] SVN Alba r4288 - in prosistem/alba/trunk/alba/apps/principal: config modules/turnos/actions modules/turnos/config modules/turnos/validate templates

commits en pressenter.com.ar commits en pressenter.com.ar
Vie Feb 23 21:20:59 CET 2007


Author: ftoledo
Date: 2007-02-23 17:20:56 -0300 (Fri, 23 Feb 2007)
New Revision: 4288

Modified:
   prosistem/alba/trunk/alba/apps/principal/config/settings.yml
   prosistem/alba/trunk/alba/apps/principal/modules/turnos/actions/actions.class.php
   prosistem/alba/trunk/alba/apps/principal/modules/turnos/config/generator.yml
   prosistem/alba/trunk/alba/apps/principal/modules/turnos/config/security.yml
   prosistem/alba/trunk/alba/apps/principal/modules/turnos/validate/edit.yml
   prosistem/alba/trunk/alba/apps/principal/templates/layout.php
Log:
warnings en el modulo de turnos en la version dev



Modified: prosistem/alba/trunk/alba/apps/principal/config/settings.yml
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/config/settings.yml	2007-02-23 18:46:34 UTC (rev 4287)
+++ prosistem/alba/trunk/alba/apps/principal/config/settings.yml	2007-02-23 20:20:56 UTC (rev 4288)
@@ -13,7 +13,6 @@
     no_script_name:         off
     etag:                   off
     i18n:                   off
-    
 test:
   .settings:
     # E_ALL | E_STRICT & ~E_NOTICE = 2047

Modified: prosistem/alba/trunk/alba/apps/principal/modules/turnos/actions/actions.class.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/turnos/actions/actions.class.php	2007-02-23 18:46:34 UTC (rev 4287)
+++ prosistem/alba/trunk/alba/apps/principal/modules/turnos/actions/actions.class.php	2007-02-23 20:20:56 UTC (rev 4288)
@@ -63,9 +63,11 @@
         }
     }
     function _add_zeros($string, $strlen) {
-        if ($strlen > strlen($string))
-            for ($x = strlen($string); $x < $strlen; $x++)
+        if ($strlen > strlen($string)) {
+            for ($x = strlen($string); $x < $strlen; $x++) {
                 $string = '0' . $string;
+            }
+        }
         return $string;
     }
 }

Modified: prosistem/alba/trunk/alba/apps/principal/modules/turnos/config/generator.yml
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/turnos/config/generator.yml	2007-02-23 18:46:34 UTC (rev 4287)
+++ prosistem/alba/trunk/alba/apps/principal/modules/turnos/config/generator.yml	2007-02-23 20:20:56 UTC (rev 4288)
@@ -1,18 +1,18 @@
 generator:
-  class:              sfPropelAdminGenerator
-  param:
-    model_class:      Turnos
-    theme:            default 
-    fields:
-        descripcion: {name: Descripci&oacute;n , params: size=64}
-        hora_inicio: {name: Hora Inicio }
-        hora_fin: { name: Hora Fin }
-    edit:
-        title: Turno
-        display: [descripcion, _hora_inicio, _hora_fin ]
-    list:
-        title: Listado de Turnos
-        display: [=descripcion, hora_inicio, hora_fin ]
-        object_actions:
-            _edit:  -
-            _delete: -
+    class: sfPropelAdminGenerator
+    param:
+        model_class:      Turnos
+        theme:            default
+        fields:
+            descripcion: { name: Descripcion , params: size=64}
+            hora_inicio: { name: Hora Inicio }
+            hora_fin: { name: Hora Fin }
+        edit:
+            title: Turno
+            display: [descripcion, _hora_inicio, _hora_fin ]
+        list:
+            title: Listado de Turnos
+            display: [=descripcion, hora_inicio, hora_fin ]
+            object_actions:
+                _edit: -
+                _delete: -

Modified: prosistem/alba/trunk/alba/apps/principal/modules/turnos/config/security.yml
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/turnos/config/security.yml	2007-02-23 18:46:34 UTC (rev 4287)
+++ prosistem/alba/trunk/alba/apps/principal/modules/turnos/config/security.yml	2007-02-23 20:20:56 UTC (rev 4288)
@@ -1,4 +1,3 @@
-all:
+all:
     is_secure: on
-    credentials: turnos
-    
\ No newline at end of file
+    credentials: turnos
\ No newline at end of file

Modified: prosistem/alba/trunk/alba/apps/principal/modules/turnos/validate/edit.yml
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/turnos/validate/edit.yml	2007-02-23 18:46:34 UTC (rev 4287)
+++ prosistem/alba/trunk/alba/apps/principal/modules/turnos/validate/edit.yml	2007-02-23 20:20:56 UTC (rev 4288)
@@ -1,4 +1,4 @@
-methods:
+methods:
   post:       
     - "turnos{hora_inicio}"
     - "turnos{hora_fin}"
@@ -6,23 +6,17 @@
     
 fillin:
     enabled:       on
-      
 names:
     turnos{hora_inicio}:
         required:     Yes
         required_msg: El campo hora inicio es obligatorio
-
     turnos{hora_fin}:
         required:     Yes
         required_msg: El campo hora fin  es obligatorio
-
-
     turnos{descripcion}:
         required:     Yes
         required_msg: El campo descripci&oacute;n es obligatorio
         validators: caracteresMaximos255
-       
-        
 caracteresMaximos255:
     class:  sfStringValidator
     param:

Modified: prosistem/alba/trunk/alba/apps/principal/templates/layout.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/templates/layout.php	2007-02-23 18:46:34 UTC (rev 4287)
+++ prosistem/alba/trunk/alba/apps/principal/templates/layout.php	2007-02-23 20:20:56 UTC (rev 4288)
@@ -1,13 +1,11 @@
-<?php 
+<?php
 
 if(!isset($vista)){
      $vista="";
 }
-?>
-
-<?php if($vista == "noMuestraMenu"): ?>
-    <?php echo $content; ?>
-<?php else: ?>
+?><?php if($vista == "noMuestraMenu"):
+    echo $content;
+    else: ?>
     <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2000/REC-xhtml1-200000126/DTD/xhtml1-transitional.dtd">
     <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
     <head>
@@ -16,7 +14,7 @@
     <?php echo include_metas() ?>
     <?php echo include_title() ?>
 
-    <link rel="stylesheet" type="text/css" href="<?echo sfContext::getInstance()->getRequest()->getRelativeUrlRoot() . '/js/jsmenu/themes/'.MENU_THEME.'/theme.css' ?>"/>
+    <link rel="stylesheet" type="text/css" href="<?php echo sfContext::getInstance()->getRequest()->getRelativeUrlRoot() . '/js/jsmenu/themes/'.MENU_THEME.'/theme.css' ?>"/>
     <link rel="shortcut icon" href="/favicon.ico" />
 
     <style type="text/css">
@@ -57,9 +55,9 @@
     </head>
     <body>
 
-    <?php if($vista == "imprimir") :?>
-        <?php    echo $content; ?>
-    <?php else: ?>
+<?php if($vista == "imprimir") :?>
+<?php    echo $content; ?>
+<?php else: ?>
         <table width="100%" border="0" cellpadding="0" cellspacing="0">
             <tr valign="top"> 
                 <td colspan="2" class="fmedio">
@@ -156,6 +154,6 @@
         </table>
     <?php endif; ?>
     </body>
-    <?php echo javascript_include_tag('varios/wz_tooltip.js'); ?>
+<?php echo javascript_include_tag('varios/wz_tooltip.js'); ?>
     </html>
 <? endif; ?>
\ No newline at end of file




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