{% extends "base.html" %}

{% block title %}{{ state }} Workflows Index{% endblock %}

{% block content %}
<h3 class="text-center">{{ '{:,}'.format(wf_count) }} {{ state|lower }} Workflow{{ wf_count|pluralize }}</h3>

<!-- TABLE -->
<table class="table table-bordered">
    <tr><th colspan="2"><span class="label {{state}}">{{ state }}</span> Workflows</th></tr>
    <tr>
        <th>ID</th>
        <th>Name</th>
        <th>Created On</th>
    </tr>
    {% for row in rows %}
        <tr>
            <td><center><a href="/wf/{{ row.fw_id }}">{{ row.fw_id }}</a></center></td>
            <td>{{ row.name }}</td>
            <td>{{ row.created_on }}</td>
        </tr>
    {% endfor %}
</table>
{{ pagination.links|safe }}

{% endblock %}
