diff options
Diffstat (limited to '')
-rw-r--r-- | tmpl/student.html | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tmpl/student.html b/tmpl/student.html index 3c63cb7..7da6f2a 100644 --- a/tmpl/student.html +++ b/tmpl/student.html @@ -135,11 +135,7 @@ {{- range .Courses }} <tr class="courseitem" id="course{{.ID}}" data-group="{{.Group}}"> <th style="font-weight: normal" scope="row"> - {{ if lt .Selected .Max -}} - <input aria-label="Enroll in course" class="coursecheckbox" type="checkbox" id="tick{{.ID}}" name="tick{{.ID}}" value="tick{{.ID}}"></input> - {{ else -}} - <input aria-label="Enroll in course" disabled class="coursecheckbox" type="checkbox" id="tick{{.ID}}" name="tick{{.ID}}" value="tick{{.ID}}"></input> - {{ end -}} + <input aria-label="Enroll in course" class="coursecheckbox" type="checkbox" id="tick{{.ID}}" name="tick{{.ID}}" value="tick{{.ID}}" data-group="{{.Group}}" {{ if ge .Selected .Max }}disabled{{ end }} ></input> <span id="coursestatus{{.ID}}"></span> <span id="selected{{.ID}}">{{.Selected}}</span>/<span id="max{{.ID}}">{{.Max}}</span> </th> |