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
 
{% extends "page_with_title_and_lede.html" %}
 

	
 
{% load i18n %}
 
{% load markdown_deux_tags %}
 

	
 
{% block head_title %}Attend{% endblock %}
 

	
 
{% block heading %}Come to North Bay Python!{% endblock %}
 

	
 
{% 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>
 

	
 
<h3>Individual Supporter <small>$100 ($80 Early Bird)</small></h3>
 

	
 
<p><strong>For individuals who want to financially contribute to the success of the conference.</strong></p>
 

	
 
<p>This ticket includes a free t-shirt, and recognition of your Free and Open Source Software, hobby, or nonprofit project on your conference badge.</p>
 

	
 
<h3>Unaffiliated Individual <small>$50 ($25 Early Bird)</small></h3>
 

	
 
<p><strong>For students, hobbyists, and unemployed/underemployed people who are coming to North Bay Python at their own expense.</strong></p>
 

	
 
<p>The cheapest ticket we can offer. You can add a t-shirt for $30.</p>
 

	
 

	
 
<h3>Special Tickets</h3>
 

	
 
<h4>Individual Sponsor <small>$500 ($450 Early Bird)</small></h4>
 

	
 
<p>This ticket includes all of the benefits of a Corporate ticket, but we’ll also give the ticket holder special thanks during our conference plenary sessions. You can also provide us with a promotional item to put in each attendee’s swag bag.</p>
 

	
 
<p>This ticket is for individuals who want to sponsor the conference. For company-level sponsorships, please see our <a href="/sponsors/become-a-sponsor">sponsorships page</a>.</p>
 

	
 

	
 
<h4>Group Discount Corporate <small>$180 for 5+ tickets</small></h4>
 

	
 
<p>For companies sending multiple attendees, you can get a 10% discount off the regular price on purchases of 5 tickets or more.</p>
 

	
 
<p>To claim, buy your first four tickets, and send us an email with the names and receipt numbers for those attendees. We’ll send you vouchers for a discount on further tickets.</p>
 

	
 

	
 
<h2>Ticket Types and Inclusions</h2>
 

	
 
<table class="table table-striped">
 
<tr>
 
  <th></th>
 
  <th>Unaffiliated Individual</th><th>Individual Supporter</th><th>  Corporate  </th><th> Individual Sponsor </th></tr>
pinaxcon/views.py
Show inline comments
 
from django.conf import settings
 
from django.contrib import messages
 
from django.http import HttpResponseServerError
 
from django.shortcuts import redirect, render
 
from django.template import RequestContext
 
from django.template import Template
 
from django.template.loader import get_template
 
from django.views import defaults
 

	
 
from account.forms import LoginEmailForm, LoginUsernameForm, SignupForm
 
from account.views import LoginView
 

	
 
def server_error(request, template_name=defaults.ERROR_500_TEMPLATE_NAME):
 
    t = Template("{%% include '%s' %%}" % template_name)
 
    return HttpResponseServerError(t.render(RequestContext(request)))
 

	
 

	
 
def account_login(request):
 

	
 
    d = {
 
        "login_form": LoginEmailForm(),
 
        "signup_form": SignupForm(),
 
        "signup_open": getattr(settings, "ACCOUNT_OPEN_SIGNUP", True),
 
    }
 

	
 
    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)