]> git.sur5r.net Git - contagged/commitdiff
Add name to counter
authorJakob Haufe <sur5r@sur5r.net>
Wed, 28 Nov 2012 22:51:00 +0000 (23:51 +0100)
committerJakob Haufe <sur5r@sur5r.net>
Wed, 28 Nov 2012 22:51:00 +0000 (23:51 +0100)
We are going to need several counters. Add a name to the existing one so
we can distinguish them.

templates/entry_edit.tpl

index ddad5dc60c7e868f2d25d932c2885f74effd1d09..ccda0bb404a9b468310eaf9b0fe088315fe83616 100644 (file)
 {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}