diff options
author | Malf Furious <m@lfurio.us> | 2016-06-12 21:33:50 -0400 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2016-06-12 21:33:50 -0400 |
commit | 076a86c663870be3c4cf6da8059f0f978a7eb3ce (patch) | |
tree | ebb31d6a0492524feb098233428ccf7ef24adfd4 /app/view/common/setting.modal.view.php | |
parent | 1f39899416ca012d50d261d88b6c2bc86a673212 (diff) | |
download | scrott-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 '')
-rw-r--r-- | app/view/common/setting.modal.view.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/view/common/setting.modal.view.php b/app/view/common/setting.modal.view.php index 19f5929..2217805 100644 --- a/app/view/common/setting.modal.view.php +++ b/app/view/common/setting.modal.view.php @@ -31,6 +31,12 @@ <div class="modal-body"> <ul class="nav nav-tabs" role="tablist"> + <?php if ($mod->common_settingShowTab['group']) { ?> + <li class="<?=$mod->getSettingModalTabActiveClass()?>"><a href="#settGroupTab" aria-controls="settGroupTab" data-toggle="tab"> + <span class="glyphicon glyphicon-th"></span> <?=$mod->group->name?> + </a></li> + <?php } ?> + <li class="<?=$mod->getSettingModalTabActiveClass()?>"><a href="#settUserTab" aria-controls="settUserTab" data-toggle="tab"> <span class="glyphicon glyphicon-user"></span> <?=$mod->getCurrentUser()->getDisplayName()?> </a></li> @@ -42,6 +48,10 @@ </ul> <div class="tab-content"> + <?php if ($mod->common_settingShowTab['group']) { ?> + <?php include "view/common/group.setting.modal.view.php"; ?> + <?php } ?> + <div class="tab-pane fade <?=$mod->getSettingModalTabDispClasses()?>" id="settUserTab"> <p> </p> |