]> git.plutz.net Git - confetti/blob - cards/index.cgi
process split fields as arrays
[confetti] / cards / index.cgi
1 #!/bin/sh
2
3 . $_EXEC/pdiread.sh
4 . $_EXEC/cards/l10n.sh
5 . $_EXEC/cards/widgets.sh
6 . $_EXEC/cards/list.sh
7
8 filter="$(GET f)"
9 order="$(GET o)"
10 edit="$(GET e |PATH)"
11
12 [ "$order" ] || order=firstname
13 edit="${edit##*/}"
14
15 { w_filter_diag
16   printf '
17   [form class="newcard" action="%s/cards/new_card.sh" method="POST"
18     [button type="submit" %s]
19     [input name="seed" placeholder="%s"]
20   ]' "${_BASE}" "$(l10n newcard)" "$(l10n vcf_seed_label)"
21   [ "$edit" ] && edit_card "$edit"
22   list_cards
23 } | yield_page cards #/cards/cards.css