summaryrefslogtreecommitdiffstats
path: root/app/model
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2016-06-12 21:33:50 -0400
committerMalf Furious <m@lfurio.us>2016-06-12 21:33:50 -0400
commit076a86c663870be3c4cf6da8059f0f978a7eb3ce (patch)
treeebb31d6a0492524feb098233428ccf7ef24adfd4 /app/model
parent1f39899416ca012d50d261d88b6c2bc86a673212 (diff)
downloadscrott-076a86c663870be3c4cf6da8059f0f978a7eb3ce.tar.gz
scrott-076a86c663870be3c4cf6da8059f0f978a7eb3ce.zip
Add group tab to setting modal
Created empty <div> for the group setting tab. Also added code to the common model for initializing the $mod->group variable and setting a flag marking what tabs to include in the setting modal (group tab in this case). Added logic to the main setting modal view file for picking up these flags and including appropriate additional content.
Diffstat (limited to 'app/model')
-rw-r--r--app/model/common.mod.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/model/common.mod.php b/app/model/common.mod.php
index 232f0c2..459c53a 100644
--- a/app/model/common.mod.php
+++ b/app/model/common.mod.php
@@ -71,6 +71,16 @@ class CommonModel extends MasterModel
/* Admin all-users settings tab */
$userTbl = new User();
$this->common_settingAllUsers = $userTbl->getAllUsers_orderByAdminByName();
+
+ /* Setting modal - what tabs to display? */
+ if (isset($this->obj))
+ {
+ if ($this->obj->type == "group")
+ {
+ $this->group = new Group($this->obj->guid);
+ $this->common_settingShowTab['group'] = true;
+ }
+ }
}
/*