]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/question_retag.html
Remove footer link to squatted domain
[osqa.git] / forum / skins / default / templates / question_retag.html
1 {% extends "base.html" %}
2 <!-- question_retag.html -->
3 {% load extra_tags %}
4 {% load i18n %}
5 {% block title %}{% spaceless %}{% trans "Change tags" %}{% endspaceless %}{% endblock %}
6 {% block forejs %}
7         <script type="text/javascript">
8         
9         $().ready(function(){
10             $("#id_tags").autocomplete("{% url "matching_tags" %}", {
11                         matchContains: true,
12                 max: 20,
13                 multiple: true,
14                 multipleSeparator: " ",
15                 highlightItem: true,
16                 scroll: true,
17                 scrollHeight: 300,
18                         /*formatItem: function(row, i, max) {
19                                 return row.n + " ("+ row.c +")";
20                         },
21                 formatResult: function(row, i, max){
22                     return row.n;
23                 }*/
24                 formatItem: function(row, i, max, value) {
25                     return row[1] + " (" + row[2] + ")";
26                 },
27
28                 formatResult: function(row, i, max, value){
29                     return row[1];
30                 }
31                 
32             });
33
34         });
35         </script>
36 {% endblock %}
37         
38 {% block content %}
39 <div id="main-bar" class="headNormal">
40     {% trans "Change tags" %} [<a href="{{ question.get_absolute_url }}">{% trans "back" %}</a>]
41 </div>
42 <div id="main-body" class="ask-body">
43     <div id="askform">
44         <form id="fmretag" action="{% url "edit_question" question.id %}" method="post">
45             {% csrf_token %}
46             <h3>
47                 {{ question.headline }}
48             </h3>
49             <div id="description" class="edit-content-html">
50                 {{ question.html|safe }}
51             </div>
52            
53             
54             <div class="form-item">
55                 <strong>{{ form.tags.label_tag }}:</strong> <span class="form-error"></span><br/>
56                 {{ form.tags }}  {{ form.tags.errors }}
57                 <div class="title-desc">
58                     {{ form.tags.help_text }}
59                 </div>
60             </div>
61             <div class="error" ></div>
62             <input type="submit" value="{% trans "Save edit" %}" class="submit" />
63             <input type="button" value="{% trans "Cancel" %}" class="submit" onclick="history.back(-1);" />
64         </form>
65     </div>
66 </div>
67 {% endblock %}
68
69 {% block sidebar %}
70 <div class="boxC">
71     <p class="subtitle">{% trans "Why use and modify tags?" %}</p>
72     <ul class="list-item">
73         <li>
74             {% trans "tags help us keep Questions organized" %}
75         </li>
76         <li>
77             {% trans "tag editors receive special awards from the community" %}
78         </li>
79     </ul>
80     <p class='info-box-follow-up-links'>
81         <a href="{% url "faq" %}">faq &raquo;</a>
82     </p>
83 </div>
84
85 {% endblock %}
86
87 {% block endjs %}
88 {% endblock %}
89 <!-- end question_retag.html -->