Changeset - 1816747523f9
[Not reviewed]
0 1 0
Christopher Neugebauer - 4 years ago 2017-05-26 21:46:32
chrisjrn@gmail.com
Adds sellout conditions to dashboard
1 file changed with 9 insertions and 0 deletions:
0 comments (0 inline, 0 general)
pinaxcon/templates/dashboard.html
Show inline comments
...
 
@@ -94,13 +94,16 @@
 
        {% endif %}
 
    </div>
 

	
 
    {% sold_out_and_unregistered as sold_out %}
 
    <div class="panel panel-default">
 
        <div class="panel-heading">
 
            <div class="pull-right">
 
                {% if not user.attendee.completed_registration %}
 
                  {% if not sold_out %}
 
                    <a href="{% url "guided_registration" %}" class="btn btn-xs btn-default">
 
                        <i class="fa fa-plus-sign"></i> Register for the conference
 
                    </a>
 
                  {% endif %}
 
                {% else %}
 
                  <a href="{% url "attendee_edit" %}" class="btn btn-xs btn-default">
 
                      <i class="fa fa-pencil"></i> Edit your attendee profile
...
 
@@ -131,7 +134,13 @@
 

	
 
        <div class="panel-body">
 
            {% if not user.attendee.completed_registration %}
 
              {% if not sold_out %}
 
                <p>To attend the conference, you must purchase a ticket. <a href="{% url "guided_registration" %}">Use our registration form to purchase your ticket</a>.
 
              {% else %}
 
                <p>There are no tickets available to the general public.</p>
 

	
 
                <p>If you have a voucher code, you can <a href="{% url "voucher_code" %}">enter that voucher code</a>, which may enable tickets for you.</p>
 
              {% endif %}
 
            {% else %}
 
              <h4>Your registration</h4>
 
                  {% items_pending as pending %}
0 comments (0 inline, 0 general)