X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Fattendees.html.sh;h=a237d3eea8ea85da6896762878eb6734025402f6;hp=c481c61c9077f24fc40661286e87da344ae9d2f8;hb=8b887633d34fe136ffba19a29290ec095c310331;hpb=71195981a9ea7cc2a050c52f4247609e67d1dbf5 diff --git a/templates/attendees.html.sh b/templates/attendees.html.sh index c481c61..a237d3e 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,11 +36,23 @@ cat <
- $(listcards |while read card; do - echo '
' - view_attendee "$card" - echo '
' - done) +$(listcards |while read card; do + id="$(basename "$card")" + if [ "$_GET[\"edit\"]" = "$id" ]; then cat < +
+ + $(edit_attendee "$id") +
+
+x_EOF + else cat < + $(view_attendee "$id") + +x_EOF + fi +done) EOF