Use {% load url from future %} in sponsorship templates
Using https://github.com/futurecolors/django-future-url
This commit is contained in:
parent
9e2ceec7c4
commit
41aab58d7b
4 changed files with 18 additions and 6 deletions
|
@ -1,5 +1,8 @@
|
|||
{% extends "site_base.html" %}
|
||||
|
||||
{% load url from future %}
|
||||
|
||||
|
||||
{% load bootstrap_tags %}
|
||||
{% load i18n %}
|
||||
{% load boxes_tags %}
|
||||
|
@ -9,13 +12,13 @@
|
|||
{% block body_class %}sponsorships{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<form method="POST" action="{% url sponsor_add %}" class="form-horizontal">
|
||||
<form method="POST" action="{% url 'sponsor_add' %}" class="form-horizontal">
|
||||
{% csrf_token %}
|
||||
<legend>{% trans "Add a Sponsor" %}</legend>
|
||||
{{ form|as_bootstrap }}
|
||||
<div class="form-actions">
|
||||
<input class="btn btn-primary" type="submit" value="Add" />
|
||||
<a class="btn" href="{% url dashboard %}">Cancel</a>
|
||||
<a class="btn" href="{% url 'dashboard' %}">Cancel</a>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
{% extends "site_base.html" %}
|
||||
|
||||
{% load url from future %}
|
||||
|
||||
|
||||
{% load bootstrap_tags %}
|
||||
{% load i18n %}
|
||||
{% load boxes_tags %}
|
||||
|
@ -18,9 +21,9 @@
|
|||
{{ form|as_bootstrap }}
|
||||
<div class="form-actions">
|
||||
<input class="btn btn-primary" type="submit" value="Apply" />
|
||||
<a class="btn" href="{% url dashboard %}">Cancel</a>
|
||||
<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>
|
||||
<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>
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
{% extends "site_base.html" %}
|
||||
|
||||
{% load url from future %}
|
||||
|
||||
|
||||
{% load bootstrap_tags %}
|
||||
{% load i18n %}
|
||||
|
||||
|
@ -33,7 +36,7 @@
|
|||
|
||||
<div class="form-actions">
|
||||
<input class="btn btn-primary" type="submit" value="Save" />
|
||||
<a class="btn" href="{% url dashboard %}">Cancel</a>
|
||||
<a class="btn" href="{% url 'dashboard' %}">Cancel</a>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
{% extends "site_base.html" %}
|
||||
|
||||
{% load url from future %}
|
||||
|
||||
|
||||
{% load sponsorship_tags %}
|
||||
{% load thumbnail %}
|
||||
{% load i18n %}
|
||||
|
@ -12,7 +15,7 @@
|
|||
<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>
|
||||
<a href="{% url 'cms_page' "sponsors/prospectus/" %}" class="btn">Learn how to become a sponsor <span class="arrow"></span></a>
|
||||
|
||||
{% sponsor_levels as levels %}
|
||||
{% for level in levels %}
|
||||
|
|
Loading…
Reference in a new issue