From: paul Date: Fri, 6 Dec 2013 18:02:58 +0000 (+0000) Subject: recording of attendees gender X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=16dfa142456ee86034dadd5ed91d52bcbdcbf314;p=confetti recording of attendees gender svn path=/trunk/; revision=37 --- diff --git a/templates/edit_attendee.sh b/templates/edit_attendee.sh index 357e2bf..3fd109a 100755 --- a/templates/edit_attendee.sh +++ b/templates/edit_attendee.sh @@ -1,5 +1,5 @@ check_gen() { - [ "$value[GENDER]" = "$1" ] && echo 'selected="selected"' + [ "$values[GENDER]" = "$1" ] && echo 'selected="selected"' } check_a() { egrep -q "^${1}.${id}$" "$_DATA/mappings/attendance" && echo 'checked="checked"' @@ -25,13 +25,13 @@ echo ' ' echo ' ' echo ' ' -if [ -n "$value[GENDER]" ]; then - echo '
' - echo ' ' echo ' ' - echo ' ' - echo ' ' - echo ' ' + echo ' ' + echo ' ' + echo ' ' + echo ' ' echo ' ' fi for n in NICKNAME NICKNAME{0..10}; do [ -n "$values[$n]" ] &&\ diff --git a/templates/text_attendee.sh b/templates/text_attendee.sh index 132cc42..57ad3f6 100755 --- a/templates/text_attendee.sh +++ b/templates/text_attendee.sh @@ -78,6 +78,11 @@ item_name[filter_cancel]="Filter löschen" item_name[newcard]="Neuen Eintrag anlegen" item_name[course_attendance]="Kursteilnahme" +item_name[gender_none]="keine Angabe" +item_name[gender_female]="Weiblich" +item_name[gender_male]="Männlich" +item_name[gender_other]="Sonstiges" + l10n() { [ -n "$item_name[$1]" ] && echo -n "$item_name[$1]" || echo -n "$1" }