X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ffooter.html;h=7f2c50ee65e8b20fdf467469b3284562cc87abd3;hb=c67b4a1ea56e0de5787b3200055e53593275e5fa;hp=32d1219961d3d72f82dca3a465701d0b8cef9d93;hpb=40a7b3dc653e099f7bd0bd762b649b04c4432db2;p=freeside.git diff --git a/httemplate/elements/footer.html b/httemplate/elements/footer.html index 32d121996..7f2c50ee6 100644 --- a/httemplate/elements/footer.html +++ b/httemplate/elements/footer.html @@ -1,5 +1,57 @@ + <%doc> + +Example: + + <& /elements/footer.html, + 'formname' => { #actual name of the form you want validated + 'name' => # name of the form + 'errormessage' => # js error message to display + 'fieldname' => # fieldname is actual name of field to be validated and value is type of validation + # validation types are required, valid_email, min_length(min_length[5]), max_length(max_length[7]), + # exact_length(exact_length[6]), greater_than(greater_than[4]), less_than(less_than[6]), + # alpha, alpha_numeric, numeric, valid_ip, is_file_type(is_file_type[gif,png,jpg]) + } + + &> + + + +% if ($opt{'formvalidation'}) { +% my $form_validation = $opt{'formvalidation'}; +% foreach my $name (sort keys $form_validation) { +% my $form = $form_validation->{$name}; + +% } +% } + + +<%init> + +my(%opt) = @_; + + \ No newline at end of file