X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/15c32314cf6a6eadf7d2d24ff2827c3db9bd8950..21fe94badb18ad1c99efb2649340ac9864e41122:/lib/MECON/HTML/QuickFormSimple.php?ds=inline 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.'); }