{% extends "base.html" %}
{% load staticfiles %}

{% block title %}任务列表{% endblock %}

{% block staticcss %}

{% endblock %}

{% block staticjs %}



{% endblock %}

{% block content %}


<!-- Page Content -->
<div id="page-wrapper">


    {% if messages %}
    <ul class="messages">
        {% for message in messages %}
        <div {% if message.tags %} class="alert alert-{{ message.tags }}" {% endif %}><strong>{{ message }}</strong>
        </div>
        {% endfor %}
    </ul>
    {% endif %}

    <div class="container-fluid">
        <div class="d-sm-flex align-items-center justify-content-between mb-4">
            <h1 class="h3 mb-0 text-gray-800">任务统计</h1>
        </div>
    </div>
    <!-- /.container-fluid -->
    <!-- /.row -->



    <div class="row">
        <div class="col-lg-6">
            <div class="card shadow mb-4">
                <div class="card-header py-3">
                    <h6 class="m-0 font-weight-bold text-primary">本周创建任务统计</h6>
                </div>
                <div class="card-body">
                    <div class="panel-body">

                        <div class="dataTable_wrapper">

                            <table width="100%" class="table table-striped table-bordered table-hover"
                                id="dataTables-example">
                                <thead>
                                    <tr>
                                        <th>ID</th>
                                        <th>用户</th>
                                        <th>本周分配任务数</th>

                                    </tr>
                                </thead>
                                <tbody>
                                    {% for list in CreateNum %}
                                    <tr class="odd gradeX">

                                        <td>{{ forloop.counter }}</td>
                                        <td>{{ list.username }}</td>
                                        <td>{{ list.task_num }}</td>
                                    </tr>
                                    {% endfor %}
                                </tbody>
                            </table>
                        </div>
                    </div>

                </div>
            </div>

        </div>

        <div class="col-lg-6">
            <div class="card shadow mb-4">
                <div class="card-header py-3">
                    <h6 class="m-0 font-weight-bold text-primary">本周完成任务统计</h6>
                </div>
                <div class="card-body">
                    <div class="panel-body">

                        <div class="dataTable_wrapper">

                            <table width="100%" class="table table-striped table-bordered table-hover"
                                id="dataTables-example">
                                <thead>
                                    <tr>
                                        <th>ID</th>
                                        <th>用户</th>
                                        <th>本周完成数</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    {% for list in ComNum %}
                                    <tr class="odd gradeX">

                                        <td>{{ forloop.counter }}</td>
                                        <td>{{ list.username }}</td>
                                        <td>{{ list.task_num }}</td>
                                    </tr>
                                    {% endfor %}
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
           
        </div>

    </div>

</div>




{% endblock %}