diff options
Diffstat (limited to '')
-rw-r--r-- | tmpl/index.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tmpl/index.html b/tmpl/index.html index 6f22fd0..a0afbfb 100644 --- a/tmpl/index.html +++ b/tmpl/index.html @@ -106,7 +106,11 @@ {{- range .courses }} <tr class="courseitem" id="course{{.ID}}"> <th scope="row">{{.ID}}</th> + {{ if lt .Selected .Max -}} <td><input class="coursecheckbox" type="checkbox" id="tick{{.ID}}" name="tick{{.ID}}" value="tick{{.ID}}"></input><span id="coursestatus{{.ID}}"></span></td> + {{ else -}} + <td><input disabled class="coursecheckbox" type="checkbox" id="tick{{.ID}}" name="tick{{.ID}}" value="tick{{.ID}}"></input><span id="coursestatus{{.ID}}"></span></td> + {{ end -}} <td><span id="selected{{.ID}}">{{.Selected}}</span>/<span id="max{{.ID}}">{{.Max}}</span></td> <td>{{.Title}}</td> <td id="type{{.ID}}">{{.Type}}</td> |