diff options
author | Jayaram R Pai | 2014-07-08 08:57:48 +0530 |
---|---|---|
committer | Jayaram R Pai | 2014-07-08 08:57:48 +0530 |
commit | fd765dab5eab149535ec01540562e8100f582307 (patch) | |
tree | ca9d33a6ce421e9454953b2bb6152854574e5c3f /comments/templates | |
parent | ca738ba0953ab950a16c9b89085c9aab5473e7a5 (diff) | |
download | Python-TBC-Interface-fd765dab5eab149535ec01540562e8100f582307.tar.gz Python-TBC-Interface-fd765dab5eab149535ec01540562e8100f582307.tar.bz2 Python-TBC-Interface-fd765dab5eab149535ec01540562e8100f582307.zip |
added emails field for comment and reply
Diffstat (limited to 'comments/templates')
-rw-r--r-- | comments/templates/comments/get_comments.html | 9 | ||||
-rw-r--r-- | comments/templates/comments/new_comment.html | 4 | ||||
-rw-r--r-- | comments/templates/comments/new_reply.html | 4 |
3 files changed, 15 insertions, 2 deletions
diff --git a/comments/templates/comments/get_comments.html b/comments/templates/comments/get_comments.html index 5dcc84a..71443db 100644 --- a/comments/templates/comments/get_comments.html +++ b/comments/templates/comments/get_comments.html @@ -22,6 +22,7 @@ <div class="accordion-inner"> <blockquote> {{ comment.body }} + <small>{{ comment.email }}</small> </blockquote> <div class="replies"> {% if comment.reply_set.all %} @@ -30,6 +31,7 @@ {% for reply in comment.reply_set.all %} <div class="reply"> <p>{{ reply.body }}</p> + <small> - {{ comment.email }}</small> </div> {% endfor %} <a class="btn btn-success btn-small" href="/comments/new-reply/?comment_id={{ comment.id }}">+ Reply</a> @@ -41,8 +43,11 @@ </div> <!-- /.accordion --> {% else %} <center> - <p> No comments for this example... </p> - <a class="btn btn-primary" href="/comments/new/?book={{ book }}&chapter={{ chapter }}&example={{ example }}&page={{ page }}">Create a new comment</a> + <div class="well"> + <h5>Book: {{ book }} / Chapter: {{ chapter }} / Example: {{ example }}</h5> + <p> <em>Be the first one to create a comment for this example.</em> </p> + <a class="btn btn-primary" href="/comments/new/?book={{ book }}&chapter={{ chapter }}&example={{ example }}&page={{ page }}">+ Create a new comment</a> + </div> </center> {% endif %} </div> <!-- /#recent-comments-form --> diff --git a/comments/templates/comments/new_comment.html b/comments/templates/comments/new_comment.html index d16aa15..64c4ab0 100644 --- a/comments/templates/comments/new_comment.html +++ b/comments/templates/comments/new_comment.html @@ -9,8 +9,12 @@ {{ form.chapter }} {{ form.example }} {{ form.page }} + <label>Comment Title:</label> {{ form.title }}<br> + <label>Comment Description:</label> {{ form.body }} <br> + <label>Email:</label> + {{ form.email }} <br> <input class="btn btn-primary" type="submit" value="Submit"> <a class="btn btn-default" href="/comments/get/?book={{ book }}&chapter={{ chapter }}&example={{ example }}&page={{ page }}">Cancel</a> </form> diff --git a/comments/templates/comments/new_reply.html b/comments/templates/comments/new_reply.html index eac5a06..56c97f5 100644 --- a/comments/templates/comments/new_reply.html +++ b/comments/templates/comments/new_reply.html @@ -5,6 +5,7 @@ <div class="well" style="width: 78%"> <blockquote> {{ comment.body }} + <small>{{ comment.email }}</small> </blockquote> <div class="replies"> {% if comment.reply_set.all %} @@ -13,6 +14,7 @@ {% for reply in comment.reply_set.all %} <div class="reply"> <p>{{ reply.body }}</p> + <small> - {{ reply.email }}</small> </div> {% endfor %} </div> @@ -23,6 +25,8 @@ {{ form.comment_id }} <label>Description:</label> {{ form.body }} <br> + <label>Email:</label> + {{ form.email }} <br> <input class="btn btn-primary" type="submit" value="Submit"> <a class="btn btn-default" href="/comments/get/?book={{ comment.book }}&chapter={{ comment.chapter }}&example={{ comment.example }}&page={{ comment.page }}">Cancel</a> </form> |