X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=templates%2Fedit_attendee.sh;h=d3758e1df88bc2e9adf61aab32f4f7eb3bfe7801;hb=c22f240e5cef28ddb31e43b7138fe3ecf659d208;hp=3fd109afaff844bef2cbc62218595036b6072d81;hpb=16dfa142456ee86034dadd5ed91d52bcbdcbf314;p=lobster
diff --git a/templates/edit_attendee.sh b/templates/edit_attendee.sh
index 3fd109a..d3758e1 100755
--- a/templates/edit_attendee.sh
+++ b/templates/edit_attendee.sh
@@ -1,3 +1,20 @@
+# Copyright 2014 Paul Hänsch
+#
+# This file is part of Confetti.
+#
+# Confetti is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# Confetti is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with Confetti. If not, see .
+
check_gen() {
[ "$values[GENDER]" = "$1" ] && echo 'selected="selected"'
}
@@ -11,7 +28,7 @@ n_middle="$(echo "$values[N]" |sed -rn 's:^([^;]*;){2} *([^;]*).*$:\2:p')"
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)"
@@ -25,22 +42,29 @@ echo ' '
echo ' '
echo ' '
-if [ -n "$values[GENDER]" ]; then
- echo ' '
-fi
+
+echo ' '
+
for n in NICKNAME NICKNAME{0..10}; do [ -n "$values[$n]" ] &&\
echo ' '
done
-if [ -n "$values[BDAY]" ]; then
- echo ' '$(l10n BDAY)''
- echo ' '
+
+echo ' '$(l10n BDAY)''
+echo ' '
+
+echo ' '$(l10n X-ZACK-JOINDATE)''
+echo ' '
+if [ -n "$values[X-ZACK-LEAVEDATE]" ]; then
+ echo ' '$(l10n X-ZACK-LEAVEDATE)''
+ echo ' '
fi
+
if [ -n "$values[SOUND]" ]; then
echo '