n_pre="$(echo "$values[N]" |sed -rn 's:^([^;]*;){3} *([^;]*).*$:\2:p')"
n_post="$(echo "$values[N]" |sed -rn 's:^([^;]*;){4} *([^;]*)*$:\2:p')"
-SUP_FIELDS=(N NICKNAME GENDER BDAY EMAIL TEL IMPP ADR URL NOTE)
+SUP_FIELDS=(N NICKNAME GENDER BDAY X-ZACK-JOINDATE X-ZACK-LEAVEDATE EMAIL TEL IMPP ADR URL NOTE)
[ -z "$values[UID]" ] && values[UID]="$(dbus-uuidgen)"
echo ' <input class="item N" name="2N" placeholder="'$(l10n n_middle)'" value="'$n_middle'" />'
echo ' <input class="item N" name="0N" placeholder="'$(l10n n_last)'" value="'$n_last'" />'
echo ' <input class="item N" name="4N" placeholder="'$(l10n n_post)'" value="'$n_post'" />'
-if [ -n "$values[GENDER]" ]; then
- echo ' <select class="item GENDER" name="GENDER">'
- echo ' <option value="" disabled="disabled">'$(l10n GENDER)'</option>'
- echo ' <option value="female" '$(check_gen female)'>'$(l10n gender_female)'</option>'
- echo ' <option value="male" '$(check_gen male)'>'$(l10n gender_male)'</option>'
- echo ' <option value="other" '$(check_gen other)'>'$(l10n gender_other)'</option>'
- echo ' <option value="none" '$(check_gen none)'>'$(l10n gender_none)'</option>'
- echo ' </select>'
-fi
+
+echo ' <select class="item GENDER" name="GENDER">'
+echo ' <option value="" disabled="disabled">'$(l10n GENDER)'</option>'
+echo ' <option value="female" '$(check_gen female)'>'$(l10n gender_female)'</option>'
+echo ' <option value="male" '$(check_gen male)'>'$(l10n gender_male)'</option>'
+echo ' <option value="other" '$(check_gen other)'>'$(l10n gender_other)'</option>'
+echo ' <option value="none" '$(check_gen none)'>'$(l10n gender_none)'</option>'
+echo ' </select>'
+
for n in NICKNAME NICKNAME{0..10}; do [ -n "$values[$n]" ] &&\
echo ' <input class="item NICKNAME" name="NICKNAME" placeholder="'$(l10n NICKNAME)'" value="'$values[$n]'" />'
done
-if [ -n "$values[BDAY]" ]; then
- echo ' <span class="sectitle">'$(l10n BDAY)'</span>'
- echo ' <input class="item BDAY" name="BDAY" value="'$values[BDAY]'" />'
+
+echo ' <span class="sectitle">'$(l10n BDAY)'</span>'
+echo ' <input class="item BDAY" name="BDAY" value="'$values[BDAY]'" />'
+
+echo ' <span class="sectitle">'$(l10n X-ZACK-JOINDATE)'</span>'
+echo ' <input class="item X-ZACK-LEAVEDATE" name="X-ZACK-JOINDATE" value="'$values[X-ZACK-JOINDATE]'" />'
+if [ -n "$values[X-ZACK-LEAVEDATE]" ]; then
+ echo ' <span class="sectitle">'$(l10n X-ZACK-LEAVEDATE)'</span>'
+ echo ' <input class="item X-ZACK-LEAVEDATE" name="X-ZACK-LEAVEDATE" value="'$values[X-ZACK-LEAVEDATE]'" />'
fi
+
if [ -n "$values[SOUND]" ]; then
echo ' <audio controls="controls" class="item SOUND">'
echo ' <source type="audio/ogg" src="data:audio/ogg;base64,'$values[SOUND]'" />'
echo ''
echo ' <div class="section phone">'
echo ' <span class="sectitle">'$(l10n TEL)'</span>'
-for n in TEL TEL{0..10}; do [ -n "$values[$n]" ] &&\
+ echo ' <input class="item TEL" name="TEL" value="'$values[TEL]'" />'
+for n in TEL{0..10}; do [ -n "$values[$n]" ] &&\
echo ' <input class="item TEL" name="TEL" value="'$values[$n]'" />'
done
echo ' </div>'
echo ''
echo ' <div class="section message">'
echo ' <span class="sectitle">'$(l10n EMAIL)'</span>'
-for n in EMAIL EMAIL{0..10}; do [ -n "$values[$n]" ] &&\
+ echo ' <input class="item EMAIL" name="EMAIL" value="'$values[EMAIL]'" />'
+for n in EMAIL{0..10}; do [ -n "$values[$n]" ] &&\
echo ' <input class="item EMAIL" name="EMAIL" value="'$values[$n]'" />'
done
[ -n "$values[IMPP]" ] && \
echo ''
echo ' <div class="section address">'
echo ' <span class="sectitle">'$(l10n ADR)'</span>'
-for n in ADR ADR{0..10}; do [ -n "$values[$n]" ] &&\
+echo ' <textarea class="item ADR" name="ADR">'$values[ADR]'</textarea>'
+for n in ADR{0..10}; do [ -n "$values[$n]" ] &&\
echo ' <textarea class="item ADR" name="ADR">'$values[$n]'</textarea>'
done
[ -n "$values[URL]" ] && \
echo ''
echo ' <div class="section note">'
echo ' <span class="sectitle">'$(l10n NOTE)'</span>'
-for n in NOTE NOTE{0..10}; do [ -n "$values[$n]" ] &&\
+echo ' <textarea class="item NOTE" name="NOTE">'$values[NOTE]'</textarea>'
+for n in NOTE{0..10}; do [ -n "$values[$n]" ] &&\
echo ' <textarea class="item NOTE" name="NOTE">'$values[$n]'</textarea>'
done
echo ' </div>'