Explorar o código

Add travel costs photo to list group

Alan Lam %!s(int64=6) %!d(string=hai) anos
pai
achega
2295161744
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      views/test_verify_form.php

+ 4 - 0
views/test_verify_form.php

@@ -73,6 +73,10 @@ if($tester) {
 		$tester_invoice_details["PDF"] = "<a href=\"/account/tests/{$test->id}/invoice\" target=\"_blank\">Download Invoice</a>";
 	}
 
+	if($test->hasTravelCostsPhoto()) {
+		$tester_invoice_details["Photo"] = "<a href=\"/account/tests/{$test->id}/files/travel_costs\" target=\"_blank\">View Photo</a>";
+	}
+
 }
 
 function render_card_list_group($details) {