From a803b5fa90af3cd51999ec2b79c7563ab5c416bb Mon Sep 17 00:00:00 2001 From: Daniel Barbero Martin Date: Fri, 17 Dec 2021 13:38:53 +0100 Subject: [PATCH 01/27] WIP #3943 --- .../alerts/configure_alert_template.php | 166 +- .../javascript/fullcalendar/LICENSE.txt | 22 + .../javascript/fullcalendar/locales-all.js | 1900 ++ .../fullcalendar/locales-all.min.js | 1 + .../javascript/fullcalendar/locales/af.js | 28 + .../javascript/fullcalendar/locales/ar-dz.js | 29 + .../javascript/fullcalendar/locales/ar-kw.js | 29 + .../javascript/fullcalendar/locales/ar-ly.js | 29 + .../javascript/fullcalendar/locales/ar-ma.js | 29 + .../javascript/fullcalendar/locales/ar-sa.js | 29 + .../javascript/fullcalendar/locales/ar-tn.js | 29 + .../javascript/fullcalendar/locales/ar.js | 29 + .../javascript/fullcalendar/locales/az.js | 30 + .../javascript/fullcalendar/locales/bg.js | 29 + .../javascript/fullcalendar/locales/bn.js | 30 + .../javascript/fullcalendar/locales/bs.js | 30 + .../javascript/fullcalendar/locales/ca.js | 28 + .../javascript/fullcalendar/locales/cs.js | 30 + .../javascript/fullcalendar/locales/cy.js | 29 + .../javascript/fullcalendar/locales/da.js | 28 + .../javascript/fullcalendar/locales/de-at.js | 73 + .../javascript/fullcalendar/locales/de.js | 73 + .../javascript/fullcalendar/locales/el.js | 28 + .../javascript/fullcalendar/locales/en-au.js | 25 + .../javascript/fullcalendar/locales/en-gb.js | 25 + .../javascript/fullcalendar/locales/en-nz.js | 25 + .../javascript/fullcalendar/locales/eo.js | 28 + .../javascript/fullcalendar/locales/es-us.js | 28 + .../javascript/fullcalendar/locales/es.js | 55 + .../javascript/fullcalendar/locales/et.js | 30 + .../javascript/fullcalendar/locales/eu.js | 28 + .../javascript/fullcalendar/locales/fa.js | 31 + .../javascript/fullcalendar/locales/fi.js | 28 + .../javascript/fullcalendar/locales/fr-ca.js | 25 + .../javascript/fullcalendar/locales/fr-ch.js | 29 + .../javascript/fullcalendar/locales/fr.js | 29 + .../javascript/fullcalendar/locales/gl.js | 28 + .../javascript/fullcalendar/locales/he.js | 25 + .../javascript/fullcalendar/locales/hi.js | 30 + .../javascript/fullcalendar/locales/hr.js | 30 + .../javascript/fullcalendar/locales/hu.js | 28 + .../javascript/fullcalendar/locales/hy-am.js | 30 + .../javascript/fullcalendar/locales/id.js | 28 + .../javascript/fullcalendar/locales/is.js | 28 + .../javascript/fullcalendar/locales/it.js | 30 + .../javascript/fullcalendar/locales/ja.js | 26 + .../javascript/fullcalendar/locales/ka.js | 30 + .../javascript/fullcalendar/locales/kk.js | 30 + .../javascript/fullcalendar/locales/km.js | 29 + .../javascript/fullcalendar/locales/ko.js | 24 + .../javascript/fullcalendar/locales/ku.js | 29 + .../javascript/fullcalendar/locales/lb.js | 28 + .../javascript/fullcalendar/locales/lt.js | 28 + .../javascript/fullcalendar/locales/lv.js | 30 + .../javascript/fullcalendar/locales/mk.js | 26 + .../javascript/fullcalendar/locales/ms.js | 30 + .../javascript/fullcalendar/locales/nb.js | 39 + .../javascript/fullcalendar/locales/ne.js | 28 + .../javascript/fullcalendar/locales/nl.js | 28 + .../javascript/fullcalendar/locales/nn.js | 28 + .../javascript/fullcalendar/locales/pl.js | 28 + .../javascript/fullcalendar/locales/pt-br.js | 26 + .../javascript/fullcalendar/locales/pt.js | 28 + .../javascript/fullcalendar/locales/ro.js | 30 + .../javascript/fullcalendar/locales/ru.js | 30 + .../javascript/fullcalendar/locales/si-lk.js | 28 + .../javascript/fullcalendar/locales/sk.js | 30 + .../javascript/fullcalendar/locales/sl.js | 28 + .../javascript/fullcalendar/locales/sm.js | 24 + .../javascript/fullcalendar/locales/sq.js | 30 + .../fullcalendar/locales/sr-cyrl.js | 30 + .../javascript/fullcalendar/locales/sr.js | 30 + .../javascript/fullcalendar/locales/sv.js | 54 + .../javascript/fullcalendar/locales/ta-in.js | 30 + .../javascript/fullcalendar/locales/th.js | 31 + .../javascript/fullcalendar/locales/tr.js | 28 + .../javascript/fullcalendar/locales/ug.js | 18 + .../javascript/fullcalendar/locales/uk.js | 30 + .../javascript/fullcalendar/locales/uz.js | 22 + .../javascript/fullcalendar/locales/vi.js | 30 + .../javascript/fullcalendar/locales/zh-cn.js | 31 + .../javascript/fullcalendar/locales/zh-tw.js | 24 + .../include/javascript/fullcalendar/main.css | 1439 ++ .../include/javascript/fullcalendar/main.js | 21111 ++++++++++++++++ .../javascript/fullcalendar/main.min.css | 1 + .../javascript/fullcalendar/main.min.js | 6 + pandora_console/include/styles/pandora.css | 4 + 87 files changed, 26980 insertions(+), 25 deletions(-) create mode 100644 pandora_console/include/javascript/fullcalendar/LICENSE.txt create mode 100644 pandora_console/include/javascript/fullcalendar/locales-all.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales-all.min.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/af.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/ar-dz.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/ar-kw.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/ar-ly.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/ar-ma.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/ar-sa.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/ar-tn.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/ar.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/az.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/bg.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/bn.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/bs.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/ca.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/cs.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/cy.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/da.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/de-at.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/de.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/el.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/en-au.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/en-gb.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/en-nz.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/eo.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/es-us.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/es.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/et.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/eu.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/fa.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/fi.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/fr-ca.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/fr-ch.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/fr.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/gl.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/he.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/hi.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/hr.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/hu.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/hy-am.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/id.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/is.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/it.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/ja.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/ka.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/kk.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/km.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/ko.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/ku.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/lb.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/lt.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/lv.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/mk.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/ms.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/nb.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/ne.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/nl.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/nn.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/pl.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/pt-br.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/pt.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/ro.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/ru.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/si-lk.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/sk.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/sl.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/sm.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/sq.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/sr-cyrl.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/sr.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/sv.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/ta-in.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/th.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/tr.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/ug.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/uk.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/uz.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/vi.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/zh-cn.js create mode 100644 pandora_console/include/javascript/fullcalendar/locales/zh-tw.js create mode 100644 pandora_console/include/javascript/fullcalendar/main.css create mode 100644 pandora_console/include/javascript/fullcalendar/main.js create mode 100644 pandora_console/include/javascript/fullcalendar/main.min.css create mode 100644 pandora_console/include/javascript/fullcalendar/main.min.js diff --git a/pandora_console/godmode/alerts/configure_alert_template.php b/pandora_console/godmode/alerts/configure_alert_template.php index 4936617b47..23d676f485 100644 --- a/pandora_console/godmode/alerts/configure_alert_template.php +++ b/pandora_console/godmode/alerts/configure_alert_template.php @@ -673,7 +673,10 @@ if ($step == 2) { (!$is_management_allowed | $disabled) ); - $table->data[0][2] = __('Use special days list'); + $table->colspan[0][1] = 3; + $table->data[0][1] = '
'; + + $table->data[1][0] = __('Use special days list'); $data_special_days = Calendar::calendars( // Fields. [ '`talert_calendar`.*' ], @@ -693,7 +696,7 @@ if ($step == 2) { true ); - $table->data[0][3] = html_print_select( + $table->data[1][1] = html_print_select( $data_special_days, 'special_day', $special_day, @@ -707,8 +710,8 @@ if ($step == 2) { (!$is_management_allowed | $disabled) ); - $table->data[1][0] = __('Time from'); - $table->data[1][1] = html_print_input_text( + $table->data[2][0] = __('Time from'); + $table->data[2][1] = html_print_input_text( 'time_from', $time_from, '', @@ -727,8 +730,8 @@ if ($step == 2) { '', (!$is_management_allowed | $disabled) ); - $table->data[1][2] = __('Time to'); - $table->data[1][3] = html_print_input_text( + $table->data[2][2] = __('Time to'); + $table->data[2][3] = html_print_input_text( 'time_to', $time_to, '', @@ -764,8 +767,8 @@ if ($step == 2) { (!$is_management_allowed | $disabled) ); - $table->data[3][0] = __('Min. number of alerts'); - $table->data[3][1] = html_print_input_text( + $table->data[4][0] = __('Min. number of alerts'); + $table->data[4][1] = html_print_input_text( 'min_alerts', $min_alerts, '', @@ -785,12 +788,12 @@ if ($step == 2) { (!$is_management_allowed | $disabled) ); - $table->data[3][2] = __('Reset counter for non-sustained alerts'); - $table->data[3][2] .= ui_print_help_tip( + $table->data[4][2] = __('Reset counter for non-sustained alerts'); + $table->data[4][2] .= ui_print_help_tip( __('Enable this option if you want the counter to be reset when the alert is not being fired consecutively, even if it\'s within the time threshold'), true ); - $table->data[3][3] = html_print_checkbox( + $table->data[4][3] = html_print_checkbox( 'min_alerts_reset_counter', 1, $min_alerts_reset_counter, @@ -801,8 +804,8 @@ if ($step == 2) { $create_template == 1 ? 'checked=checked' : '' ); - $table->data[4][0] = __('Max. number of alerts'); - $table->data[4][1] = html_print_input_text( + $table->data[5][0] = __('Max. number of alerts'); + $table->data[5][1] = html_print_input_text( 'max_alerts', $max_alerts, '', @@ -822,8 +825,8 @@ if ($step == 2) { (!$is_management_allowed | $disabled) ); - $table->data[4][2] = __('Disable event'); - $table->data[4][3] = html_print_checkbox( + $table->data[5][2] = __('Disable event'); + $table->data[5][3] = html_print_checkbox( 'disable_event', 1, $disable_event, @@ -831,7 +834,7 @@ if ($step == 2) { (!$is_management_allowed | $disabled) ); - $table->data[5][0] = __('Default action'); + $table->data[6][0] = __('Default action'); $usr_groups = implode( ',', array_keys(users_get_groups($config['id_user'], 'LM', true)) @@ -846,7 +849,7 @@ if ($step == 2) { $usr_groups ); - $table->data[5][1] = html_print_select_from_sql( + $table->data[6][1] = html_print_select_from_sql( $sql_query, 'default_action', $default_action, @@ -861,13 +864,13 @@ if ($step == 2) { false, 0 ); - $table->data[5][1] .= ui_print_help_tip( + $table->data[6][1] .= ui_print_help_tip( __('Unless they\'re left blank, the fields from the action will override those set on the template.'), true ); - $table->data[6][0] = __('Condition type'); - $table->data[6][1] = html_print_select( + $table->data[7][0] = __('Condition type'); + $table->data[7][1] = html_print_select( alerts_get_alert_templates_types(), 'type', $type, @@ -880,15 +883,15 @@ if ($step == 2) { '', (!$is_management_allowed | $disabled) ); - $table->data[6][1] .= ''; - $table->data[6][1] .= ' '.html_print_checkbox('matches_value', 1, $matches, true); - $table->data[6][1] .= html_print_label( + $table->data[7][1] .= ''; + $table->data[7][1] .= ' '.html_print_checkbox('matches_value', 1, $matches, true); + $table->data[7][1] .= html_print_label( __('Trigger when matches the value'), 'checkbox-matches_value', true ); - $table->data[6][1] .= ''; - $table->colspan[6][1] = 3; + $table->data[7][1] .= ''; + $table->colspan[7][1] = 3; $table->data['value'][0] = __('Value'); $table->data['value'][1] = html_print_input_text( @@ -1277,6 +1280,8 @@ ui_require_javascript_file('pandora_alerts'); ui_include_time_picker(); ui_require_jquery_file('ui.datepicker-'.get_user_language(), 'include/javascript/i18n/'); ui_require_javascript_file('tiny_mce', 'include/javascript/tiny_mce/'); +ui_require_css_file('main.min', 'include/javascript/fullcalendar/'); +ui_require_javascript_file('main.min', 'include/javascript/fullcalendar/'); ?>