Explorar o código

Add more columns to suppliers table

Alan Lam %!s(int64=3) %!d(string=hai) anos
pai
achega
b16e3d18bd
Modificáronse 1 ficheiros con 13 adicións e 4 borrados
  1. 13 4
      views/suppliers.php

+ 13 - 4
views/suppliers.php

@@ -33,14 +33,20 @@ else {
 	?>
 	?>
 	<table class="table table-bordered table-hover mb-3">
 	<table class="table table-bordered table-hover mb-3">
 		<colgroup>
 		<colgroup>
-			<col style="width: 20%"/>
-			<col style="width: 60%"/>
-			<col style="width: 20%"/>
+			<col style="width: 1%"/>
+			<col style="width: 25%"/>
+			<col style="width: 25%"/>
+			<col style="width: 25%"/>
+			<col style="width: 25%"/>
+			<col style="width: 1%"/>
 		</colgroup>
 		</colgroup>
 		<thead>
 		<thead>
 		<tr>
 		<tr>
 			<th><?=htmlspecialchars(__("ID"))?></th>
 			<th><?=htmlspecialchars(__("ID"))?></th>
 			<th><?=htmlspecialchars(__("Name"))?></th>
 			<th><?=htmlspecialchars(__("Name"))?></th>
+			<th><?=htmlspecialchars(__("Phone"))?></th>
+			<th><?=htmlspecialchars(__("Fax"))?></th>
+			<th><?=htmlspecialchars(__("Email"))?></th>
 			<th><?=htmlspecialchars(__("Actions"))?></th>
 			<th><?=htmlspecialchars(__("Actions"))?></th>
 		</tr>
 		</tr>
 		</thead>
 		</thead>
@@ -53,7 +59,10 @@ else {
 				<td>
 				<td>
 					<?=htmlspecialchars($supplier->name)?>
 					<?=htmlspecialchars($supplier->name)?>
 				</td>
 				</td>
-				<td class="p-1">
+				<td><?=htmlspecialchars($supplier->phone)?></td>
+				<td><?=htmlspecialchars($supplier->fax)?></td>
+				<td><?=htmlspecialchars($supplier->email)?></td>
+				<td class="p-1 text-nowrap">
 					<a class="btn btn-sm btn-primary" href="<?=htmlspecialchars($supplier->getUrl())?>">
 					<a class="btn btn-sm btn-primary" href="<?=htmlspecialchars($supplier->getUrl())?>">
 						<?=htmlspecialchars(__("View"))?>
 						<?=htmlspecialchars(__("View"))?>
 					</a>
 					</a>