Changeset - 50230668961a
[Not reviewed]
0 2 1
Christopher Neugebauer - 6 years ago 2017-10-10 01:37:31
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
...
 
@@ -9,24 +9,26 @@
 

	
 
{% block body_class %}attend{% endblock %}
 

	
 
{% block lede %}
 
  P-Town. Rivertown. That place where the cows are. No matter what you call Petaluma, we want you to join us here for a great weekend of Python talks and networking. North Bay Python tickets start at $25 for unaffiliated individuals, and $180 for corporate attendees.
 
{% endblock %}
 

	
 

	
 
{% block content %}
 

	
 
<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>
 
<h2>Which Ticket?</h2>
 

	
 
<p><em>Early Bird discounts are available for the first 100 tickets sold, or until October 20, whichever comes first. T-shirts are only available for tickets bought before November 7.</em></p>
 

	
 
<h3>Corporate <small>$200 ($180 Early Bird)</small></h3>
 

	
 
<p><strong>For company employees, and individuals who can claim the cost of attending the conference as a business expense or other tax deduction</strong>.</p>
 

	
 
<p>Includes a free t-shirt, and recognition of your affiliation on your conference badge and on the conference supporters list. Group discounts are available for organizations that buy 5 or more tickets.</p>
pinaxcon/views.py
Show inline comments
...
 
@@ -26,15 +26,19 @@ def account_login(request):
 
    print d["signup_open"], settings.ACCOUNT_OPEN_SIGNUP
 
    return render(request, "account_login.html", d)
 

	
 

	
 
class EmailLoginView(LoginView):
 
    form_class = LoginEmailForm
 

	
 

	
 
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)