X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=courses%2Flist.sh;h=97356db9b6180c0c9e2f6b9f47b75a11eec1e498;hp=04cadfae8b712ea6a349c0e007e914c54f51fc64;hb=f1346d6ad684e8e843afd51bfe38e474f7d48508;hpb=bbce2c9717ad8e0f551ac0d875801d2da3be3b53 diff --git a/courses/list.sh b/courses/list.sh index 04cadfa..97356db 100755 --- a/courses/list.sh +++ b/courses/list.sh @@ -27,7 +27,7 @@ edit_course(){ [div .section .recur . $( edit_item "$course" RRULE )] - [div .section .select_attendance . $( + [div .section .attendance . $( edit_item "$course" attendance )] [div .control @@ -37,9 +37,13 @@ edit_course(){ ] [button .item type="submit" name="action" value="addfield" . $(l10n edit_addfield) --] [button .item type="submit" name="action" value="update" . $(l10n edit_update)] - [button .item type="submit" name="action" value="delete" . $(l10n edit_delete)] [button .item type="submit" name="action" value="cancel" . $(l10n edit_cancel)] - ]' + [div .item .delete label="$(l10n edit_delete)" + [input type="checkbox" #delete] + [label for="delete" $(l10n edit_delete)] + [button type="submit" name="action" value="delete" $(l10n edit_delete)] + ] + ] ] EOF fi @@ -62,10 +66,10 @@ print_course(){ done |sort -k7)] ] [div .control - [a .item href="/courses/edit_course.sh?course=${coursefile##*/}" $(l10n edit)] - [a .item href="/courses/export_pdf.sh?course=${coursefile##*/}" target="blank" $(l10n courselist)] - [a .item href="/courses/export_ical.sh?course=${coursefile##*/}" $(l10n ics_export)] - [a .item href="mailto:zack@vuesch.org?bcc=$(course_mail "${coursefile##*/}" |HTML)" $(l10n course_mail)] + [a .button .item href="/courses/edit_course.sh?course=${coursefile##*/}" $(l10n edit)] + [a .button .item href="/courses/export_pdf.sh?course=${coursefile##*/}" target="blank" $(l10n courselist)] + [a .button .item href="/courses/export_ical.sh?course=${coursefile##*/}" $(l10n ics_export)] + [a .button .item href="mailto:zack@vuesch.org?bcc=$(course_mail "${coursefile##*/}" |HTML)" $(l10n course_mail)] ] ] EOF @@ -77,7 +81,7 @@ course_mail() { cat "${_DATA}/vcard/${card}" done \ | pdi_load - \ - | sed -rn 's;^EMAIL(\;[^:]*)*:(.+)\r?$;\2,;p' \ + | sed -nE 's;^EMAIL(\;[^:]*)*:(.+)\r?$;\2,;p' \ | tr -d \\n \ | unescape }