X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/15c32314cf6a6eadf7d2d24ff2827c3db9bd8950..fe7e792266c5fe68f6e2cc70898eb45ef8e8424d:/lib/MECON/HTML/QuickFormSimple.php?ds=sidebyside diff --git a/lib/MECON/HTML/QuickFormSimple.php b/lib/MECON/HTML/QuickFormSimple.php index fb94486..f5ab77b 100644 --- a/lib/MECON/HTML/QuickFormSimple.php +++ b/lib/MECON/HTML/QuickFormSimple.php @@ -34,8 +34,9 @@ class MECON_HTML_QuickFormSimple extends HTML_QuickForm { function MECON_HTML_QuickFormSimple($formName='', $method='post', $action='', $target='_self', $attributes=null) { parent::HTML_QuickForm($formName, $method, $action, $target, $attributes); - $this->registerElementType('mdate', 'MECON/HTML/QuickForm/mdate.php', 'HTML_QuickForm_mdate'); - $this->registerRule('fecha', 'function', 'validate', 'HTML_QuickForm_mdate'); + $this->registerElementType('mdate', 'MECON/HTML/QuickForm/mdate.php', 'MECON_HTML_QuickForm_mdate'); + $this->registerRule('fecha', 'function', 'validate', 'MECON_HTML_QuickForm_mdate'); + $this->registerElementType('caritas', 'MECON/HTML/QuickForm/caritas.php', 'MECON_HTML_QuickForm_caritas'); $this->setRequiredNote('* indica un campo obligatorio'); $this->setJsWarnings('Hay errores en el formulario:', 'Por favor corríjalos antes de continuar.'); }