4 local id="$1" address iban bic
6 && read -r address iban bic <"senders/$id"
8 iban="$(UNSTRING "${iban#iban=}")"
9 bic="$(UNSTRING "${bic#bic=}")"
11 [ "${address#address=}" ] \
12 && address="$(UNSTRING "${address#address=}")" \
24 [form method="POST" action="/update_sender"
26 <textarea name="address" placeholder="address">%s</textarea>
27 [label IBAN:][input name=iban value="%s" placeholder=IBAN]
28 [label BIC:][input name=bic value="%s" placeholder=BIC]
29 [submit "update" "%s" Update]
31 "$(HTML $id)" "$(HTML "${address}")" \
32 "$(HTML "${iban}")" "$(HTML "${bic}")" \
33 "$(transid "senders/$id")"
37 [ -d senders/ ] && for s in senders/*; do
38 read -r address iban bic <"$s"
40 [ "${address#address=}" ] \
41 && address="$(UNSTRING "${address#address=}")" \
42 || address="(no address)"
44 printf '[div .sender .address <!--
45 -->%s[a href="/senders/%s" Edit]]
46 ' "$(HTML "$address")" "$(HTML "${s#senders/}")"
51 id="$(POST id |checkid)"
52 if [ "$(POST update)" = "$(transid "senders/$id")" ]; then
54 printf 'address=%s iban=%s bic=%s\n' \
55 $(POST address |STRING) $(POST iban |STRING) \
56 $(POST bic |STRING) >"senders/$id"
60 git commit -m 'Update sender info for "'"$(POST address |sed 1q)"'"' -- "senders/$id"
65 REDIRECT "/senders/$id"