From 8f183f49233d5cf6c1f39e8c8924225f59986b2a Mon Sep 17 00:00:00 2001 From: axman Date: Mon, 18 Jan 2021 11:59:03 -0700 Subject: [PATCH] WIP --- Controller/CoGrouperLitesController.php | 10 ++++++- Model/GrouperGroup.php | 2 +- View/CoGrouperLites/display.ctp | 37 ++++++++++++++++++++++++- View/CoGrouperLites/fields.inc | 2 +- 4 files changed, 47 insertions(+), 4 deletions(-) diff --git a/Controller/CoGrouperLitesController.php b/Controller/CoGrouperLitesController.php index 32cb195..5b86dcd 100644 --- a/Controller/CoGrouperLitesController.php +++ b/Controller/CoGrouperLitesController.php @@ -30,7 +30,15 @@ function beforeRender() public function display($id) { $cfg = $this->CoGrouperLite->getConfig(); - + $services_url = Router::url([ + 'plugin' => "grouper_lite", + 'controller' => 'GrouperGroups', + 'action' => 'groupoptin', + 'co' => $this->cur_co['Co']['id'], + 'gdId' => $id + ]); + + $this->set('vv_services_url', $services_url); $this->set('title_for_layout', _txt('pl.grouperlite.config.display.title')); // Pass the config so we know which div to overwrite $this->set('vv_config', $cfg); diff --git a/Model/GrouperGroup.php b/Model/GrouperGroup.php index a69451a..3fab5aa 100644 --- a/Model/GrouperGroup.php +++ b/Model/GrouperGroup.php @@ -5,7 +5,7 @@ class GrouperGroup extends GrouperLiteAppModel { - //TODO - Add input validation + //TODO - Add input validation, possibly??? public $name = "GrouperGroup"; public $grouperAPI; diff --git a/View/CoGrouperLites/display.ctp b/View/CoGrouperLites/display.ctp index 4a1090b..9040a7a 100644 --- a/View/CoGrouperLites/display.ctp +++ b/View/CoGrouperLites/display.ctp @@ -1 +1,36 @@ -you are home \ No newline at end of file + + +Click here + diff --git a/View/CoGrouperLites/fields.inc b/View/CoGrouperLites/fields.inc index 334da52..7bdff65 100644 --- a/View/CoGrouperLites/fields.inc +++ b/View/CoGrouperLites/fields.inc @@ -62,7 +62,7 @@ $args['action'] = 'index'; $args['codashboard'] = $co_grouper_lites[0]['CoDashboardWidget']['co_dashboard_id']; $this->Html->addCrumb(_txt('ct.co_dashboard_widgets.1'), $args); -$crumbTxt = _txt('op.' . $this->action . '-a', array(filter_var($co_grouper_widgets[0]['CoDashboardWidget']['description'], FILTER_SANITIZE_SPECIAL_CHARS))); +$crumbTxt = _txt('op.' . $this->action . '-a', array(filter_var($co_grouper_lites[0]['CoDashboardWidget']['description'], FILTER_SANITIZE_SPECIAL_CHARS))); $this->Html->addCrumb($crumbTxt); print $this->Form->hidden('co_dashboard_widget_id', array('default' => $vv_dwid)) . "\n";