2 # Show a form for setting up automatic node group updates
4 require './bacula-backup-lib.pl';
5 &foreign_require("cron", "cron-lib.pl");
6 &ui_print_header(undef, $text{'sync_title'}, "", "sync");
8 print &ui_form_start("save_sync.cgi", "post");
9 print &ui_table_start($text{'sync_header'}, undef, 2);
12 $job = &find_cron_job();
13 print &ui_table_row($text{'sync_sched'},
14 &ui_radio("sched", $job ? 1 : 0,
16 [ 1, $text{'sync_schedyes'} ] ]));
19 $job ||= { 'special' => 'hourly' };
20 $cron = &capture_function_output(\&cron::show_times_input, $job);
21 print &ui_table_span("<table border>$cron</table>");
23 print &ui_table_end();
24 print &ui_form_end([ [ "save", $text{'save'} ] ]);
26 &ui_print_footer("", $text{'index_return'});