Ignore:
Timestamp:
Sep 16, 2012, 5:20:39 PM (12 years ago)
Author:
mistic100
Message:
  • stores emails in database (/!\ update only from published version, not from trunk)
  • allow emails to be categorized
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/ContactForm/template/contact_form.tpl

    r17498 r17945  
    1212email.add(Validate.Presence, {ldelim} failureMessage: "{'Please enter an e-mail'|@translate}" });
    1313email.add(Validate.Email, {ldelim} failureMessage: "{'mail address must be like xxx@yyy.eee (example : jack@altern.org)'|@translate}" });
     14{/if}
     15
     16{if $GROUPS}
     17var group = new LiveValidation('group', {ldelim} onlyOnSubmit: true })
     18group.add(Validate.Exclusion, {ldelim} within: ['-1'], failureMessage: "{'Please choose a category'|@translate}" });
    1419{/if}
    1520
     
    7580        </td>
    7681      </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}
    7793      <tr>
    7894        <td class="title"><label for="subject">{'Subject'|@translate}</label></td>
Note: See TracChangeset for help on using the changeset viewer.