use native radio and check buttons, do not break line between input and label
[confetti] / templates / edit_attendee.sh
index 4513a3d..49d4666 100755 (executable)
@@ -118,8 +118,7 @@ cat <<END_HTML
     <h3>$(l10n course_attendance)</h3>
     $(listcourses |while read each; do
       cname="$(sed -rn 's:^SUMMARY\:(.*)$:\1:p' "$_DATA/ical/$each")"
-      echo '<input type="checkbox" name="attendance" value="'$each'" id="cbatt_'$each'" '$(check_a "$each")'/
-            ><label for="cbatt_'$each'">'$cname'</label>'
+      echo '<label><input type="checkbox" name="attendance" value="'$each'" '$(check_a "$each")'/>'$cname'</label>'
     done)
   </div>