From a4018f41f7f36f47a9f7b189ecf4eda98a0b9c26 Mon Sep 17 00:00:00 2001 From: atm-lena Date: Wed, 26 Aug 2020 10:52:36 +0200 Subject: [PATCH] WIP --- htdocs/comm/action/card.php | 6 ++++-- htdocs/core/class/html.form.class.php | 7 ++++++- htdocs/langs/en_US/agenda.lang | 4 ++++ htdocs/langs/fr_FR/agenda.lang | 3 ++- 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/htdocs/comm/action/card.php b/htdocs/comm/action/card.php index cda05d21784..b31d6a4d226 100644 --- a/htdocs/comm/action/card.php +++ b/htdocs/comm/action/card.php @@ -66,7 +66,8 @@ $p2min = GETPOST('p2min'); $offsetvalue = GETPOST('offsetvalue'); $offsetunit = GETPOST('offsetunittype_duration'); -$typeremind = GETPOST('typeremind'); +$remindertype = GETPOST('remindertype'); +$modelmail = GETPOST('eventpushmodel_mail'); $datep = dol_mktime($fulldayevent ? '00' : $aphour, $fulldayevent ? '00' : $apmin, 0, GETPOST("apmonth"), GETPOST("apday"), GETPOST("apyear")); $datef = dol_mktime($fulldayevent ? '23' : $p2hour, $fulldayevent ? '59' : $p2min, $fulldayevent ? '59' : '0', GETPOST("p2month"), GETPOST("p2day"), GETPOST("p2year")); @@ -1113,7 +1114,8 @@ if ($action == 'create') if($conf->global->AGENDA_REMINDER_EMAIL || $conf->global->AGENDA_REMINDER_BROWSER) { - print '


'; + print '


'; + print load_fiche_titre($langs->trans("AddReminder"), '', ''); print ''; diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 8d54dc78b13..e3757e3c0ed 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -5673,7 +5673,7 @@ class Form return $retstring; } - public function select_type_duration($prefix){ + public function select_type_duration($prefix, $selected = 'month'){ global $langs; @@ -5684,7 +5684,12 @@ class Form $retstring .= '