for n in COMMENT COMMENT{0..10}; do [ -n "$values[$n]" ] &&\
echo ' <textarea class="item COMMENT" name="COMMENT">'$values[$n]'</textarea>'
done
-echo ' </div>'
-echo ' <div class="section dtstart">'
+echo ' </div><div class="section dtstart">'
echo ' <h3>'$(l10n DTSTART)'</h3>'
echo ' <select class="DTSYEAR" name="DTSYEAR" onchange="this.form.submit();">'
for y in {$(($dts_year - 50))..$(($dts_year + 50))}; do
echo ' <option value="'$m'" '$([ "$m" -eq "$dts_month" ] && echo 'selected="selected"')'>'$(date -d ${dts_year}-${m}-1 +%B)'</option>'
done
echo ' </select>'
-echo ' <button class="DTS" type="submit" name="DTS" value="update">'$(l10n edit_dtscal)'</button>'
+echo ' <button class="DTS" type="submit" name="DTS" value="update">'$(l10n edit_dtscal)'</button><br/>'
for wd in mon tue wed thu fri sat sun; do
echo -n '<span class="DTSCALHEAD">'$(date -d $wd +%a)'</span>'
done
echo ' <option value="'$m'" '$([ "$m" -eq "$dts_min" ] && echo 'selected="selected"')'>'$m'</option>'
done
echo ' </select>'
-echo ' </div>'
-echo ' <div class="section recur">'
+echo ' </div><div class="section recur">'
echo ' <h3>'$(l10n RRULE)'</h3>'
echo ' <span class="item">'
echo ' '$(l10n t_every)''
echo ' <option value="'$ud'" '$([ "$ud" = "$rr_uday" ] && echo 'selected="selected"')'>'$ud'</option>'
done
echo ' </select></span>'
-echo ' </div>'
-echo ' <div class="section select_attendance">'
+echo ' </div><div class="section select_attendance">'
echo ' <h3>'$(l10n course_attendance)'</h3>'
listcards |while read card; do
cfile="$_DATA/vcard/$card"
selected=$(sed -rn "/^$id\t$card\$/{s;^.*\$;checked=\"checked\";p;q}" "${_DATA}/mappings/attendance")
echo ' <label><input type="checkbox" class="item" name="attendance" value="'$card'" '$selected'>'$aname'</label>'
done
-echo ' </div>'
-echo ' <div class="control">'
+echo ' </div><div class="control">'
echo ' <select class="item" name="newfield">'
echo ' <option value="" disabled="disabled" selected="selected">'$(l10n edit_addfieldtext)'</option>'
for f in $SUP_FIELDS; do echo "<option value=\"$f\">$(l10n $f)</option>"; done