X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=cards%2Findex.cgi;h=934c19ac3bf2499b3aee9adf0440188739a6e3f2;hp=f1306f6aeb0ed05f395a2580fed9fe2f85b62a7e;hb=3ea5e66a2f2cac72cfde653f56330370e0b170de;hpb=de8d4cf5570142a647bfe81f13fa87a73802e4e8 diff --git a/cards/index.cgi b/cards/index.cgi index f1306f6..934c19a 100755 --- a/cards/index.cgi +++ b/cards/index.cgi @@ -1,17 +1,10 @@ #!/bin/sh -if [ "$_PATH" = "/cards/cards.css" ]; then - . $_EXEC/cgilite/file.sh - FILE $_EXEC/cards/cards.css - return 0 -fi - . $_EXEC/pdiread.sh . $_EXEC/cards/l10n.sh . $_EXEC/cards/widgets.sh . $_EXEC/cards/list.sh -unescape() { [ $# = 0 ] && sed -E 's;\\(.);\1;g' || printf %s "$*" |sed -E 's;\\(.);\1;g'; } upcase=' y;abcdefghijklmnopqrstuvwxyzäöüé;ABCDEFGHIJKLMNOPQRSTUVWXYZÄÖÜÉ;; ' filter="$(GET f)" @@ -25,8 +18,8 @@ edit="${edit##*/}" printf ' [form class="newcard" action="/cards/new_card.sh" method="POST" [button type="submit" %s] - ]' "$(l10n newcard)" - + [input name="seed" placeholder="%s"] + ]' "$(l10n newcard)" "$(l10n vcf_seed_label)" [ "$edit" ] && edit_card "$edit" list_cards -} | yield_page cards /cards/cards.css +} | yield_page cards #/cards/cards.css