]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/close.html
enabling the CSRF protection middleware and adding the {% csrf_token %} tag to the...
[osqa.git] / forum / skins / default / templates / close.html
1 {% extends "base_content.html" %}
2 <!-- template close.html -->
3 {% load i18n %}
4 {% load extra_tags %}
5 {% load humanize %}
6 {% block title %}{% spaceless %}{% trans "Close question" %}{% endspaceless %}{% endblock %}
7 {% block forejs %}
8        <script type="text/javascript">
9         $().ready(function(){
10             $('#btBack').bind('click', function(){ history.back(); });
11         });
12         </script>
13 {% endblock %}
14 {% block content %}
15 <div id="main-bar" class="headNormal">
16         {% trans "Close question" %}
17 </div>
18 <div id="main-body" style="width:100%;margin-bottom:10px">
19     <p>{% trans "Close the question" %}: <a href="{{ question.get_absolute_url }}">
20     <strong>{{ question.get_question_title }}</strong></a>
21     </p>   
22     
23     <form id="fmclose" action="{% url close question.id %}" method="post" >
24         {% csrf_token %}
25         <p>
26             <strong>{% trans "Reasons" %}:</strong> {{ form.reason }}
27         </p>
28         <div id="" style="padding-top:20px">
29             <input type="submit" value="{% trans "OK to close" %}" class="submit" />
30             <input id="btBack" type="button" class="submit" value="{% trans "Cancel" %}"  />
31             
32         </div>
33         
34     </form>
35 </div>
36 {% endblock %}
37 <!-- end template close.html -->