Skip to content
Snippets Groups Projects
Commit 012c6d0f authored by Ying Tung Lau's avatar Ying Tung Lau :cartwheel_tone1:
Browse files

Upload New File

parent bbe424d9
No related branches found
No related tags found
No related merge requests found
{% extends 'layout.html' %}
{% block title %}Comment Corner{% endblock title %}
{% block content %}
<h1>Leave a Comment</h1>
<form method="POST" action="{{ url_for('commentposted') }}">
<div>
<label for="name">Name:</label>
{{ comment.name(class="form-control") }}
</div>
<div>
<label for="comment">Comment:</label>
{{ comment.comment(class="form-control") }}
</div>
{{ comment.submit() }}
</form>
<h1>Recent Comments</h1>
<form method="POST" action="{{ url_for('comment_order') }}">
<label for="order">Order by date:</label>
{{ filter.option }}
{{ filter.submit() }}
</form>
<div id="comments-container">
{% for mycomment in recentcomments %}
<div class="comment-container">
<div class="comment-date">{{ mycomment.date }}</div>
<div class="comment-name">{{ mycomment.name }}</div>
<div class="comment-text">{{ mycomment.comment }}</div>
</div>
{% endfor %}
</div>
{% endblock content %}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment