comparison gpp/templates/comments/comment_form.html @ 310:daa2916f5b34

Fixing 145; New url tag behavior (forwards compatibility) in Django 1.3.
author Brian Neal <bgneal@gmail.com>
date Thu, 20 Jan 2011 04:03:48 +0000
parents 6a5549c2efb5
children
comparison
equal deleted inserted replaced
309:8a0bae48b6ca 310:daa2916f5b34
1 {% load url from future %}
1 {% load core_tags %} 2 {% load core_tags %}
2 {% if user.is_authenticated %} 3 {% if user.is_authenticated %}
3 <form action="{% url comments-post %}" method="post" id="comment-form">{% csrf_token %} 4 <form action="{% url 'comments-post' %}" method="post" id="comment-form">{% csrf_token %}
4 {{ form.as_p }} 5 {{ form.as_p }}
5 {% comment_dialogs %} 6 {% comment_dialogs %}
6 <input type="submit" name="post" value="Post Comment" id="comment-form-post"/> 7 <input type="submit" name="post" value="Post Comment" id="comment-form-post"/>
7 </form> 8 </form>
8 {% else %} 9 {% else %}
9 <p> 10 <p>
10 Please <a href="{% url accounts-login %}">login</a> or 11 Please <a href="{% url 'accounts-login' %}">login</a> or
11 <a href="{% url accounts-register %}">register</a> to leave a comment. 12 <a href="{% url 'accounts-register' %}">register</a> to leave a comment.
12 </p> 13 </p>
13 {% endif %} 14 {% endif %}