diff --git a/backup-config/edit.cgi b/backup-config/edit.cgi
index 5febf892b..01024d802 100755
--- a/backup-config/edit.cgi
+++ b/backup-config/edit.cgi
@@ -86,10 +86,7 @@ print &ui_table_row($text{'edit_sched'},
&ui_radio("sched", $job || $in{'new'} ? 1 : 0,
[ [ 0, $text{'no'} ],
[ 1, $text{'edit_schedyes'} ] ]));
-print &ui_table_row(undef,
- "
\n".
- &capture_function_output(\&cron::show_times_input, $backup).
- " |
\n");
+print &cron::get_times_input($backup);
print &ui_hidden_table_end();
if ($in{'new'}) {
diff --git a/logrotate/edit_sched.cgi b/logrotate/edit_sched.cgi
index c33c0b2c5..97bfb8d02 100755
--- a/logrotate/edit_sched.cgi
+++ b/logrotate/edit_sched.cgi
@@ -35,20 +35,20 @@ if ($runparts) {
}
else {
# Offer to enable/change/delete
- print "\n";
+ print &cron::get_times_input($job, 0, 2, $text{'sched_when'});
+
+ print &ui_table_end();
+ print &ui_form_end([ [ undef, $text{'sched_save'} ] ]);
}
&ui_print_footer("", $text{'index_return'});
diff --git a/logrotate/lang/en b/logrotate/lang/en
index 94f48d8ec..ba4a64c16 100644
--- a/logrotate/lang/en
+++ b/logrotate/lang/en
@@ -100,6 +100,7 @@ sched_disabled=Disabled
sched_enabled=Enabled, at times below ..
sched_save=Update Cron Job
sched_err=Failed to save rotation schedule
+sched_when=Times to run
force_title=Force Log Rotation
force_doing=Forcing the immediate rotation of all log files ..