index.twig 1.71 KB
Newer Older
1 2 3 4 5 6 7
{% extends "layout.twig" %}
{% block content %}
    <h1>EduLabs σε αριθμούς</h1>
    <div class="table-responsive">
        <table class="table table-borderless table-hover table-striped">
            <thead>
                <tr>
8
                    <th>Τύπος μονάδας</th>
9
                    {% if schools_total_global is defined %}
10
                    <th style="width: 1%;white-space: nowrap">Μονάδες συνολικά</th>
11
                    {% endif %}
12 13 14 15 16 17 18 19
                    <th style="width: 1%;white-space: nowrap">Πλήθος καταχωρήσεων</th>
                    <th style="width: 1%;white-space: nowrap">Πλήθος αιτήσεων</th>
                </tr>
            </thead>
            <tbody>
                {% for row in school_types %}
                    <tr>
                        <th>{{ row.type }}</th>
20 21 22
                        {% if row.schools_total is defined %}
                        <td class="text-center">{{ row.schools_total }}</td>
                        {% endif %}
23 24 25 26 27 28 29 30
                        <td class="text-center">{{ row.schools_cnt }}</td>
                        <td class="text-center">{{ row.appforms_cnt }}</td>
                    </tr>
                {% endfor %}
            </tbody>
            <tfoot>
                <tr>
                    <td></td>
31 32 33
                    {% if schools_total_global is defined %}
                    <th class="text-center">{{ schools_total_global }}</th>
                    {% endif %}
34 35 36 37 38 39 40
                    <th class="text-center">{{ totals.schools_total }}</th>
                    <th class="text-center">{{ totals.appforms_total }}</th>
                </tr>
            </tfoot>
        </table>
    </div>
{% endblock %}