X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Fattendees.html.sh;h=12f12265e9c0f40838a57964a452ab096e58ed08;hp=325ddb4053a4e577a5bca383d859c80c8563e0fd;hb=33a8e0e8967077bb2aa63b4bea706dc61d3e42d8;hpb=4e49d483fd5121fda86a33cf583c15afa6556ad1 diff --git a/templates/attendees.html.sh b/templates/attendees.html.sh index 325ddb4..12f1226 100755 --- a/templates/attendees.html.sh +++ b/templates/attendees.html.sh @@ -1,4 +1,4 @@ -# Copyright 2014 Paul Hänsch +# Copyright 2014 - 2016 Paul Hänsch # # This file is part of Confetti. # @@ -23,58 +23,55 @@ check_order(){ } edit="${_GET[edit]}" +[ \! -f "vcard/$edit" -a \! -f "temp/$edit" ] && edit='' [ -z "${_GET[filtertype]}" ] && _GET[filtertype]="any" [ -z "${_GET[order]}" ] && _GET[order]="firstname" cat < +

$(l10n filter_label)

- +
$(l10n filter_type): - - - - - - - + + + + + + +
$(l10n filter_order): - - - + + +
-
+
+${edit:+$(edit_card "$edit")} + $( -[ -f "vcard/$edit" -o -f "temp/$edit" ] && edit_attendee "$edit" -if [ "$?" = 0 ]; then - listcards |grep -v "$edit" -else - listcards -fi |while read card; do - view_attendee "$card" -done + listcards |grep ${edit:+-v} "$edit" \ + | while read card; do + cat <<-ENDCARD +
+ $(view_card "$card") +
+ ENDCARD + done ) EOF