comparison gpp/templates/news/base.html @ 194:6a5549c2efb5

Implement #62, add support for CSRF protection.
author Brian Neal <bgneal@gmail.com>
date Sat, 03 Apr 2010 20:00:56 +0000
parents b7ac381996e8
children 1246a4f1ab4f
comparison
equal deleted inserted replaced
193:fa7d82bfb100 194:6a5549c2efb5
8 {% endblock %} 8 {% endblock %}
9 {% block content %} 9 {% block content %}
10 <h2>SurfGuitar101 News &amp; Articles <a href="{% url feeds-news %}"><img src="{{ MEDIA_URL }}icons/feed.png" alt="News Feed" title="News Feed" /></a></h2> 10 <h2>SurfGuitar101 News &amp; Articles <a href="{% url feeds-news %}"><img src="{{ MEDIA_URL }}icons/feed.png" alt="News Feed" title="News Feed" /></a></h2>
11 {% if search_form %} 11 {% if search_form %}
12 <div class="news-search"> 12 <div class="news-search">
13 <form action="{% url news-search_page page=1 %}" method="post"> 13 <form action="{% url news-search_page page=1 %}" method="post">{% csrf_token %}
14 <p>{{ search_form.text }} {{ search_form.category }} <input type="submit" value="Search" /></p> 14 <p>{{ search_form.text }} {{ search_form.category }} <input type="submit" value="Search" /></p>
15 </form> 15 </form>
16 </div> 16 </div>
17 {% endif %} 17 {% endif %}
18 <ul class="app-menu"> 18 <ul class="app-menu">