Source

django-fitlog / fitlog / templates / fitlog / bodyweight_log.html

Full commit
{% extends "fitlog/base.html" %}
{% load pagination_tags %}

{% block body %}
<a href='{% url 'add_bodyweight_log' %}'>Add New Body Weight Log</a>

<h1>Body Weight Log</h1>
{% autopaginate bodyweight_log %}
    <table border='1' width='50%'>
        <thead><tr><th>Date</th><th>Weight (pounds)</th><th>Comments</th></tr></thead>
        <tbody>
    {% for log in bodyweight_log %}
        <tr><td>{{log.weight_date}}</td><td>{{log.weight}}</td><td>&nbsp;{{log.comments|linebreaksbr}}</td></tr>
    {% endfor %}
        </tbody>
    </table>
{% paginate %}

<a href='{% url 'add_bodyweight_log' %}'>Add New Body Weight Log</a>

{% endblock body %}