File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 12
12
switch ($ field ->type ) {
13
13
case 'email ' :
14
14
$ attrs [] = 'data-parsley-type="email" ' ;
15
+ $ attrs [] = 'data-parsley-type-message=" ' . JText::_ ("MOD_JDSCF_EMAIL_REQUIRED_ERROR " ) . '" ' ;
15
16
break ;
16
17
case 'number ' :
17
18
$ attrs [] = 'data-parsley-type="number" ' ;
Original file line number Diff line number Diff line change 37
37
<p class="jd-simple-contact-description card-subtitle mb-2 text-muted"><?php echo JText::_ ($ description ); ?> </p>
38
38
<?php } ?>
39
39
</div>
40
- <form method="POST" action="<?php echo JURI ::root (); ?> index.php?option=com_ajax&module=jdsimplecontactform&format=json&method=submit" data-parsley-type-message=" <?php echo JText:: _ ( " MOD_JDSCF_EMAIL_REQUIRED_ERROR " ); ?> " data-parsley- validate data-parsley-errors-wrapper="<ul class='text-danger list-unstyled mt-2 small'></ul>" data-parsley-error-class="border-danger" data-parsley-success-class="border-success" id="simple-contact-form-<?php echo $ module ->id ; ?> " enctype="multipart/form-data">
40
+ <form method="POST" action="<?php echo JURI ::root (); ?> index.php?option=com_ajax&module=jdsimplecontactform&format=json&method=submit" data-parsley-validate data-parsley-errors-wrapper="<ul class='text-danger list-unstyled mt-2 small'></ul>" data-parsley-error-class="border-danger" data-parsley-success-class="border-success" id="simple-contact-form-<?php echo $ module ->id ; ?> " enctype="multipart/form-data">
41
41
<div class="jdscf-row">
42
42
<?php
43
43
ModJDSimpleContactFormHelper::renderForm ($ params , $ module );
You can’t perform that action at this time.
0 commit comments