Show "waitlist is empty" when the waitlist is empty
authorMagnus Hagander <magnus@hagander.net>
Fri, 28 Sep 2018 11:03:13 +0000 (13:03 +0200)
committerMagnus Hagander <magnus@hagander.net>
Fri, 28 Sep 2018 11:03:13 +0000 (13:03 +0200)
Instead of a number of buttons and fields that won't do anything anyway.

template/confreg/admin_waitlist.html

index d6c9d218757cf2903717708c157999896160fd2d..2fdd0877b06b77dcb4f84ec10fdc93f5d43d6db5 100644 (file)
@@ -79,6 +79,7 @@ function cancelOffer(id) {
 </div>
 
 <h3>Waitlist</h3>
+{%if waitlist%}
 <p>
 The current entries on the waitlist are:
 </p>
@@ -131,6 +132,9 @@ The current entries on the waitlist are:
 
 </table>
 </form>
+{%else%}
+<p>The waitlist is currently empty</p>
+{%endif%}
 
 <h3>Processed waitlist</h3>
 {%with waitlist=waitlist_cleared%}