[Alba-desarrollo] SVN Alba r4591 - in
prosistem/alba/trunk/alba/apps/principal/modules/evento: .
templates validate
commits en pressenter.com.ar
commits en pressenter.com.ar
Lun Abr 30 21:34:43 CEST 2007
Author: josx
Date: 2007-04-30 16:34:36 -0300 (Mon, 30 Apr 2007)
New Revision: 4591
Added:
prosistem/alba/trunk/alba/apps/principal/modules/evento/validate/
prosistem/alba/trunk/alba/apps/principal/modules/evento/validate/edit.yml
Modified:
prosistem/alba/trunk/alba/apps/principal/modules/evento/templates/editSuccess.php
Log:
Validacion para el modulo evento
Modified: prosistem/alba/trunk/alba/apps/principal/modules/evento/templates/editSuccess.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/evento/templates/editSuccess.php 2007-04-30 18:08:59 UTC (rev 4590)
+++ prosistem/alba/trunk/alba/apps/principal/modules/evento/templates/editSuccess.php 2007-04-30 19:34:36 UTC (rev 4591)
@@ -1,6 +1,6 @@
<?php
- use_helper('I18N','Object');
+ use_helper('I18N','Object','Validation');
$hora_fin = "";
$hora_inicio = "";
$seleccion_4 = true;
Added: prosistem/alba/trunk/alba/apps/principal/modules/evento/validate/edit.yml
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/evento/validate/edit.yml 2007-04-30 18:08:59 UTC (rev 4590)
+++ prosistem/alba/trunk/alba/apps/principal/modules/evento/validate/edit.yml 2007-04-30 19:34:36 UTC (rev 4591)
@@ -0,0 +1,31 @@
+methods:
+ post:
+ - "evento{titulo}"
+ - "evento{fecha_inicio}"
+ - "evento{fecha_fin}"
+
+fillin:
+ enabled: on
+
+names:
+
+ evento{titulo}:
+ required: Yes
+ required_msg: El campo descripción es obligatorio
+ validators: caracteresMaximos255
+
+ evento{fecha_inicio}:
+ required: Yes
+ required_msg: El campo fecha inicio es obligatorio
+
+ evento{fecha_fin}:
+ required: Yes
+ required_msg: El campo fecha inicio es obligatorio
+
+
+
+caracteresMaximos255:
+ class: sfStringValidator
+ param:
+ max: 255
+ max_error: La maxima cantidad de caracteres permitida es de 255
Property changes on: prosistem/alba/trunk/alba/apps/principal/modules/evento/validate/edit.yml
___________________________________________________________________
Name: svn:keywords
+ "Id Author URL Date Rev"
Más información sobre la lista de distribución Alba-desarrollo