diff options
author | Malf Furious <m@lfurio.us> | 2016-09-17 19:18:59 -0400 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2016-09-17 19:18:59 -0400 |
commit | 98ba4abeff20ae83de84451c4aeb0c68d043ab45 (patch) | |
tree | 99be9716d8eb80a226acced32948f465614175ac | |
parent | 3c3cde4afc1e590063ca72b10ffe566d7fd690d2 (diff) | |
download | scrott-98ba4abeff20ae83de84451c4aeb0c68d043ab45.tar.gz scrott-98ba4abeff20ae83de84451c4aeb0c68d043ab45.zip |
Finish markup for setting modal group tab
-rw-r--r-- | app/view/common/group.setting.modal.view.php | 39 |
1 files changed, 30 insertions, 9 deletions
diff --git a/app/view/common/group.setting.modal.view.php b/app/view/common/group.setting.modal.view.php index bf6b6c5..d0e11ca 100644 --- a/app/view/common/group.setting.modal.view.php +++ b/app/view/common/group.setting.modal.view.php @@ -17,7 +17,6 @@ ?> <?php require_once "view/common/permissions.setting.modal.view.php"; ?> -<?php require_once "view/common/ownership.setting.modal.view.php"; ?> <div class="tab-pane fade <?=$mod->getSettingModalTabDispClasses()?>" id="settGroupTab"> <p> </p> @@ -59,17 +58,39 @@ </div> <?php common_setting_permissions($mod, $mod->group); ?> - <?php common_setting_ownership($mod, $mod->group); ?> - <button type="submit" class="btn btn-success pull-right">Save</button> + <?php if ($mod->group->canModify($mod->getCurrentUser())) { ?> + <p> </p> + <button type="submit" class="btn btn-success pull-right">Save</button> + <?php } ?> + </form> - <p> </p> - <p> </p> + <p> </p> + <p> </p> - <button type="submit" name="input[rmGroup]" class="btn btn-danger btn-xs pull-right"> - <span class="glyphicon glyphicon-trash"></span> Delete Group - </button> - </form> + <div class="btn-toolbar pull-right"> + <?php if ($mod->group->canModifyMembers($mod->getCurrentUser())) { ?> + <div class="btn-group"> + <a href="<?=$mod->group->getURL()?>/members" class="btn btn-primary btn-xs"> + <span class="glyphicon glyphicon-user"></span> Manage Members + </a> + </div> + <?php } ?> + + <?php if ($mod->group->isOwner($mod->getCurrentUser())) { ?> + <div class="btn-group"> + <a href="<?=$mod->group->getURL()?>/transfer" class="btn btn-danger btn-xs"> + <span class="glyphicon glyphicon-new-window"></span> Transfer Ownership + </a> + </div> + + <div class="btn-group"> + <a href="<?=$mod->group->getURL()?>/delete" class="btn btn-danger btn-xs"> + <span class="glyphicon glyphicon-trash"></span> Delete Group + </a> + </div> + <?php } ?> + </div> <p> </p> </div> |