have one email field by default
authorpaul <paul@plutz.net>
Wed, 27 Jul 2016 09:23:16 +0000 (09:23 +0000)
committerpaul <paul@plutz.net>
Wed, 27 Jul 2016 09:23:16 +0000 (09:23 +0000)
svn path=/trunk/; revision=130

templates/edit_client.sh

index 61b059d..ed51dde 100755 (executable)
@@ -107,8 +107,10 @@ cat <<END_HTML
     $(for n in TEL{0..10}; do
       printf "${values[$n]:+$(teltype "${tags[$n_TYPE]}")<input class="item TEL" name="TEL" value="'$values[$n]'" />}"
     done)
-    ${values[EMAIL]:+<h3>$(l10n EMAIL)</h3>}
-    $(for n in EMAIL EMAIL{0..10}; do
+
+    <h3>$(l10n EMAIL)</h3>
+    <input class="item EMAIL" name="EMAIL" value="$values[EMAIL]" />
+    $(for n in EMAIL{0..10}; do
       printf "${values[$n]:+<input class="item EMAIL" name="EMAIL" value="$values[$n]" />}"
     done)
     ${values[IMPP]:+<h3>$(l10n IMPP)</h3>}