X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Fattendees.html.sh;h=92e4d91ab4d053fbc94c9368f5db3a7d6e69bce8;hp=002db6329ef449610b75171429d42050a9c5ce0d;hb=737e7f91162ec98b99dd2796ca26dd95e8c21f49;hpb=28a2c1efac4c9bb93a57f09a387f5991e0c7573c diff --git a/templates/attendees.html.sh b/templates/attendees.html.sh index 002db63..92e4d91 100644 --- a/templates/attendees.html.sh +++ b/templates/attendees.html.sh @@ -1,4 +1,10 @@ +. ${_EXEC}/templates/text_attendee.sh . ${_EXEC}/templates/view_attendee.sh +. ${_EXEC}/templates/edit_attendee.sh + +check(){ + [ "$_GET[\"filtertype\"]" = "$1" ] && echo 'checked="checked"' +} cat < @@ -6,16 +12,16 @@ cat < Filter: - - Alles - Name - Straße - PLZ. - Telefon - Geburtsjahr - Kurs - - +
+ $(l10n filter_all) + $(l10n filter_name) + $(l10n filter_street) + $(l10n filter_zip) + $(l10n filter_phone) + $(l10n filter_birthyear) + $(l10n filter_course)
+ + @@ -30,11 +36,32 @@ cat <
- $(listcards |while read card; do - echo '
' - view_attendee "$card" - echo '
' - done) +$(listcards |while read card; do + id="vcf_$card" + if [ "$_GET[\"edit\"]" = "$id" ]; then cat < +
+ + $(edit_attendee "$card") +
+ +
+
+
+
+x_EOF + debug "Edit: $card" + else cat < +

$(l10n edit)

+ $(view_attendee "$card") + +x_EOF + fi +done) EOF