diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2009-07-10 19:15:28 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2009-07-10 19:15:28 -0400 |
commit | 35b666224a05fbd249b1c51a0a48fb95b246fe9a (patch) | |
tree | bfce966ce040dd849e8cc35a012d18f7632ad6b1 /templates/tough/question_retag.html | |
parent | 5b45e526c74faf55110ff0afdcba19797d7e0f4d (diff) | |
download | askbot-35b666224a05fbd249b1c51a0a48fb95b246fe9a.tar.gz askbot-35b666224a05fbd249b1c51a0a48fb95b246fe9a.tar.bz2 askbot-35b666224a05fbd249b1c51a0a48fb95b246fe9a.zip |
adding all files again
Diffstat (limited to 'templates/tough/question_retag.html')
-rw-r--r-- | templates/tough/question_retag.html | 107 |
1 files changed, 107 insertions, 0 deletions
diff --git a/templates/tough/question_retag.html b/templates/tough/question_retag.html new file mode 100644 index 00000000..105428f4 --- /dev/null +++ b/templates/tough/question_retag.html @@ -0,0 +1,107 @@ +{% extends "base.html" %} +{% block title %}{% spaceless %}{% trans "Revise tags" %}{% endspaceless %}{% endblock %} +{% block forejs %} + <script type='text/javascript' src='/content/js/com.cnprog.editor.js'></script> + <script type='text/javascript' src='/content/js/com.cnprog.post.js'></script> + <script type='text/javascript' src='/content/js/jquery.validate.pack.js'></script> + <script type="text/javascript"> + + $().ready(function(){ + $("#nav_questions").attr('className',"on"); + //Tags autocomplete action + var tags = {{ tags|safe }}; + $("#id_tags").autocomplete(tags, { + minChars: 1, + matchContains: true, + max: 20, + multiple: true, + multipleSeparator: " ", + formatItem: function(row, i, max) { + return row.n + " ("+ row.c +")"; + }, + formatResult: function(row, i, max){ + return row.n; + } + + }); + + $("#fmretag").validate({ + rules: { + tags: { + required: true, + maxength: 105 + } + }, + messages: { + tags: { + required: ' ' + {% trans "tags are requried" %}, + maxlength: ' ' + {% trans "up to 5 tags, less than 20 characters each" %}, + } + } + + }); + lanai.highlightSyntax(); + + }); + </script> +{% endblock %} + +{% block content %} +<div id="main-bar" class="headNormal"> + {% trans "Change tags" %} [<a href="{{ question.get_absolute_url }}">{% trans "back" %}</a>] +</div> +<div id="main-body" class="ask-body"> + <div id="askform"> + <form id="fmretag" action="{% url edit_question question.id %}" method="post" > + <h3> + {{ question.get_question_title }} + </h3> + <div id="description" class="edit-content-html"> + {{ question.html|safe }} + </div> + + + <div class="form-item"> + <strong>{{ form.tags.label_tag }}:</strong> <span class="form-error"></span><br> + {{ form.tags }} {{ form.tags.errors }} + <div class="title-desc"> + {{ form.tags.help_text }} + </div> + </div> + <br> + + <div class="error" ></div> + <input type="submit" value="{% trans "Change now" %}" class="submit" /> + <input type="button" value="{% trans "Cancel" %}" class="submit" onclick="history.back(-1);" /> + <br> + <br> + </form> + </div> +</div> +{% endblock %} + +{% block sidebar %} +<div class="boxC"> + <p class="subtitle">{% trans "Why use and modify tags?" %}</p> + <ul class="list-item"> + + <li> + {% trans "site title" %} {% trans "uses tags for the classification of questions %} + </li> + <li> + 修改完整问题需要用户的积分达到一定条件(比如:积分 >= 3000分,自己发布的问题除外),而用户积分达到比较低的时候,就可以修改问题的标签(比如:积分 >= 500, 这里指所有问题的标签)。 + + </li> + <li> + {% trans "tag editors receive special awards from the community" %} + </li> + </ul> + <a href="{% url faq %}" style="float:right;position:relative">faq »</a> + <br> +</div> + +{% endblock %} + +{% block endjs %} +{% endblock %} + |