= e((string) ($widget['name'] ?? 'Widget')) ?>
= e((string) ($widget['description'] ?? 'Globale Widget-Vorlage.')) ?>
createWidgetTemplate($ownerKey, [ 'name' => trim((string) ($_POST['name'] ?? '')), 'widget_type' => trim((string) ($_POST['widget_type'] ?? 'link')), 'description' => trim((string) ($_POST['description'] ?? '')), 'visibility' => 'public', 'config' => [ 'url' => trim((string) ($_POST['target_url'] ?? '')), 'bookmarks' => trim((string) ($_POST['bookmarks'] ?? '')), ], ]); $notice = 'Widget-Vorlage gespeichert.'; } elseif ($action === 'delete_widget') { $service->deleteWidgetTemplate((int) ($_POST['widget_id'] ?? 0), $ownerKey); $notice = 'Widget-Vorlage gelöscht.'; } } catch (\Throwable $exception) { $error = $exception->getMessage(); } } $widgets = $service->listWidgetTemplates($ownerKey, true); $GLOBALS['layout_header_base_title'] = 'Nexus Setup'; $GLOBALS['layout_header_title'] = 'Nexus Setup'; $GLOBALS['layout_header_context'] = 'Widgets'; $GLOBALS['layout_header_text'] = 'Globale Widget-Vorlagen, die andere Nutzer in ihre Dashboards übernehmen können.'; ?>
= e((string) ($widget['description'] ?? 'Globale Widget-Vorlage.')) ?>