diff options
Diffstat (limited to '')
| -rw-r--r-- | app/model/common.mod.php | 10 | ||||
| -rw-r--r-- | app/view/common/group.setting.modal.view.php | 21 | ||||
| -rw-r--r-- | app/view/common/setting.modal.view.php | 10 | 
3 files changed, 41 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; +            } +        }      }      /* diff --git a/app/view/common/group.setting.modal.view.php b/app/view/common/group.setting.modal.view.php new file mode 100644 index 0000000..e5c096c --- /dev/null +++ b/app/view/common/group.setting.modal.view.php @@ -0,0 +1,21 @@ +<?php + +/* + * SCROTT Copyright (C) 2016 Malf Furious + * + * Scrott is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published + * by the Free Software Foundation, either version 3 of the License, + * or (at your option) any later version. + * + * Scrott is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public + * License for more details. + */ + +?> + +<div class="tab-pane fade <?=$mod->getSettingModalTabDispClasses()?>" id="settGroupTab"> +    TODO -- Design this tab. +</div> 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> | 
