count only active units; update table headers

parent c2cd3bdd
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<table class="table table-borderless table-hover table-striped"> <table class="table table-borderless table-hover table-striped">
<thead> <thead>
<tr> <tr>
<th>Τύπος σχολείου</th> <th>Τύπος μονάδας</th>
<th style="width: 1%;white-space: nowrap">Πλήθος καταχωρήσεων</th> <th style="width: 1%;white-space: nowrap">Πλήθος καταχωρήσεων</th>
<th style="width: 1%;white-space: nowrap">Πλήθος αιτήσεων</th> <th style="width: 1%;white-space: nowrap">Πλήθος αιτήσεων</th>
</tr> </tr>
......
...@@ -36,6 +36,7 @@ return function (App $app) { ...@@ -36,6 +36,7 @@ return function (App $app) {
$auth = $config['auth']; $auth = $config['auth'];
$url = $baseUri->withQueryValue($baseUri, 'unit_type', $type); $url = $baseUri->withQueryValue($baseUri, 'unit_type', $type);
$url = $url->withQueryValue($url, 'pagesize', 1); $url = $url->withQueryValue($url, 'pagesize', 1);
$url = $url->withQueryValue($url, 'state', 1);
$response = $httpClient->request('GET', $url, ['auth' => $auth]); $response = $httpClient->request('GET', $url, ['auth' => $auth]);
$responseData = json_decode($response->getBody()->getContents(), true); $responseData = json_decode($response->getBody()->getContents(), true);
......
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
<table class="table table-borderless table-hover table-striped"> <table class="table table-borderless table-hover table-striped">
<thead> <thead>
<tr> <tr>
<th>Τύπος σχολείου</th> <th>Τύπος μονάδας</th>
{% if schools_total_global is defined %} {% if schools_total_global is defined %}
<th style="width: 1%;white-space: nowrap">Σχολεία συνολικά</th> <th style="width: 1%;white-space: nowrap">Μονάδες συνολικά</th>
{% endif %} {% endif %}
<th style="width: 1%;white-space: nowrap">Πλήθος καταχωρήσεων</th> <th style="width: 1%;white-space: nowrap">Πλήθος καταχωρήσεων</th>
<th style="width: 1%;white-space: nowrap">Πλήθος αιτήσεων</th> <th style="width: 1%;white-space: nowrap">Πλήθος αιτήσεων</th>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment