X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Fattendees.html.sh;h=c97bc463e7c13183759c0d06c123be44a173a57c;hp=a4e6b52e09db67374d0199c71fb83786e9dc12da;hb=15f8fb79643d8e76e836b673ea339cb805b3e3fc;hpb=e308373633b80056507ee9cedc5c9b7fc3a00dca diff --git a/templates/attendees.html.sh b/templates/attendees.html.sh index a4e6b52..c97bc46 100644 --- a/templates/attendees.html.sh +++ b/templates/attendees.html.sh @@ -1,4 +1,6 @@ +. ${_EXEC}/templates/text_attendee.sh . ${_EXEC}/templates/view_attendee.sh +. ${_EXEC}/templates/edit_attendee.sh check(){ [ "$_GET[\"filtertype\"]" = "$1" ] && echo 'checked="checked"' @@ -11,15 +13,15 @@ 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)
+ + @@ -34,18 +36,28 @@ cat <
- $(listcards |while read card; do - id="vcf_$card" - echo '
' - if [ "$_GET[\"edit\"]" = "$id" ]; then - debug "Edit: $card" - edit_attendee "$card" - else - echo '

Bearbeiten

' - view_attendee "$card" - fi - 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