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

Add location link to lead page

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

+ 7 - 1
views/sale.php

@@ -13,6 +13,8 @@ use App\Helpers\HtmlHelper;
 $core = Core::getInstance();
 $core = Core::getInstance();
 $user = $core->getUser();
 $user = $core->getUser();
 
 
+$location = $sale->getLocation();
+
 ?>
 ?>
 
 
 <section class="mb-4">
 <section class="mb-4">
@@ -90,7 +92,11 @@ $user = $core->getUser();
 
 
 				<dl>
 				<dl>
 					<dt><?=htmlspecialchars(__("Location"))?></dt>
 					<dt><?=htmlspecialchars(__("Location"))?></dt>
-					<dd><?=htmlspecialchars($sale->getLocation()->getDisplayName())?></dd>
+					<dd>
+						<a href="<?=htmlspecialchars($location->getUrl())?>">
+							<?=htmlspecialchars($location->getDisplayName())?>
+						</a>
+					</dd>
 
 
 					<dt><?=htmlspecialchars(__("Created By"))?></dt>
 					<dt><?=htmlspecialchars(__("Created By"))?></dt>
 					<dd><?=htmlspecialchars($sale->getUser()->getDisplayName())?></dd>
 					<dd><?=htmlspecialchars($sale->getUser()->getDisplayName())?></dd>