From 94b2f3c5e1f921acb1eb30e418b6edf461907cdd Mon Sep 17 00:00:00 2001 From: atm-lena Date: Tue, 25 Aug 2020 12:57:36 +0200 Subject: [PATCH] Add $conf conditions --- htdocs/comm/action/card.php | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/htdocs/comm/action/card.php b/htdocs/comm/action/card.php index 7090438c7ce..d3548a2505f 100644 --- a/htdocs/comm/action/card.php +++ b/htdocs/comm/action/card.php @@ -1110,26 +1110,33 @@ if ($action == 'create') print ''; - print '


'; - print ''; + if($conf->global->AGENDA_REMINDER_EMAIL || $conf->global->AGENDA_REMINDER_BROWSER) + { + print '


'; - //Reminder - print ''; + print '
'.$langs->trans("Reminder").''; - print ''; - print '
'; - //Reminder Type - print ''; + //Reminder + print ''; - //Notification - print ''; + //Reminder Type + print ''; - print '
'.$langs->trans("ReminderType").''; - print $form->select_type_duration('offsetunit'); - print '
'.$langs->trans("Reminder").''; + print ''; + print '
'.$langs->trans("TypeRemind").''; - print $form->selectarray('typeremind', array('mail'=>$langs->trans('EMail'), 'push'=>$langs->trans('OSNotif'))); - print '
'.$langs->trans("ReminderType").''; + print $form->select_type_duration('offsetunit'); + print '
'; + //Notification + $TRemindTypes = array(); + if(!empty($conf->global->AGENDA_REMINDER_EMAIL)) $TRemindTypes['mail'] = $langs->trans('EMail'); + if(!empty($conf->global->AGENDA_REMINDER_BROWSER)) $TRemindTypes['push'] = $langs->trans('OSNotif'); + print ''.$langs->trans("TypeRemind").''; + print $form->selectarray('typeremind',$TRemindTypes); + print ''; + + print ''; + } dol_fiche_end();