Mercurial > public > sg101
comparison gpp/templates/weblinks/add_link.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 {% extends 'weblinks/base.html' %} | 1 {% extends 'weblinks/base.html' %} |
2 {% load url from future %} | |
2 {% block title %}Web Links: Add Link{% endblock %} | 3 {% block title %}Web Links: Add Link{% endblock %} |
3 {% block weblinks_content %} | 4 {% block weblinks_content %} |
4 <h3>Add Link</h3> | 5 <h3>Add Link</h3> |
5 {% if add_form %} | 6 {% if add_form %} |
6 <form action="." method="post">{% csrf_token %} | 7 <form action="." method="post">{% csrf_token %} |
7 <table> | 8 <table> |
8 {{ add_form.as_table }} | 9 {{ add_form.as_table }} |
9 <tr><td> </td><td><input type="submit" value="Add Link" /> | 10 <tr><td> </td><td><input type="submit" value="Add Link" /> |
10 <a href="{% url weblinks-main %}">Cancel</a> | 11 <a href="{% url 'weblinks-main' %}">Cancel</a> |
11 </td></tr> | 12 </td></tr> |
12 </table> | 13 </table> |
13 </form> | 14 </form> |
14 <br /> | 15 <br /> |
15 {% else %} | 16 {% else %} |