{ w_filter_diag
printf '
[form class="newcard" action="/cards/new_card.sh" method="POST"
- [a href="#top" . %s]
[button type="submit" %s]
- ]' "$(l10n top)" "$(l10n newcard)"
+ [a href="#top" . %s]
+ ]' "$(l10n newcard)" "$(l10n page_top)"
[ "$edit" ] && edit_card "$edit"
list_cards
} | yield_page cards #/cards/cards.css
edit_addfieldtext) printf %s "Neues Feld";;
edit_addfield) printf %s "+";;
edit_deletefield) printf %s "X";;
+ page_top) printf %s "⬆ Seitenanfang";;
filter_label) printf %s "Filter";;
filter_item) printf %s "Eingrenzung nach";;
body.courses form .order { display: inline-block; margin-right: 2em;}
-body.cards form.newcard { display: flex; }
+body.cards form.newcard {
+ position: sticky;
+ top: 0;
+ background-color: #FFF;
+ z-index: 2;
+}
body.cards form.newcard input[name=seed] { flex: 1; }
+body.cards form.newcard a[href="#top"] { float: right; }
/* ============ LIST ITEMS, Generic ============= */