Changeset 17945 for extensions/ContactForm/template/contact_form.tpl
- Timestamp:
- Sep 16, 2012, 5:20:39 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/ContactForm/template/contact_form.tpl
r17498 r17945 12 12 email.add(Validate.Presence, {ldelim} failureMessage: "{'Please enter an e-mail'|@translate}" }); 13 13 email.add(Validate.Email, {ldelim} failureMessage: "{'mail address must be like xxx@yyy.eee (example : jack@altern.org)'|@translate}" }); 14 {/if} 15 16 {if $GROUPS} 17 var group = new LiveValidation('group', {ldelim} onlyOnSubmit: true }) 18 group.add(Validate.Exclusion, {ldelim} within: ['-1'], failureMessage: "{'Please choose a category'|@translate}" }); 14 19 {/if} 15 20 … … 75 80 </td> 76 81 </tr> 82 {if $GROUPS} 83 <tr> 84 <td class="title"><label for="group">{'Category'|@translate}</label></td> 85 <td> 86 <select name="group" id="group"> 87 <option value="-1">------------</option> 88 {html_options options=$GROUPS selected=$contact.group} 89 </select> 90 </td> 91 </tr> 92 {/if} 77 93 <tr> 78 94 <td class="title"><label for="subject">{'Subject'|@translate}</label></td>
Note: See TracChangeset
for help on using the changeset viewer.