Browse Source

rend le lien de partage cliquable

master
vince vince 2 years ago
parent
commit
cee1f27df0
1 changed files with 3 additions and 11 deletions
  1. +3
    -11
      index.php

+ 3
- 11
index.php View File

@ -325,6 +325,8 @@ if ($supplierIsNew and !empty($suppliers)) {
});
}
$linkUrl = !$hasSupplier ? generateUrl() : (!$hasEvent ? generateUrl($supplier) : generateUrl($supplier, $event));
?><!DOCTYPE html>
<html lang="fr">
<head>
@ -671,17 +673,7 @@ if ($supplierIsNew and !empty($suppliers)) {
Adresse web
</div>
<div class="col-12 text-center">
<tt id="linkURL">
<?php if (!$hasSupplier) : ?>
<?php echo generateUrl(); ?>
<?php else : ?>
<?php if (!$hasEvent) : ?>
<?php echo generateUrl($supplier); ?>
<?php else : ?>
<?php echo generateUrl($supplier, $event); ?>
<?php endif; ?>
<?php endif; ?>
</tt>
<a href="<?php echo $linkUrl; ?>"><tt id="linkURL"><?php echo $linkUrl; ?></tt></a>
<button class="btn btn-outline-dark js-clipboard" type="button" role="button" data-clipboard-target="#linkURL" data-bs-toggle="tooltip" data-bs-trigger="manual">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-clipboard" viewBox="0 0 16 16">
<path d="M4 1.5H3a2 2 0 0 0-2 2V14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3.5a2 2 0 0 0-2-2h-1v1h1a1 1 0 0 1 1 1V14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3.5a1 1 0 0 1 1-1h1v-1z"/>


Loading…
Cancel
Save