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/preview.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/preview.html')
-rw-r--r-- | bn_django/templates/comments/preview.html | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/bn_django/templates/comments/preview.html b/bn_django/templates/comments/preview.html new file mode 100644 index 0000000..052b373 --- /dev/null +++ b/bn_django/templates/comments/preview.html @@ -0,0 +1,46 @@ +{% extends "base.html" %} + + +{% block title %}Preview your comment{% endblock %} + +{% block content %} + +<form action="../post/" method="post"> + {% if comment_form.has_errors %} + <p><strong style="color: red;">Please correct the following errors.</strong></p> + {% else %} + <div class="comment"> + {{ comment.comment|escape|urlizetrunc:"40"|linebreaks }} + <p class="date small">Posted by <strong>{{ comment.person_name }}</strong></p> + </div> + + <p><input type="submit" name="post" value="Post public comment" /></p> + + <h1>Or edit it again</h1> + {% endif %} + + {% if comment_form.person_name.errors %} + {{ comment_form.person_name.html_error_list }} + {% endif %} + + <p><label for="id_person_name">Your name:</label> {{ comment_form.person_name }}</p> + + {% if comment_form.comment.errors %} + {{ comment_form.comment.html_error_list }} + {% endif %} + + <p> + <label for="id_comment">Comment:</label> + <br /> + {{ comment_form.comment }} + </p> + + <input type="hidden" name="options" value="{{ options }}" /> + <input type="hidden" name="target" value="{{ target }}" /> + <input type="hidden" name="gonzo" value="{{ hash }}" /> + + <p> + <input type="submit" name="preview" value="Preview revised comment" /> + </p> +</form> +{% endblock %} |