{% extends "main.html" %}

{% block body %}
    <div class="block-content">
        <h1>Список задач</h1>
        <p class="lead"><br></p>
        <table class="table">
            {% for task in tasks %}
                <tr>
                    <td><a href="logs?job_id={{ task.id }}">{{ task.command }}</a></td>
                    <td>from: {{ task.interval.from }}</td>
                    <td>to: {{ task.interval.to }}</td>
                    <td>period: {{ task.interval.period }}</td>
                    <td>{{ task.distribution }}</td>
{#                    <td>{{ task }}</td>#}
                </tr>
            {% endfor %}
        </table>
    </div>
{% endblock %}


