Просмотр исходного кода

Adjust text size and split internal ID to its own column

Alan Lam 7 лет назад
Родитель
Сommit
ec5073d2ff
1 измененных файлов с 6 добавлено и 9 удалено
  1. 6 9
      views/location_list.php

+ 6 - 9
views/location_list.php

@@ -1,9 +1,10 @@
 <div class="table-responsive limit-height-2">
-	<table class="table table-sm table-hover">
+	<table class="table table-sm table-sm-text table-hover">
 		<thead>
 			<tr>
 				<th class="text-right pr-3">ID</th>
 				<th>Name / Address</th>
+				<th>Internal ID</th>
 				<th></th>
 			</tr>
 		</thead>
@@ -25,17 +26,13 @@
 					}
 					?>
 					<br />
-					<?php
-					if($location->internal_id) {
-						?>
-						<small class="text-info">Internal ID: <?=htmlspecialchars($location->internal_id)?></small><br />
-						<?php
-					}
-					?>
 					<small><?=htmlspecialchars($location->getDisplayAddress(["address_1", "address_2", "city", "postal_code"]))?></small>
 				</td>
+				<td>
+					<?=htmlspecialchars($location->internal_id)?>
+				</td>
 				<td class="text-right align-middle">
-					<a class="btn btn-outline-primary" href="/account/locations/<?=$location->id?>/edit">Edit</a>
+					<a class="btn btn-sm btn-outline-primary" href="/account/locations/<?=$location->id?>/edit">Edit</a>
 				</td>
 			</tr>
 			<?php