Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
got sponsorship app flow working, adding missing templates, etc
- Loading branch information
Showing
9 changed files
with
226 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,35 @@ | |||
[ | |||
{ | |||
"pk": 1, | |||
"model": "sponsorship.sponsorlevel", | |||
"fields": { | |||
"conference": 1, | |||
"description": "", | |||
"cost": 10000, | |||
"name": "Gold", | |||
"order": 0 | |||
} | |||
}, | |||
{ | |||
"pk": 2, | |||
"model": "sponsorship.sponsorlevel", | |||
"fields": { | |||
"conference": 1, | |||
"description": "", | |||
"cost": 5000, | |||
"name": "Silver", | |||
"order": 1 | |||
} | |||
}, | |||
{ | |||
"pk": 3, | |||
"model": "sponsorship.sponsorlevel", | |||
"fields": { | |||
"conference": 1, | |||
"description": "", | |||
"cost": 2000, | |||
"name": "Bronze", | |||
"order": 2 | |||
} | |||
} | |||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,22 @@ | |||
{% load sponsorship_tags %} | |||
{% load thumbnail %} | |||
|
|||
{% sponsor_levels as levels %} | |||
|
|||
<h2>Sponsors</h2> | |||
|
|||
<div class="sponsor-list"> | |||
{% for level in levels %} | |||
{% if level.sponsors %} | |||
<h3 style="margin-top: 3em;">{{ level.name }}</h3> | |||
|
|||
{% for sponsor in level.sponsors %} | |||
<div style="margin: 10px 0;"> | |||
<a href="{{ sponsor.external_url }}"> | |||
<img src="{% thumbnail sponsor.website_logo '100x60' %}" alt="{{ sponsor.name }}" /> | |||
</a> | |||
</div> | |||
{% endfor %} | |||
{% endif %} | |||
{% endfor %} | |||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,28 @@ | |||
{% extends "site_base.html" %} | |||
|
|||
{% load bootstrap_tags %} | |||
{% load i18n %} | |||
{% load boxes_tags %} | |||
|
|||
{% block head_title %}{% trans "Apply to be a Sponsor" %}{% endblock %} | |||
|
|||
{% block body_class %}sponsors{% endblock %} | |||
|
|||
{% block body %} | |||
|
|||
{% box "sponsorship-apply" %} | |||
|
|||
<form method="POST" action="" class="form-horizontal"> | |||
{% csrf_token %} | |||
<legend>{% trans "Apply to Be a Sponsor" %}</legend> | |||
{{ form|as_bootstrap }} | |||
<div class="form-actions"> | |||
<input class="btn btn-primary" type="submit" value="Apply" /> | |||
<a class="btn" href="{% url dashboard %}">Cancel</a> | |||
<p class="help-block"> | |||
<small>By submitting this sponsor application you are agreeing to the <a href="{% url cms_page "sponsor/terms/" %}" target="_blank">terms and conditions</a>.</small> | |||
</p> | |||
</div> | |||
</form> | |||
|
|||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,40 @@ | |||
{% extends "site_base.html" %} | |||
|
|||
{% load bootstrap_tags %} | |||
{% load i18n %} | |||
|
|||
{% block head_title %}{{ sponsor }}{% endblock %} | |||
|
|||
{% block page_title %}{% trans "Sponsorship" %}{% endblock %} | |||
|
|||
{% block body %} | |||
<h2>{{ sponsor.name }} ({{ sponsor.level }})</h2> | |||
|
|||
<form enctype="multipart/form-data" method="POST" action="" class="form-horizontal"> | |||
{% csrf_token %} | |||
<fieldset> | |||
{{ form|as_bootstrap }} | |||
</fieldset> | |||
|
|||
<h3>{{ sponsor.level }} Sponsor Benefits</h3> | |||
|
|||
{{ formset.management_form }} | |||
{{ formset.non_form_errors }} | |||
|
|||
{% for form in formset.forms %} | |||
<div class="control-group"> | |||
<label class="control-label">{{ form.instance.benefit }}</label> | |||
<div class="controls"> | |||
{{ form }} | |||
<p class="help-block">{{ form.instance.benefit.description }}</p> | |||
</div> | |||
</div> | |||
{% endfor %} | |||
|
|||
<div class="form-actions"> | |||
<input class="btn btn-primary" type="submit" value="Save" /> | |||
<a class="btn" href="{% url dashboard %}">Cancel</a> | |||
</div> | |||
|
|||
</form> | |||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,43 @@ | |||
{% extends "site_base.html" %} | |||
|
|||
{% load sponsorship_tags %} | |||
{% load thumbnail %} | |||
{% load i18n %} | |||
|
|||
{% block head_title %}{% trans "About Our Sponsors" %}{% endblock %} | |||
|
|||
{% block body_class %}sponsors{% endblock %} | |||
|
|||
{% sponsor_levels as levels %} | |||
|
|||
{% block body_outer %} | |||
<div class="row"> | |||
<div class="span12"> | |||
<h1>{% trans "About Our Sponsors" %}</h1> | |||
<a href="{% url cms_page "sponsors/prospectus/" %}" class="btn">Learn how to become a sponsor <span class="arrow"></span></a> | |||
|
|||
{% for level in levels %} | |||
<h3>{{ level.name }}</h3> | |||
|
|||
<div class="row"> | |||
{% for sponsor in level.sponsors %} | |||
<div class="span4"> | |||
<div class="sponsor" id="sponsor-{{ sponsor.id }}"> | |||
<div class="sponsor-content"> | |||
<h2> | |||
<a href="{{ sponsor.external_url }}"> | |||
<img src="{% thumbnail sponsor.website_logo '150x80' %}" alt="{{ sponsor.name }}" /> | |||
</a> | |||
</h2> | |||
<h5>{{ sponsor.name }}</h5> | |||
<p><a href="{{ sponsor.external_url }}">{{ sponsor.external_url }}</a></p> | |||
<p>{{ sponsor.listing_text|urlize|linebreaks }}</p> | |||
</div> | |||
</div> | |||
</div> | |||
{% endfor %} | |||
</div> | |||
{% endfor %} | |||
</div> | |||
</div> | |||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters