'; $url_link .= __('metaconsole'); $url_link .= ''; } else { $url_link = __('any node'); } \ui_print_warning_message( __( 'This node is configured with centralized mode. All alert calendar information is read only. Go to %s to manage it.', $url_link ) ); } if (empty($message) === false) { echo $message; } $return_all_group = false; if (users_can_manage_group_all('LM') === true) { $return_all_group = true; } $inputs = []; // Name. $inputs[] = [ 'label' => __('Name'), 'arguments' => [ 'type' => 'text', 'name' => 'name', 'required' => true, 'value' => $calendar->name(), ], ]; // Group. $inputs[] = [ 'label' => __('Group'), 'arguments' => [ 'type' => 'select_groups', 'returnAllGroup' => $return_all_group, 'name' => 'id_group', 'selected' => $calendar->id_group(), 'required' => true, ], ]; // Description. $inputs[] = [ 'label' => __('Description'), 'arguments' => [ 'type' => 'textarea', 'name' => 'description', 'required' => false, 'value' => $calendar->description(), 'rows' => 50, 'columns' => 30, ], ]; if ($is_management_allowed === true) { // Submit. $inputs[] = [ 'arguments' => [ 'name' => 'button', 'label' => (($create === true) ? __('Create') : __('Update')), 'type' => 'submit', 'attributes' => 'class="sub next"', ], ]; } // Print form. HTML::printForm( [ 'form' => [ 'action' => $url.'&op=edit&action=save&id='.$calendar->id(), 'method' => 'POST', ], 'inputs' => $inputs, ], false, true ); \enterprise_hook('close_meta_frame');