Parcourir la source

Add date column to leads table

Alan Lam il y a 3 ans
Parent
commit
13ea8a2728
1 fichiers modifiés avec 12 ajouts et 3 suppressions
  1. 12 3
      views/sales_table.php

+ 12 - 3
views/sales_table.php

@@ -4,19 +4,25 @@ namespace App;
 /**
  * @var Sale[] $sales
  */
+
+$core = Core::getInstance();
+$user = $core->getUser();
+
 ?>
 <table class="table table-bordered table-hover mb-3">
 	<colgroup>
 		<col style="width: 1%"/>
-		<col style="width: 33%"/>
-		<col style="width: 33%"/>
-		<col style="width: 33%"/>
+		<col style="width: 55%"/>
+		<col style="width: 15%"/>
+		<col style="width: 15%"/>
+		<col style="width: 15%"/>
 		<col style="width: 1%"/>
 	</colgroup>
 	<thead>
 	<tr>
 		<th><?=htmlspecialchars(__("No."))?></th>
 		<th><?=htmlspecialchars(__("Location"))?></th>
+		<th><?=htmlspecialchars(__("Date"))?></th>
 		<th><?=htmlspecialchars(__("Status"))?></th>
 		<th><?=htmlspecialchars(__("Predicted Sold Date"))?></th>
 		<th><?=htmlspecialchars(__("Actions"))?></th>
@@ -36,6 +42,9 @@ namespace App;
 					<?=htmlspecialchars($location->getDisplayName())?>
 				</a>
 			</td>
+			<td>
+				<?=htmlspecialchars($user->formatDate($sale->getDateTimeCreated()))?>
+			</td>
 			<td>
 				<?=htmlspecialchars($sale->getDisplayStatus())?>
 			</td>