cycles/period/templates/cycle/index.html
Alexander Hosking 661b7bd2e6 Add base framework
Add Templates
Add Static Files
Add SQL
2022-04-13 19:12:49 -04:00

22 lines
623 B
HTML

{% extends 'base.html' %}
{% block header %}
<h1>{% block title %}Cycles{% endblock %}</h1><a class="action" href="{{ url_for('cycles.create') }}">New</a>
{% endblock %}
{% block content %}
{% for cycle in cycles %}
<article class="post">
<header>
<div>
<h1>{{ cycle['id'] }}</h1>
<div class="about">Started: {{ cycle['start_time'] }} and ended: {{ cycle['end_time'] }}</div>
</div>
</header>
<p class="body">Cycle Length: {{ cycle['cycle_length'] }} days.</p>
</article>
{% if not loop.last %}
<hr>
{% endif %}
{% endfor %}
{% endblock %}