X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=cards%2Findex.cgi;h=2c9f267e1f6e0345164df1c674fac6b36338c724;hp=90be142e631be5632667aaa10cc0d28e24a8fabc;hb=HEAD;hpb=521f8b855c2aed5e229779ba40a0e62078e61988 diff --git a/cards/index.cgi b/cards/index.cgi index 90be142..5babc9f 100755 --- a/cards/index.cgi +++ b/cards/index.cgi @@ -1,18 +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 -upcase=' y;abcdefghijklmnopqrstuvwxyzäöüé;ABCDEFGHIJKLMNOPQRSTUVWXYZÄÖÜÉ;; ' - filter="$(GET f)" order="$(GET o)" edit="$(GET e |PATH)" @@ -22,10 +14,10 @@ edit="${edit##*/}" { w_filter_diag printf ' - [form class="newcard" action="/cards/new_card.sh" method="POST" + [form class="newcard" action="%s/cards/new_card.sh" method="POST" [button type="submit" %s] - ]' "$(l10n newcard)" - + [input name="seed" placeholder="%s"] + ]' "${_BASE}" "$(l10n newcard)" "$(l10n vcf_seed_label)" [ "$edit" ] && edit_card "$edit" list_cards -} | yield_page cards /cards/cards.css +} | yield_page cards #/cards/cards.css