done
printf ' ]'
printf '
- [form .ledgers action="%s/ledgers/delete.sh" method=POST
+ [form .ibanassign action="%s/ledgers/iban_assign.sh" method=POST
[input type=hidden name=session_id value="%s"]
[h3 . %s]
' "${_BASE}" "$SESSION_ID" "$(l10n "IBAN Assignments")"
:
elif [ $state = guess ]; then
record="$(UNSTRING "${data%% *}")"
+ cards="${data#* }"
principal="${record#* * * }" principal="${principal%% *}"
subject="${record#* * * * }" subject="${subject%% *}"
amount="${record#* * * * * }" amount="${amount%% *}"
printf '[p .principal . %s][p .amount %s][p .subject . %s]' \
"$(UNSTRING "$principal" |HTML)" "$(credit "$amount")" "$(UNSTRING "$subject" |HTML)"
+ printf '[h4 . %s]' "$(l10n Guesses)"
+ for card in $cards; do
+ uid="${card%%/*}" name="$(UNSTRING "${card#*/}")"
+ printf '[input .card key="cardfn" value="%s" placeholder="%s"]' "$(HTML "${name}")" "$(l10n attendent)"
+ done
elif [ $state = unknown ]; then
principal="${data#* * * }" principal="${principal%% *}"
subject="${data#* * * * }" subject="${subject%% *}"
display: inline-block;
}
+form.ibanassign,
form.ledgers {
padding: .125em 1em 0 1em;
}
-.ledgers fieldset.iban.sure { background-color: #DFD; }
-.ledgers fieldset.iban.guess { background-color: #FFD; }
-.ledgers fieldset.iban.unknown { background-color: #FDD; }
+.ibanassign fieldset.iban.sure { background-color: #DFD; }
+.ibanassign fieldset.iban.guess { background-color: #FFD; }
+.ibanassign fieldset.iban.unknown { background-color: #FDD; }
-.ledgers fieldset.iban {
+.ibanassign fieldset.iban {
padding: 0 .75em;
margin-top: -.5em;
box-shadow: .25em .25em .25em #AAA;
}
-.ledgers fieldset.iban legend {
+.ibanassign fieldset.iban legend {
top: .75em;
}
-.ledgers fieldset.iban p.principal {
+.ibanassign fieldset.iban p.principal {
font-size: .875em;
}
-.ledgers fieldset.iban p.amount,
-.ledgers fieldset.iban p.subject {
+.ibanassign fieldset.iban p.amount,
+.ibanassign fieldset.iban p.subject {
display: inline-block;
vertical-align: top;
}
-.ledgers fieldset.iban p.amount {
+.ibanassign fieldset.iban p.amount {
font-weight: bold;
+ margin-right: .75em;
}