We are going to need several counters. Add a name to the existing one so
we can distinguish them.
{if $fields._mail}
{foreach from=$entry.mail|smarty:nodefaults item=mail}
<tr>
- <th>{$lang.mail} {counter}:</th>
+ <th>{$lang.mail} {counter name=mail}:</th>
<td><input type="text" class="input" name="entry[mail][]" value="{$mail}" /></td>
</tr>
{/foreach}
<tr>
- <th>{$lang.mail} {counter}:</th>
+ <th>{$lang.mail} {counter name=mail}:</th>
<td><input type="text" class="input" name="entry[mail][]" value="" /></td>
</tr>
<tr>
- <th>{$lang.mail} {counter}:</th>
+ <th>{$lang.mail} {counter name=mail}:</th>
<td><input type="text" class="input" name="entry[mail][]" value="" /></td>
</tr>
{/if}