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 var tags = {{ tags|safe }};
13 $("#id_tags").autocomplete(tags, {
18 multipleSeparator: " ",
19 formatItem: function(row, i, max) {
20 return row.n + " ("+ row.c +")";
22 formatResult: function(row, i, max){
28 $("#fmretag").validate({
37 required: "{% trans "tags are required" %}",
38 maxlength: "{% trans "up to 5 tags, less than 20 characters each" %}
49 <div id="main-bar" class="headNormal">
50 {% trans "Change tags" %} [<a href="{{ question.get_absolute_url }}">{% trans "back" %}</a>]
52 <div id="main-body" class="ask-body">
54 <form id="fmretag" action="{% url edit_question question.id %}" method="post" >
56 {{ question.get_question_title }}
58 <div id="description" class="edit-content-html">
59 {{ question.html|safe }}
63 <div class="form-item">
64 <strong>{{ form.tags.label_tag }}:</strong> <span class="form-error"></span><br/>
65 {{ form.tags }} {{ form.tags.errors }}
66 <div class="title-desc">
67 {{ form.tags.help_text }}
70 <div class="error" ></div>
71 <input type="submit" value="{% trans "Save edit" %}" class="submit" />
72 <input type="button" value="{% trans "Cancel" %}" class="submit" onclick="history.back(-1);" />
80 <p class="subtitle">{% trans "Why use and modify tags?" %}</p>
81 <ul class="list-item">
83 {% trans "tags help us keep Questions organized" %}
87 修改完整问题需要用户的积分达到一定条件(比如:积分 >= 3000分,自己发布的问题除外),而用户积分达到比较低的时候,就可以修改问题的标签(比如:积分 >= 500, 这里指所有问题的标签)。
91 {% trans "tag editors receive special awards from the community" %}
94 <p class='info-box-follow-up-links'>
95 <a href="{% url faq %}">faq »</a>
103 <!-- end question_retag.html -->