help_text = _("The introductory page that is visible in the sidebar for anonymous users."),
widget=Textarea))
+QUESTION_TITLE_TIPS = Setting('QUESTION_TITLE_TIPS',
+u"""
+ - **ask a question relevant to the |APP_TITLE| community**
+ - the title must be in the form of a question
+ - provide enough details
+ - be clear and concise
+"""
+, SIDEBAR_SET, dict(
+label = "Question title tips",
+help_text = "Tips visible on the ask or edit questions page about the question title.",
+required=False))
+
+QUESTION_TAG_TIPS = Setting('QUESTION_TAG_TIPS',
+u"""
+ - Tags are words that will tell others what this question is about.
+ - They will help other find your question.
+ - A question can have up to |FORM_MAX_NUMBER_OF_TAGS| tags, but it must have at least |FORM_MIN_NUMBER_OF_TAGS|.
+"""
+, SIDEBAR_SET, dict(
+label = "Tagging tips",
+help_text = "Tips visible on the ask or edit questions page about good tagging.",
+required=False))
+
SIDEBAR_UPPER_SHOW = Setting('SIDEBAR_UPPER_SHOW', True, SIDEBAR_SET, dict(
label = "Show Upper Block",
<!-- question_edit_tips.html -->
+{% load markup %}
{% load i18n general_sidebar_tags %}
<div class="boxC" id="title_side_bar">
<p class="subtitle darkred">{% trans "Title Tips" %}</p>
- <div>
- <ul class="list-item">
- <li>
- <b>
- {% blocktrans with settings.APP_SHORT_NAME as app_title %}
- ask a question relevant to the {{ app_title }} community
- {% endblocktrans %}
- </b>
- </li>
- <li>
- {% trans "the title must be in the form of a question" %}
- </li>
- <li>
- {% trans "please try provide enough details" %}
- </li>
- <li>
- {% trans "be clear and concise" %}
- </li>
- </ul>
+ <div class="list-item">
+ {{ settings.QUESTION_TITLE_TIPS|markdown:"settingsparser" }}
<p class='info-box-follow-up-links'>
<a href="{% url faq %}" target="_blank" title="{% trans "see frequently asked questions" %}">{% trans "faq" %} »</a>
</p>
<div class="boxC" id="tags_side_bar" align="left">
<p class="subtitle darkred">{% trans "What Are Tags" %}</p>
- <ul class="list-item">
- <li>
- {% trans "Tags are words that will tell others what this question is about." %}
- </li>
- <li>
- {% trans "They will help other find your question." %}
- </li>
- <li>
- {% blocktrans with settings.FORM_MAX_NUMBER_OF_TAGS as max_number_of_tags and settings.FORM_MIN_NUMBER_OF_TAGS as min_number_of_tags %}
- A question can have up to {{max_number_of_tags}} tags, but it must have at least {{min_number_of_tags}}.
- {% endblocktrans %}
- </li>
- </ul>
+ <div class="list-item">
+ {{ settings.QUESTION_TAG_TIPS|markdown:"settingsparser" }}
+ </div>
</div>