From ef8f66ba6c7a22c277c6315df8040365b5684e6c Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Wed, 5 Aug 2009 22:50:08 -0400 Subject: added anonymous posting, per-question subscription and fixes by Pothers and some more, see development.log --- templates/ask.html | 52 +++++++++++++++++++++------------------------------- 1 file changed, 21 insertions(+), 31 deletions(-) (limited to 'templates/ask.html') diff --git a/templates/ask.html b/templates/ask.html index 1b00a701..4aa18dd5 100644 --- a/templates/ask.html +++ b/templates/ask.html @@ -1,5 +1,5 @@ - {% extends "base.html" %} + {% load i18n %} {% block title %}{% spaceless %}{% trans "Ask a question" %}{% endspaceless %}{% endblock %} {% block forejs %} @@ -62,6 +62,19 @@
+ {% if not request.user.is_authenticated %} +
+

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

+
+ {% 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{% endblocktrans %} +
+ {% endif %} + {% endifequal %} + {% endif %}


{{ form.title }} {{ form.title.errors }} @@ -92,40 +105,17 @@

- {{ form.tags.label_tag }}:
+ {{ form.tags.label_tag }}: {% trans "(required)" %}
{{ form.tags }} {{ form.tags.errors }} -

- {{ form.tags.help_text }} -

-
+

+ {{ form.tags.help_text }} +

{% if not request.user.is_authenticated %} - - - - - - -
- {% trans "Use" %} OpenID {% trans "Login" %}:
- {{ form.openid }} -
- {% trans "Get your own "%} OpenID。 -
-
-
-
-
- {% trans "User name" %}:
- {{ form.user }} -

- {% trans "Email: (won't be shown to anyone)" %}:
- {{ form.email }} -

-
- {% endif %} + + {% else %} -

+ {% endif %}
-- cgit v1.2.3-1-g7c22