have one email field by default
[confetti] / 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)
     $(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>}
       printf "${values[$n]:+<input class="item EMAIL" name="EMAIL" value="$values[$n]" />}"
     done)
     ${values[IMPP]:+<h3>$(l10n IMPP)</h3>}