{% extends "wagtailadmin/generic/index.html" %}
{% load i18n %}

{% block listing %}
    <div class="nice-padding">
        {% if workflows %}
            <div id="sites-list">
                <table class="listing">
                    <thead>
                        <tr>
                            <th>
                                {% trans "Name" %}
                            </th>
                            <th>
                                {% trans "Tasks" %}
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                        {% for workflow in workflows %}
                            <tr>
                                <td class="title">
                                    <div class="title-wrapper">
                                        <a href="{% url view.edit_url_name workflow.pk %}">{{ workflow }}</a>
                                    </div>
                                </td>
                                <td class="tasks">
                                    <div class="task-wrapper">
                                        {% for task in workflow.tasks %}
                                        <button class="status-tag primary" >{{ task }}</button>
                                        {% endfor %}
                                    </div>
                                </td>
                            </tr>
                        {% endfor %}
                    </tbody>
                </table>

            </div>
        {% else %}
            {% url view.add_url_name as add_url %}
            <p>{% blocktrans %}No workflows have been created. Why not <a href="{{ add_url }}">add one</a>?{% endblocktrans %}</p>
        {% endif %}
    </div>
{% endblock %}

{% extends "wagtailadmin/generic/index.html" %}
{% load i18n %}

{% block listing %}
    <div class="nice-padding">
        {% if workflows %}
            <div id="sites-list">
                <table class="listing">
                    <thead>
                        <tr>
                            <th>
                                {% trans "Name" %}
                            </th>
                            <th>
                                {% trans "Tasks" %}
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                        {% for workflow in workflows %}
                            <tr>
                                <td class="title">
                                    <div class="title-wrapper">
                                        <a href="{% url view.edit_url_name workflow.pk %}">{{ workflow }}</a>
                                        {% if not workflow.active %}
                                            <span class="status-tag">Disabled</span>
                                        {% endif %}
                                    </div>
                                </td>
                                <td class="tasks">
                                    <div class="task-wrapper">
                                        {% for task in workflow.tasks %}
                                        <button class="status-tag primary" >{{ task }}</button>
                                        {% endfor %}
                                    </div>
                                </td>
                            </tr>
                        {% endfor %}
                    </tbody>
                </table>

            </div>
        {% else %}
            {% url view.add_url_name as add_url %}
            <p>{% blocktrans %}No workflows have been created. Why not <a href="{{ add_url }}">add one</a>?{% endblocktrans %}</p>
        {% endif %}
    </div>
{% endblock %}

Add status tag to disabled workflows
Add status tag to disabled workflows
