[input type="text" name="filter_text$n" value="$([ "$1" = CATEGORIES -o "$1" = course ] || HTML "$2")" placeholder="$(l10n filter_placeholder)"]
[fieldset .categories
$(list_categories | while read cat; do
- printf '[label [checkbox "filter_cat%i" "|%s" %s] %s ]' \
+ printf '[label [checkbox "filter_cat%i" "|%s" %s] %s ] ' \
"$n" "$(HTML "$cat")" \
"$(printf %s "$cat" |grep -qxEe "$2" && printf checked )" \
"$(HTML "$cat")"
]
[fieldset .courses
$(for course in "$_DATA/ical"/*.ics; do
- printf '[label [checkbox "filter_course%i" "|%s" %s] %s ]' \
+ printf '[label [checkbox "filter_course%i" "|%s" %s] %s ] ' \
"$n" "$(HTML "${course##*/}")" \
"$(printf %s "${course##*/}" |grep -qxEe "$2" && printf checked )" \
"$(pdi_value "$(pdi_load "$course")" SUMMARY |HTML)"