diff options
author | bnewbold <bnewbold@manus.(none)> | 2007-03-07 01:09:52 -0800 |
---|---|---|
committer | bnewbold <bnewbold@manus.(none)> | 2007-03-07 01:09:52 -0800 |
commit | b148bab8f549792f19ae0256c00c282f29e061dc (patch) | |
tree | e08cccaa5257e77faea258891cfd3974ec641ba8 /bn_django/templates/comments/form.html | |
parent | 3a454ef090f5afe3d0ddf119afa0ca6312e52c3b (diff) | |
download | bnewnet-b148bab8f549792f19ae0256c00c282f29e061dc.tar.gz bnewnet-b148bab8f549792f19ae0256c00c282f29e061dc.zip |
much work; comments working for photos, static content moved, more
Diffstat (limited to 'bn_django/templates/comments/form.html')
-rw-r--r-- | bn_django/templates/comments/form.html | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/bn_django/templates/comments/form.html b/bn_django/templates/comments/form.html index 403dd2b..a2af1be 100644 --- a/bn_django/templates/comments/form.html +++ b/bn_django/templates/comments/form.html @@ -1,11 +1,14 @@ {% load i18n %} <form {% if photos_optional or photos_required %}enctype="multipart/form-data" {% endif %}action="/comments/post/" method="post"> +<p><textarea name="comment" id="id_comment"></textarea></p> +<input class="submit" type="submit" name="preview" value="{% trans "Preview comment" %}" /> {% if user.is_authenticated %} -<p>{% trans "Username:" %} <strong>{{ user.username }}</strong> (<a href="/accounts/logout/">{% trans "Log out" %}</a>)</p> +<p> {% trans "Username:" %} <strong>{{ user.username }}</strong> (<a href="/accounts/logout/">{% trans "Log out" %}</a>) {% else %} -<p><label for="id_username">{% trans "Username:" %}</label> <input type="text" name="username" id="id_username" /><br />{% trans "Password:" %} <input type="password" name="password" id="id_password" /> (<a href="/accounts/password_reset/">{% trans "Forgotten your password?" %}</a>)</p> +<p><label for="id_username">{% trans "Username:" %}</label> <input type="text" name="username" id="id_username" /><br />{% trans "Password:" %} <input type="password" name="password" id="id_password" /> (<a href="/accounts/password_reset/">{% trans "Forgotten your password?" %}</a>) {% endif %} +</p> {% if ratings_optional or ratings_required %} <p>{% trans "Ratings" %} ({% if ratings_required %}{% trans "Required" %}{% else %}{% trans "Optional" %}{% endif %}):</p> @@ -24,13 +27,10 @@ <input type="hidden" name="photo_options" value="{{ photo_options }}" /> {% endif %} -<p><label for="id_comment">{% trans "Comment:" %}</label><br /> -<textarea name="comment" id="id_comment" rows="10" cols="60"></textarea></p> <p> <input type="hidden" name="options" value="{{ options }}" /> -<input type="hidden" name="target" value="{{ target }}{{object.type}}:{{object.id}}" /> -<input type="hidden" name="gonzo" value="{{ hash }}asdf" /> -<input type="submit" name="preview" value="{% trans "Preview comment" %}" /> +<input type="hidden" name="target" value="{{ target }}" /> +<input type="hidden" name="gonzo" value="{{ hash }}" /> </p> </form> |