X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/410bfa05ee36ed1d99356c443a5f3f6aa3ee9578..dcacc3b4c2ba2f550806a2d22b183f6fac4f63ff:/forum/skins/default/templates/ask.html?ds=sidebyside diff --git a/forum/skins/default/templates/ask.html b/forum/skins/default/templates/ask.html index 35a6c2c..0c7b255 100644 --- a/forum/skins/default/templates/ask.html +++ b/forum/skins/default/templates/ask.html @@ -1,20 +1,28 @@ {% extends "base.html" %} -{% load i18n %} -{% load extra_tags %} +{% load i18n extra_tags extra_filters %} {% block title %}{% spaceless %}{% trans "Ask a question" %}{% endspaceless %}{% endblock %} {% block forejs %} + + + {% endblock %} {% block content %}
- {% trans "Ask a question" %} + {% trans "Ask a question" %}
-
- {% if not request.user.is_authenticated %} + + {% csrf_token %} + {% if not request.user.is_authenticated %}
-

{% trans "login to post question info" %}

+ {% trans "You are welcome to start submitting your question anonymously." %} +

{% blocktrans %} + After submiting your question, you will be redirected to the login/signup page. + Your question will be saved in the current session and will be published after you login with your existing account, + or signup for a new account{% endblocktrans %}{% if "ask"|contained_in:settings.REQUIRE_EMAIL_VALIDATION_TO %} + {% trans "and validate your email." %}{% else %}.{% endif %}

{% else %} - {% ifequal settings.EMAIL_VALIDATION 'on' %} - {% if not request.user.email_isvalid %} -
- {% blocktrans with request.user.email as email %}must have valid {{email}} to post, - see {{email_validation_faq_url}} - {% endblocktrans %} -
- {% endif %} - {% endifequal %} - {% endif %} + {% if not request.user.email_valid_and_can_ask %} +
+ {% blocktrans %}Remember, your question will not be published until you validate your email.{% endblocktrans %} + {% trans "Send me a validation link." %} +
+ {% endif %} + {% endif %}

{{ form.title }} {{ form.title.errors }} @@ -80,17 +110,17 @@ {{ form.title.help_text }}
- +
{{ form.text }} {{ form.text.errors }} -
+ {% if settings.WIKI_ON %}
{% trans "toggle preview" %} {{ form.wiki }} {{ form.wiki.label_tag }} @@ -110,10 +140,19 @@

{{ form.tags.help_text }}

- {% if not request.user.is_authenticated %} - + + {% if form.recaptcha %} +
+ {{ form.recaptcha.errors }} + {{ form.recaptcha }} +
+
+ {% endif %} + + {% if not request.user.is_authenticated %} + {% else %} - + {% endif %}