From 1816747523f9a1622778fbb50ffb8fbd0ff840ec Mon Sep 17 00:00:00 2001 From: Christopher Neugebauer Date: Fri, 26 May 2017 14:46:32 -0700 Subject: [PATCH] Adds sellout conditions to dashboard --- pinaxcon/templates/dashboard.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pinaxcon/templates/dashboard.html b/pinaxcon/templates/dashboard.html index 5742e5f..82f799b 100644 --- a/pinaxcon/templates/dashboard.html +++ b/pinaxcon/templates/dashboard.html @@ -94,13 +94,16 @@ {% endif %} + {% sold_out_and_unregistered as sold_out %}
{% if not user.attendee.completed_registration %} + {% if not sold_out %} Register for the conference + {% endif %} {% else %} Edit your attendee profile @@ -131,7 +134,13 @@
{% if not user.attendee.completed_registration %} + {% if not sold_out %}

To attend the conference, you must purchase a ticket. Use our registration form to purchase your ticket. + {% else %} +

There are no tickets available to the general public.

+ +

If you have a voucher code, you can enter that voucher code, which may enable tickets for you.

+ {% endif %} {% else %}

Your registration

{% items_pending as pending %}