49 lines
1.2 KiB
HTML
49 lines
1.2 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}Counts{% endblock %}
|
|
|
|
{% block content %}
|
|
<h1 class="center">Counts</h1>
|
|
{% include 'pagination.html' %}
|
|
<table class="centered">
|
|
<thead>
|
|
<tr>
|
|
<th>Date</th>
|
|
<th>Arrow count</th>
|
|
<th>Edit</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for c in counts %}
|
|
<tr>
|
|
<td>{{ c.date|date }}</td>
|
|
<td>{{ c.count }}</td>
|
|
<td>
|
|
<a href="{% url "count_edit" c.id %}"
|
|
class="btn waves-effect waves-light">
|
|
<i class="material-icons">edit</i>
|
|
</a>
|
|
<form class="inline-block" method="post" action="{% url "count_delete" c.id %}">
|
|
{% csrf_token %}
|
|
<button type="submit" class="red btn waves-effect waves-light">
|
|
<i class="material-icons">delete</i>
|
|
</button>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
{% empty %}
|
|
<tr>
|
|
<td colspan="2">No counts saved</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% include 'pagination.html' %}
|
|
<div class="fixed-action-btn">
|
|
<a class="btn-floating btn-large waves-effect waves-light red"
|
|
href="{% url "count_new" %}">
|
|
<i class="material-icons">add</i>
|
|
</a>
|
|
</div>
|
|
{% endblock %}
|