You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
811 B
HTML
32 lines
811 B
HTML
{% extends 'base.html' %}
|
|
|
|
{% block content %}
|
|
|
|
<h1>Comments</h1>
|
|
|
|
<table class="comment-list">
|
|
<tr>
|
|
<td colspan="99" class="centered-td">
|
|
<a class="btn" href="{% url 'mensaviewer:comment_create' %}">Add Comment</a>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Author</th>
|
|
<th>Timestamp</th>
|
|
<th>Menu</th>
|
|
<th></th>
|
|
<th></th>
|
|
</tr>
|
|
{% for comment in object_list %}
|
|
<tr>
|
|
<td>{{ comment.author }}</td>
|
|
<td>{{ comment.timestamp }}</td>
|
|
<td><a href="{% url 'mensaviewer:menu_detail' comment.menu.pk %}">{{ comment.menu }}</a></td>
|
|
<td class="fit-width"><a href="{% url 'mensaviewer:comment_update' comment.pk %}">Edit</a></td>
|
|
<td class="fit-width"><a href="{% url 'mensaviewer:comment_delete' comment.pk %}">Delete</a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
|
|
{% endblock %}
|