Răsfoiți Sursa

Added counts to locations and projects.

Alan Lam 8 ani în urmă
părinte
comite
0c0393c8df
2 a modificat fișierele cu 5 adăugiri și 1 ștergeri
  1. 4 1
      views/locations.php
  2. 1 0
      views/projects.php

+ 4 - 1
views/locations.php

@@ -5,7 +5,10 @@ var customerId = <?=$customer->id?>;
 <div class="container mt-3 py-4">
 	<div class="row">
 		<div class="col">
-			<h2><?=htmlspecialchars($customer->name)?> Locations</h2>
+			<h2>
+				<?=htmlspecialchars($customer->name)?> Locations
+				<span class="badge badge-pill badge-primary"><?=number_format(count($locations))?></span>
+			</h2>
 		</div>
 		<div class="col-auto">
 			<button type="button" class="btn btn-outline-primary" data-toggle="collapse" data-target="#project-filters">

+ 1 - 0
views/projects.php

@@ -4,6 +4,7 @@
 		<div class="col-auto">
 			<h2>
 				<?=htmlspecialchars($customer->name)?> Projects
+				<span class="badge badge-pill badge-primary"><?=number_format(count($projects))?></span>
 			</h2>
 		</div>
 		<div class="col text-right">