summaryrefslogtreecommitdiffstats
path: root/app/view/common/group.setting.modal.view.php
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2016-09-17 19:18:59 -0400
committerMalf Furious <m@lfurio.us>2016-09-17 19:18:59 -0400
commit98ba4abeff20ae83de84451c4aeb0c68d043ab45 (patch)
tree99be9716d8eb80a226acced32948f465614175ac /app/view/common/group.setting.modal.view.php
parent3c3cde4afc1e590063ca72b10ffe566d7fd690d2 (diff)
downloadscrott-98ba4abeff20ae83de84451c4aeb0c68d043ab45.tar.gz
scrott-98ba4abeff20ae83de84451c4aeb0c68d043ab45.zip
Finish markup for setting modal group tab
Diffstat (limited to 'app/view/common/group.setting.modal.view.php')
-rw-r--r--app/view/common/group.setting.modal.view.php39
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>&nbsp;</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>&nbsp;</p>
+ <button type="submit" class="btn btn-success pull-right">Save</button>
+ <?php } ?>
+ </form>
- <p>&nbsp;</p>
- <p>&nbsp;</p>
+ <p>&nbsp;</p>
+ <p>&nbsp;</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>&nbsp;</p>
</div>