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.
34 lines
1009 B
HTML
34 lines
1009 B
HTML
{% extends 'base.html' %}
|
|
|
|
{% block content %}
|
|
|
|
<h1>News Articles</h1>
|
|
|
|
<table class="news-list">
|
|
<tr>
|
|
<td colspan="99" class="centered-td">
|
|
<a class="btn" href="{% url 'mensaviewer:news_create' %}">Add News Article</a>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Title</th>
|
|
<th>Author</th>
|
|
<th>Timestamp</th>
|
|
<th>Menu</th>
|
|
<th></th>
|
|
<th></th>
|
|
</tr>
|
|
{% for newsarticle in object_list %}
|
|
<tr>
|
|
<td><a href="{% url 'mensaviewer:news_detail' newsarticle.pk %}">{{ newsarticle.title }}</a></td>
|
|
<td>{{ newsarticle.author }}</td>
|
|
<td>{{ newsarticle.timestamp }}</td>
|
|
<td><a href="{% url 'mensaviewer:location_detail' newsarticle.location.pk %}">{{ newsarticle.location.city }} - {{ newsarticle.location.name }}</a></td>
|
|
<td class="fit-width"><a href="{% url 'mensaviewer:news_update' newsarticle.pk %}">Edit</a></td>
|
|
<td class="fit-width"><a href="{% url 'mensaviewer:news_delete' newsarticle.pk %}">Delete</a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
|
|
{% endblock %}
|