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("{% url 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] + " (" + row[2] + ")";
28 formatResult: function(row, i, max, value){
34 $("#fmretag").validate({
43 required: "{% trans "tags are required" %}",
44 {% blocktrans with settings.FORM_MAX_NUMBER_OF_TAGS as max_number_of_tags and settings.FORM_MAX_LENGTH_OF_TAG as max_length_of_tags %}
45 maxlength: "up to {{max_number_of_tags}} tags, less than {{max_length_of_tags}} characters each"
57 <div id="main-bar" class="headNormal">
58 {% trans "Change tags" %} [<a href="{{ question.get_absolute_url }}">{% trans "back" %}</a>]
60 <div id="main-body" class="ask-body">
62 <form id="fmretag" action="{% url edit_question question.id %}" method="post">
65 {{ question.headline }}
67 <div id="description" class="edit-content-html">
68 {{ question.html|safe }}
72 <div class="form-item">
73 <strong>{{ form.tags.label_tag }}:</strong> <span class="form-error"></span><br/>
74 {{ form.tags }} {{ form.tags.errors }}
75 <div class="title-desc">
76 {{ form.tags.help_text }}
79 <div class="error" ></div>
80 <input type="submit" value="{% trans "Save edit" %}" class="submit" />
81 <input type="button" value="{% trans "Cancel" %}" class="submit" onclick="history.back(-1);" />
89 <p class="subtitle">{% trans "Why use and modify tags?" %}</p>
90 <ul class="list-item">
92 {% trans "tags help us keep Questions organized" %}
95 {% trans "tag editors receive special awards from the community" %}
98 <p class='info-box-follow-up-links'>
99 <a href="{% url faq %}">faq »</a>
107 <!-- end question_retag.html -->