From b1c1de422fc356334a0f536ca0112bb25816279b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 3 Mar 2016 10:05:40 +0100 Subject: [PATCH] Enhance look of cron job list --- htdocs/core/lib/cron.lib.php | 2 +- htdocs/cron/list.php | 30 +++++++++++++----------------- 2 files changed, 14 insertions(+), 18 deletions(-) diff --git a/htdocs/core/lib/cron.lib.php b/htdocs/core/lib/cron.lib.php index 6aeaad4d628..d7a0a57ac37 100644 --- a/htdocs/core/lib/cron.lib.php +++ b/htdocs/core/lib/cron.lib.php @@ -116,7 +116,7 @@ function dol_print_cron_urls() { print $langs->trans("CronExplainHowToRunUnix"); print '
'; - print '
'; + print '
'; } else { diff --git a/htdocs/cron/list.php b/htdocs/cron/list.php index 24edb62aac8..eb365dbd5b8 100644 --- a/htdocs/cron/list.php +++ b/htdocs/cron/list.php @@ -182,8 +182,18 @@ print ''; print_barre_liste($pagetitle, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $stringcurrentdate, $num, 0, 'title_setup', 0, '', '', $limit); -print $langs->trans('CronInfo'); -print "

"; + +// Line with explanation and button new job +if (! $user->rights->cron->create) +{ + $buttontoshow.=''.$langs->trans("CronCreateJob").''; +} +else +{ + $buttontoshow.=''.$langs->trans("CronCreateJob").''; +} +print '
'.$langs->trans('CronInfo').''.$buttontoshow.'
'; +print '
'; print ''; @@ -359,21 +369,7 @@ print '
'; print ''; - -print "\n
\n"; - -if (! $user->rights->cron->create) -{ - print ''.$langs->trans("CronCreateJob").''; -} -else -{ - print ''.$langs->trans("CronCreateJob").''; -} - -print '
'; - -print '
'; +print '

'; dol_print_cron_urls();