templates/comments/thread.html (raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
{% load static %} <html> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="description" content="lair of nilix" /> <meta name="HandheldFriendly" content="True" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>comments for {{ thread.thread_id }}</title> <link rel="shortcut icon" href="/favicon.ico"> <link rel="stylesheet" type="text/css" href="{% static "thread.css" %} "> </head> <body> <div id="main"> {% for comment in comments %} <div class="commentwrapper"> <div class="author">{{ comment.comment_author }}</div> <div class="datetime">{{ comment.comment_date }}</div> <div class="commentdata">{{ comment.comment_data }}</div> </div> {% endfor %} <p> Post a comment</p> {% if error_message %} <b id="errormsg"> {{ error_message }} </b> {% endif %} <div class="formwrapper"> <form action = "{% url 'comments:post' thread.thread_id %}" method="POST"> {% csrf_token %} name:<br/> <input type="text" name="comment_author" class="myInputs" maxlength=128/><br/> email:<br/> <input type="text" name="comment_author_email" class="myInputs" maxlength=128/><br/> comment:<br/> <textarea name="comment_data" class="myInputs" rows="10" cols="70" wrap="hard"></textarea><br/> <input type="submit" value="Post" class="myButton"/> </form><br/> </div> </div> </body> </html> |