Skip to content

Commit dd0a837

Browse files
committed
Doc
1 parent d7fb4a9 commit dd0a837

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

htdocs/cabinetmed/canvas/patient/tpl/card_view.tpl.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,10 +410,10 @@
410410
if (empty($reshook)) {
411411
if (! empty($object->email)) {
412412
$langs->load("mails");
413-
print '<div class="inline-block divButAction"><a class="butAction" href="'.$_SERVER['PHP_SELF'].'?socid='.$object->id.'&action=presend&token='.newToken().'&mode=init">'.$langs->trans('SendMail').'</a></div>';
413+
print dolGetButtonAction('', $langs->trans('SendMail'), 'default', dolBuildUrl($_SERVER["PHP_SELF"], ['socid' => $object->id, 'action' => 'presend', 'mode' => 'init'], true).'#formmailbeforetitle', '');
414414
} else {
415415
$langs->load("mails");
416-
print '<div class="inline-block divButAction"><a class="butActionRefused" href="#" title="'.dol_escape_htmltag($langs->trans("NoEMail")).'">'.$langs->trans('SendMail').'</a></div>';
416+
print dolGetButtonAction($langs->trans('NoEMail'), $langs->trans('SendMail'), 'default', '#', '', false);
417417
}
418418

419419
if ($user->hasRight('societe', 'creer')) {

0 commit comments

Comments
 (0)