From d019f20d9333eebe8ef2ab4101ce0901e7ec4082 Mon Sep 17 00:00:00 2001 From: Jordan Schultz Date: Mon, 21 Oct 2024 22:26:30 -0700 Subject: [PATCH] added configuration settings and renamed global dashboard page --- config.json | 13 +++++++------ pages/{IntakeDashboard.php => root.php} | 3 +-- 2 files changed, 8 insertions(+), 8 deletions(-) rename pages/{IntakeDashboard.php => root.php} (92%) diff --git a/config.json b/config.json index 2f18588..e5ae129 100644 --- a/config.json +++ b/config.json @@ -22,7 +22,7 @@ { "name": "Intake Dashboard", "icon": "gear", - "url" : "pages/IntakeDashboard.php", + "url" : "pages/root.php", "show-header-and-footer": false } ] @@ -31,13 +31,12 @@ "auth-ajax-actions": [ ], - - "system-settings": [ + "project-settings": [ { - "key": "parent-project", - "name": "
Parent Project
This project will house the universal intake survey and be the source of truth for all child projects", + "key": "universal-survey", + "name": "Universal Intake Survey
The required survey all intake submissions begin with ", "required": true, - "type": "project-id" + "type": "form-list" }, { "key": "child-project-list-description", @@ -60,6 +59,8 @@ } ] } + ], + "system-settings": [ ], diff --git a/pages/IntakeDashboard.php b/pages/root.php similarity index 92% rename from pages/IntakeDashboard.php rename to pages/root.php index b5bde13..216775f 100644 --- a/pages/IntakeDashboard.php +++ b/pages/root.php @@ -3,9 +3,8 @@ /** @var \Stanford\IntakeDashboard\IntakeDashboard $module */ $module->injectJSMO(); -//$urls = $module->fetchRequiredSurveys(); $files = $module->generateAssetFiles(); - +$urls = $module->fetchRequiredSurveys(); //$surveys = $module->fetchRequiredSurveys(); ?>