done)
[h3 $(l10n CATEGORIES) ] $(
grep -xE '[^ ]+' "$_DATA"/mappings/categories |while read -r cat; do
- printf '[label [input type="checkbox" name="attendance" value="%s" %s] %s]' \
+ printf '[label [input type="checkbox" name="CATEGORIES" value="%s" %s] %s]' \
"$(HTML "$cat")" \
"$(seq 1 $(pdi_count "$card" CATEGORIES) |while read c; do
pdi_value "$card" CATEGORIES $c |grep -qxF "$cat" \
update)
if LOCK "$attfile"; then
grep -F " ${card}" "$attfile" |while read course junk; do
- touch "$_DATA/courses/${course}"
+ touch "$_DATA/ical/${course}"
done
- sed -i -r "/^.+ ${card}\$/d" "$attfile"
+ sed -i -E "/^.+ ${card}\$/d" "$attfile"
seq 1 $(POST_COUNT attendance) |while read n; do
printf '%s %s\n' "$(POST attendance $n)" "$card"
done >>"$attfile"
grep -F " ${card}" "$attfile" |while read course junk; do
- touch "$_DATA/courses/${course}"
+ touch "$_DATA/ical/${course}"
done
RELEASE "$attfile"
else