Changeset - dd6aaf9b285c
[Not reviewed]
0 2 1
Christopher Neugebauer - 4 years ago 2017-10-11 00:50:49
chrisjrn@gmail.com
Adds “please fill out your own registration” information.
3 files changed with 25 insertions and 1 deletions:
0 comments (0 inline, 0 general)
pinaxcon/templates/registrasion/guided_registration.html
Show inline comments
 
new file 100644
 
{% extends "registrasion/guided_registration_.html" %}
 
{% comment %}
 
  Blocks that you can override:
 

	
 
  - discounts_intro
 
  - products_intro
 

	
 
{% endcomment %}
 

	
 
{% block content %}
 

	
 
  {% if current_step == 1 %}
 
    <div class="alert alert-danger"><strong>Attendees should fill out their own registration form</strong>.<br/> When you complete the form, you'll receive a link that you can pass on to accounts staff if you need someone to pay on your behalf.</div>
 
  {% endif %}
 

	
 
  {{ block.super }}
 

	
 
{% endblock %}
pinaxcon/templates/static_pages/attend/attend.html
Show inline comments
...
 
@@ -18,6 +18,8 @@
 

	
 
<p>To buy a ticket, <a href="/dashboard">create an account, and go to the dashboard</a>. If you've already bought a ticket, you can check out our information on <a href="/attend/hotels">where to stay</a> if you want to come up for the weekend, and <a href="/attend/travel">how to get here</a>.</p>
 

	
 
<p><strong>Attendees should fill out their own registration form</strong>. When you complete the form, you'll receive a link that you can pass on to accounts staff if you need someone to pay on your behalf.</p>
 

	
 
<br />
 

	
 
<div class="pull-right"><a class="btn btn-lg btn-primary" href="/tickets/buy">Buy a Ticket</a></div>
pinaxcon/views.py
Show inline comments
...
 
@@ -35,6 +35,10 @@ def buy_ticket(request):
 

	
 
    print(dir(request.user))
 
    if not request.user.is_authenticated():
 
        messages.warning(request, 'To buy a ticket, either create an account, or log in.')
 
        messages.warning(request,
 
            '''To buy a ticket, either create an account, or log in.
 
            Attendees should fill out their own registration.
 
            You will receive a payment link that you can pass to accounts
 
            staff, if required. ''')
 

	
 
    return redirect("/dashboard")
0 comments (0 inline, 0 general)