fix(schedule): hide course event reset action if no opt to reset

This commit is contained in:
Sarah Vaupel 2020-11-09 12:59:27 +01:00
parent c6a84b314c
commit 2c9d5e0a22

View File

@ -289,8 +289,9 @@ $# $if NTop (Just 0) < NTop (courseCapacity course)
<div .table__td-content>
<a .btn .btn-primary href=@{CEventR tid ssh csh cID (CEvScheduleOptSetR (not (maybe userScheduleOccurrenceDisplayDefault courseEventScheduleOptOpt mEventScheduleOpt)))}>
_{bool MsgScheduleOptIn MsgScheduleOptOut (maybe userScheduleOccurrenceDisplayDefault courseEventScheduleOptOpt mEventScheduleOpt)}
<a .btn .btn-primary href=@{CEventR tid ssh csh cID CEvScheduleOptDelR}>
_{MsgScheduleOptDelete}
$if is _Just mEventScheduleOpt
<a .btn .btn-primary href=@{CEventR tid ssh csh cID CEvScheduleOptDelR}>
_{MsgScheduleOptDelete}
$if mayCreateEvents
<td .table__td>
<ul .list--inline .list--iconless .list--comma-separated>