diff --git a/htdocs/contrat/card.php b/htdocs/contrat/card.php index 3509134c70f..de45d433f71 100644 --- a/htdocs/contrat/card.php +++ b/htdocs/contrat/card.php @@ -2206,12 +2206,22 @@ if ($action == 'create') { $linktoelem = $form->showLinkToObjectBlock($object, null, array('contrat')); $somethingshown = $form->showLinkedObjectBlock($object, $linktoelem); + // Show online signature link + $useonlinesignature = 1; + + if ($object->statut != Contrat::STATUS_DRAFT && $useonlinesignature) { + print '
'; + require_once DOL_DOCUMENT_ROOT.'/core/lib/signature.lib.php'; + print showOnlineSignatureUrl('contract', $object->ref).'
'; + } + print '
'; $MAXEVENT = 10; $morehtmlcenter = dolGetButtonTitle($langs->trans('SeeAll'), '', 'fa fa-bars imgforviewmode', DOL_URL_ROOT.'/contrat/agenda.php?id='.$object->id); + // List of actions on element include_once DOL_DOCUMENT_ROOT.'/core/class/html.formactions.class.php'; $formactions = new FormActions($db);