summaryrefslogtreecommitdiffstats
path: root/templates/question_retag.html
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-02-09 16:48:38 -0500
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-02-09 16:48:38 -0500
commit3c4c71fc19865bfb75231c425fae31c6b2c211de (patch)
tree535fc16fef76b1e89e136c3e4a0947fe8613fe01 /templates/question_retag.html
parentbdf1cc4f9dd3f0ac06ba1af3c7d35c72cc358297 (diff)
downloadaskbot-3c4c71fc19865bfb75231c425fae31c6b2c211de.tar.gz
askbot-3c4c71fc19865bfb75231c425fae31c6b2c211de.tar.bz2
askbot-3c4c71fc19865bfb75231c425fae31c6b2c211de.zip
started working towards skinning forum app - first step - move templates to app
Diffstat (limited to 'templates/question_retag.html')
-rw-r--r--templates/question_retag.html106
1 files changed, 0 insertions, 106 deletions
diff --git a/templates/question_retag.html b/templates/question_retag.html
deleted file mode 100644
index b7957962..00000000
--- a/templates/question_retag.html
+++ /dev/null
@@ -1,106 +0,0 @@
-{% extends "base.html" %}
-<!-- question_retag.html -->
-{% load extra_tags %}
-{% block title %}{% spaceless %}{% trans "Change tags" %}{% endspaceless %}{% endblock %}
-{% block forejs %}
- <script type='text/javascript' src='{% href "/content/js/com.cnprog.editor.js" %}'></script>
- <script type='text/javascript' src='{% href "/content/js/com.cnprog.post.js" %}'></script>
- <script type='text/javascript' src='{% href "/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 required" %}",
- 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>
- <div class="error" ></div>
- <input type="submit" value="{% trans "Save edit" %}" class="submit" />
- <input type="button" value="{% trans "Cancel" %}" class="submit" onclick="history.back(-1);" />
- </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 "tags help us keep Questions organized" %}
- </li>
- {% comment %}
- <li>
- 修改完整问题需要用户的积分达到一定条件(比如:积分 >= 3000分,自己发布的问题除外),而用户积分达到比较低的时候,就可以修改问题的标签(比如:积分 >= 500, 这里指所有问题的标签)。
- </li>
- {% endcomment %}
- <li>
- {% trans "tag editors receive special awards from the community" %}
- </li>
- </ul>
- <p class='info-box-follow-up-links'>
- <a href="{% url faq %}">faq »</a>
- </p>
-</div>
-
-{% endblock %}
-
-{% block endjs %}
-{% endblock %}
-<!-- end question_retag.html -->