]> git.plutz.net Git - lobster/commitdiff
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 61b059d44c653f08c32f6bd62ac0c43e94bb2139..ed51dde51fdec9ef839c9f41983b2097fba5e707 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>}