{% extends 'base.html' %}


{% block content %}
    <div class='row'>
        <div class='col-lg-12'>
            <div class="card card-primary card-outline">
                {% if page_title %}
                    <div class="card-header">
                        <h3 class="card-title">{{ page_title }}</h3>
                    </div>
                {% endif %}
                <div class="card-body">
                    <div class="row">
                        <div class="col-lg-12">
                            <table class="table table-hover datatables-no-export">
                                <thead>
                                <tr>
                                    <th>ID</th>
                                    <th>Created</th>
                                    <th>Total Tasks</th>
                                    <th>Success</th>
                                    <th>Error</th>
                                    <th>Status</th>
                                </tr>

                                </thead>
                                <tbody>
                                {% for import in import_list %}
                                    <tr>
                                        <td>
                                            <a href="/router/import_tool/details/?uuid={{ import.csv_data.uuid }}">
                                                {{ import.csv_data.id }}
                                            </a>
                                        </td>
                                        <td>
                                            {{ import.csv_data.created }}
                                        </td>
                                        <td>{{ import.task_count }}</td>
                                        <td>{{ import.success_count }}</td>
                                        <td>{{ import.error_count }}</td>
                                        <td>{{ import.status }}</td>
                                    </tr>
                                {% endfor %}

                                </tbody>
                            </table>
                        </div>

                    </div>
                    <div class="row">
                        <div class="col-lg-12">
                            <a href="/router/import_tool/csv/" class="btn btn-primary">Import CSV</a>
                        </div>

                    </div>

                </div>
            </div>
        </div>
    </div>
{% endblock %}

{% block custom_page_scripts %}

{% endblock %}