Skip to content

Commit

Permalink
Merge pull request #887 from Viborg-IT/vendor-link
Browse files Browse the repository at this point in the history
Update client_vendors.php
  • Loading branch information
johnnyq authored Feb 22, 2024
2 parents 4fddeb8 + 30b6f9b commit f363e7e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion client_vendors.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
<th><a class="text-secondary" href="?<?php echo $url_query_strings_sort; ?>&sort=vendor_name&order=<?php echo $disp; ?>">Vendor</a></th>
<th><a class="text-secondary" href="?<?php echo $url_query_strings_sort; ?>&sort=vendor_description&order=<?php echo $disp; ?>">Description</a></th>
<th>Contact</th>
<th>Website</th>
<th class="text-center">Action</th>
</tr>
</thead>
Expand Down Expand Up @@ -111,7 +112,13 @@
$vendor_code = nullable_htmlentities($row['vendor_code']);
$vendor_notes = nullable_htmlentities($row['vendor_notes']);
$vendor_template_id = intval($row['vendor_template_id']);


if (empty($vendor_website)) {
$vendor_website_display = "-";
} else {
$vendor_website_display = "<button class='btn btn-sm clipboardjs' data-clipboard-text='$vendor_website'><i class='far fa-copy text-secondary'></i></button><a href='https://$vendor_website' target='_blank'><i class='fa fa-external-link-alt text-secondary'></i></a>";
}

?>
<tr>
<th>
Expand Down Expand Up @@ -143,6 +150,7 @@
<br>
<?php } ?>
</td>
<td><?php echo $vendor_website_display; ?></td>
<td>
<div class="dropdown dropleft text-center">
<button class="btn btn-secondary btn-sm" type="button" data-toggle="dropdown">
Expand Down

0 comments on commit f363e7e

Please sign in to comment.