1 {% extends "base.html" %}
2 <!-- question_retag.html -->
5 {% block title %}{% spaceless %}{% trans "Change tags" %}{% endspaceless %}{% endblock %}
7 <script type="text/javascript">
10 $("#nav_questions").attr('className',"on");
11 //Tags autocomplete action
12 $("#id_tags").autocomplete("/matching_tags", {
17 multipleSeparator: " ",
18 /*formatItem: function(row, i, max) {
19 return row.n + " ("+ row.c +")";
21 formatResult: function(row, i, max){
24 formatItem: function(row, i, max, value) {
25 return row[1].split(".")[0] + " (" + row[1].split(".")[1] + ")";
28 formatResult: function(row, i, max, value){
34 $("#fmretag").validate({
43 required: "{% trans "tags are required" %}",
44 maxlength: "{% trans "up to 5 tags, less than 20 characters each" %}
55 <div id="main-bar" class="headNormal">
56 {% trans "Change tags" %} [<a href="{{ question.get_absolute_url }}">{% trans "back" %}</a>]
58 <div id="main-body" class="ask-body">
60 <form id="fmretag" action="{% url edit_question question.id %}" method="post" >
62 {{ question.get_question_title }}
64 <div id="description" class="edit-content-html">
65 {{ question.html|safe }}
69 <div class="form-item">
70 <strong>{{ form.tags.label_tag }}:</strong> <span class="form-error"></span><br/>
71 {{ form.tags }} {{ form.tags.errors }}
72 <div class="title-desc">
73 {{ form.tags.help_text }}
76 <div class="error" ></div>
77 <input type="submit" value="{% trans "Save edit" %}" class="submit" />
78 <input type="button" value="{% trans "Cancel" %}" class="submit" onclick="history.back(-1);" />
86 <p class="subtitle">{% trans "Why use and modify tags?" %}</p>
87 <ul class="list-item">
89 {% trans "tags help us keep Questions organized" %}
93 修改完整问题需要用户的积分达到一定条件(比如:积分 >= 3000分,自己发布的问题除外),而用户积分达到比较低的时候,就可以修改问题的标签(比如:积分 >= 500, 这里指所有问题的标签)。
97 {% trans "tag editors receive special awards from the community" %}
100 <p class='info-box-follow-up-links'>
101 <a href="{% url faq %}">faq »</a>
109 <!-- end question_retag.html -->