Explorar o código

Add address column to locations table

Alan Lam %!s(int64=3) %!d(string=hai) anos
pai
achega
347f30dc21
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  1. 6 1
      views/locations_table.php

+ 6 - 1
views/locations_table.php

@@ -10,7 +10,8 @@ namespace App;
 <table class="table table-bordered table-hover mb-3">
 	<colgroup>
 		<col style="width: 1%"/>
-		<col style="width: 40%"/>
+		<col style="width: 20%"/>
+		<col style="width: 20%"/>
 		<col style="width: 40%"/>
 		<col style="width: 20%"/>
 	</colgroup>
@@ -19,6 +20,7 @@ namespace App;
 		<th><?=htmlspecialchars(__("ID"))?></th>
 		<th><?=htmlspecialchars(__("Customer"))?></th>
 		<th><?=htmlspecialchars(__("Name"))?></th>
+		<th><?=htmlspecialchars(__("Address"))?></th>
 		<th><?=htmlspecialchars(__("Actions"))?></th>
 	</tr>
 	</thead>
@@ -37,6 +39,9 @@ namespace App;
 			<td>
 				<?=htmlspecialchars($location->name)?>
 			</td>
+			<td>
+				<?=htmlspecialchars($location->getAddress())?>
+			</td>
 			<td class="p-1">
 				<a class="btn btn-sm btn-primary" href="<?=htmlspecialchars($location->getUrl())?>">
 					<?=htmlspecialchars(__("View"))?>