summaryrefslogtreecommitdiffstats
path: root/app/view/common
diff options
context:
space:
mode:
Diffstat (limited to 'app/view/common')
-rw-r--r--app/view/common/foot.view.php19
-rw-r--r--app/view/common/group.setting.modal.view.php96
-rw-r--r--app/view/common/head.view.php26
-rw-r--r--app/view/common/newgroup.modal.view.php49
-rw-r--r--app/view/common/ownership.setting.modal.view.php35
-rw-r--r--app/view/common/permissions.setting.modal.view.php82
-rw-r--r--app/view/common/setting.modal.view.php346
-rw-r--r--app/view/common/topp.view.php83
8 files changed, 0 insertions, 736 deletions
diff --git a/app/view/common/foot.view.php b/app/view/common/foot.view.php
deleted file mode 100644
index 977ac04..0000000
--- a/app/view/common/foot.view.php
+++ /dev/null
@@ -1,19 +0,0 @@
-<?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.
- */
-
-?>
-
-<?php include "view/master/foot.view.php"; ?>
diff --git a/app/view/common/group.setting.modal.view.php b/app/view/common/group.setting.modal.view.php
deleted file mode 100644
index d0e11ca..0000000
--- a/app/view/common/group.setting.modal.view.php
+++ /dev/null
@@ -1,96 +0,0 @@
-<?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.
- */
-
-?>
-
-<?php require_once "view/common/permissions.setting.modal.view.php"; ?>
-
-<div class="tab-pane fade <?=$mod->getSettingModalTabDispClasses()?>" id="settGroupTab">
- <p>&nbsp;</p>
-
- <form method="post" action="<?=$mod->ap()?>" enctype="multipart/form-data">
- <input type="hidden" name="input[action]" value="common-setting-group" />
- <input type="hidden" name="input[guid]" value="<?=$mod->group->guid?>" />
-
- <div class="row">
- <div class="col-md-8">
- <div class="form-group">
- <label>Group name</label>
- <input type="text" name="input[name]" class="form-control" value="<?=$mod->group->name?>" required="true" maxlength="50" <?=($mod->group->canModify($mod->getCurrentUser()) ? "" : "disabled")?> />
- </div>
- </div>
-
- <div class="col-md-4 text-center">
- <img src="<?=$mod->group->getHeadImage()?>" alt="<?=$mod->group->name?>" class="img-circle" height="100" />
-
- <?php if ($mod->group->canModify($mod->getCurrentUser())) { ?>
- <br />
- <br />
- <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#inputGroupImageCollapse">
- <span class="glyphicon glyphicon-camera"></span> Upload new image
- </button>
- <br />
- <button type="submit" name="input[rmImage]" class="btn btn-danger btn-xs" onclick="return assertConfirm()">
- <span class="glyphicon glyphicon-remove"></span> Remove image
- </button>
- <?php } ?>
- </div>
- </div>
-
- <div class="collapse" id="inputGroupImageCollapse">
- <div class="form-group">
- <label>Group Image</label>
- <input type="file" name="attachment" />
- </div>
- </div>
-
- <?php common_setting_permissions($mod, $mod->group); ?>
-
- <?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>
-
- <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>
diff --git a/app/view/common/head.view.php b/app/view/common/head.view.php
deleted file mode 100644
index 76880a6..0000000
--- a/app/view/common/head.view.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?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.
- */
-
-?>
-
-<?php include "view/master/head.view.php"; ?>
-
-<style type="text/css">
- body
- {
- padding-top: 70px;
- }
-</style>
diff --git a/app/view/common/newgroup.modal.view.php b/app/view/common/newgroup.modal.view.php
deleted file mode 100644
index 3dd631c..0000000
--- a/app/view/common/newgroup.modal.view.php
+++ /dev/null
@@ -1,49 +0,0 @@
-<?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 id="newgroupModal" class="modal fade" tabindex="-1" role="dialog">
- <div class="modal-dialog modal-sm" role="document">
- <div class="modal-content">
- <div class="modal-header">
-
- <button type="button" class="close" data-dismiss="modal">
- <span aria-hidden="true">&times;</span>
- </button>
-
- <h4 class="modal-title"><span class="glyphicon glyphicon-th"></span> Create new Group</h4>
-
- </div>
-
- <div class="modal-body">
- <form method="post" action="<?=$mod->ap()?>">
- <input type="hidden" name="input[action]" value="common-group-add" />
- <div class="form-group">
- <label>Group Name</label>
- <input type="text" name="input[name]" class="form-control" required="true" maxlength="50" />
- </div>
-
- <button type="submit" class="btn btn-success pull-right">
- <span class="glyphicon glyphicon-plus"></span> Add
- </button>
- </form>
-
- <p>&nbsp;</p>
- </div>
- </div>
- </div>
-</div>
diff --git a/app/view/common/ownership.setting.modal.view.php b/app/view/common/ownership.setting.modal.view.php
deleted file mode 100644
index 3f7c382..0000000
--- a/app/view/common/ownership.setting.modal.view.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?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.
- */
-
-?>
-
-<?php function common_setting_ownership($mod, $obj) { ?>
- <?php if ($obj->isOwner($mod->getCurrentUser())) { ?>
- <label class="text-danger">Change Owner</label>
- <div class="checkbox">
- <label data-toggle="collapse" data-target="#inputGroupOwnerCollapse">
- <input type="checkbox" name="input[setOwner]" value="1" /> Transfer Ownership
- </label>
- </div>
-
- <div class="collapse" id="inputGroupOwnerCollapse">
- <div class="form-group has-error">
- <label class="control-label">Owner Username</label>
- <input type="text" name="input[newOwner]" class="form-control" value="<?=$obj->getOwner()->name?>" />
- </div>
- </div>
- <?php } ?>
-<?php } ?>
diff --git a/app/view/common/permissions.setting.modal.view.php b/app/view/common/permissions.setting.modal.view.php
deleted file mode 100644
index 55e4157..0000000
--- a/app/view/common/permissions.setting.modal.view.php
+++ /dev/null
@@ -1,82 +0,0 @@
-<?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.
- */
-
-?>
-
-<?php function common_setting_permissions($mod, $obj) { ?>
- <?php if ($obj->canModifyPermissions($mod->getCurrentUser())) { ?>
- <label>Permissions</label>
- <div class="row">
- <div class="col-md-6">
- <div class="checkbox">
- <label>
- <input type="checkbox" name="input[perm0]" value="1" <?=($obj->perms & 0x100 ? "checked" : "")?> /> Members can modify
- </label>
- </div>
-
- <div class="checkbox">
- <label>
- <input type="checkbox" name="input[perm1]" value="1" <?=($obj->perms & 0x080 ? "checked" : "")?> /> Members can modify members
- </label>
- </div>
-
- <div class="checkbox">
- <label>
- <input type="checkbox" name="input[perm2]" value="1" <?=($obj->perms & 0x040 ? "checked" : "")?> /> Members can access children
- </label>
- </div>
-
- <div class="checkbox">
- <label>
- <input type="checkbox" name="input[perm3]" value="1" <?=($obj->perms & 0x020 ? "checked" : "")?> /> Members can create children
- </label>
- </div>
-
- <div class="checkbox">
- <label>
- <input type="checkbox" name="input[perm4]" value="1" <?=($obj->perms & 0x010 ? "checked" : "")?> /> Members can modify children
- </label>
- </div>
-
- <div class="checkbox">
- <label>
- <input type="checkbox" name="input[perm5]" value="1" <?=($obj->perms & 0x008 ? "checked" : "")?> /> Members can modify children's members
- </label>
- </div>
- </div>
-
- <div class="col-md-6">
- <div class="checkbox">
- <label>
- <input type="checkbox" name="input[perm6]" value="1" <?=($obj->perms & 0x004 ? "checked" : "")?> /> Public can access
- </label>
- </div>
-
- <div class="checkbox">
- <label>
- <input type="checkbox" name="input[perm7]" value="1" <?=($obj->perms & 0x002 ? "checked" : "")?> /> Public can access children
- </label>
- </div>
-
- <div class="checkbox">
- <label>
- <input type="checkbox" name="input[perm8]" value="1" <?=($obj->perms & 0x001 ? "checked" : "")?> /> Public can create children
- </label>
- </div>
- </div>
- </div>
- <?php } ?>
-<?php } ?>
diff --git a/app/view/common/setting.modal.view.php b/app/view/common/setting.modal.view.php
deleted file mode 100644
index 2217805..0000000
--- a/app/view/common/setting.modal.view.php
+++ /dev/null
@@ -1,346 +0,0 @@
-<?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 id="settingModal" class="modal fade" tabindex="-1" role="dialog">
- <div class="modal-dialog" role="document">
- <div class="modal-content">
- <div class="modal-header">
-
- <button type="button" class="close" data-dismiss="modal">
- <span aria-hidden="true">&times;</span>
- </button>
-
- <h4 class="modal-title"><span class="glyphicon glyphicon-cog"></span> Settings</h4>
-
- </div>
-
- <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>
-
- <?php if ($mod->getCurrentUser()->admin == 1) { ?>
- <li><a href="#settAdminTab" aria-controls="settAdminTab" data-toggle="tab"><span class="glyphicon glyphicon-sunglasses"></span> Admin</a></li>
- <li><a href="#settUsersTab" aria-controls="settUsersTab" data-toggle="tab"><span class="glyphicon glyphicon-th"></span> All Users</a></li>
- <?php } ?>
- </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>&nbsp;</p>
-
- <form method="post" action="<?=$mod->ap()?>" enctype="multipart/form-data">
- <input type="hidden" name="input[action]" value="common-setting-user" />
-
- <div class="row">
- <div class="col-md-8">
- <?php if ($mod->getCurrentUser()->admin == 1) { ?>
- <p class="pull-right"><span class="glyphicon glyphicon-sunglasses"></span> <?=$mod->getCurrentUser()->getDisplayName()?> is a Scrott Administrator</p>
- <?php } ?>
-
- <div class="form-group">
- <label>Username</label>
- <input type="text" class="form-control" value="<?=$mod->getCurrentUser()->name?>" disabled />
- </div>
-
- <div class="checkbox">
- <label data-toggle="collapse" data-target="#inputUserPasswdCollapse">
- <input type="checkbox" name="input[setPasswd]" value="1" /> Change Password
- </label>
- </div>
- </div>
-
- <div class="col-md-4 text-center">
- <img src="<?=$mod->getCurrentUser()->getHeadImage()?>" alt="<?=$mod->getCurrentUser()->getDisplayName()?>" class="img-circle" height="100" />
- <br />
- <br />
- <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#inputUserImageCollapse">
- <span class="glyphicon glyphicon-camera"></span> Upload new image
- </button>
- <br />
- <button type="submit" name="input[rmImage]" class="btn btn-danger btn-xs" onclick="return assertConfirm()">
- <span class="glyphicon glyphicon-remove"></span> Remove image
- </button>
- </div>
- </div>
-
- <div class="collapse" id="inputUserImageCollapse">
- <div class="form-group">
- <label>User Image</label>
- <input type="file" name="attachment" />
- </div>
- </div>
-
- <div class="collapse" id="inputUserPasswdCollapse">
- <div class="form-group">
- <label>Current Password</label>
- <input type="password" name="input[curPasswd]" class="form-control" />
- </div>
-
- <div class="form-group">
- <label>New Password</label>
- <input type="password" name="input[newPasswd]" class="form-control" />
- </div>
-
- <div class="form-group">
- <label>Confirm Password</label>
- <input type="password" name="input[confPasswd]" class="form-control" />
- </div>
- </div>
-
- <div class="form-group">
- <label>Alias</label>
- <input type="text" name="input[alias]" class="form-control" value="<?=$mod->getCurrentUser()->alias?>" maxlength="50" />
- </div>
-
- <div class="form-group">
- <label>Email</label>
- <input type="text" name="input[email]" class="form-control" value="<?=$mod->getCurrentUser()->email?>" maxlength="50" />
- </div>
-
- <?php if ($mod->getCurrentUser()->email != "" && $mod->getCurrentUser()->emailConf == 0) { ?>
- <div class="form-group has-warning">
- <label class="control-label">Email Confirmation Key</label>
- <input type="text" name="input[emailConfKey]" class="form-control" />
- <span class="help-block">You have not yet confirmed ownership of your saved email address</span>
- </div>
- <?php } ?>
-
- <button type="submit" class="btn btn-success pull-right">Save</button>
- </form>
-
- <p>&nbsp;</p>
- <p>&nbsp;</p>
-
- <a href="<?=$mod->ar()?>/deleteaccount" class="btn btn-danger btn-xs pull-right"><span class="glyphicon glyphicon-trash"></span> Delete Account</a>
-
- <p>&nbsp;</p>
- </div>
-
- <?php if ($mod->getCurrentUser()->admin == 1) { ?>
- <div class="tab-pane fade" id="settAdminTab">
- <p>&nbsp;</p>
-
- <form method="post" action="<?=$mod->ap()?>">
- <input type="hidden" name="input[action]" value="common-setting-admin" />
- <div class="form-group">
- <label>HTTP(S)</label>
- <div class="radio">
- <label>
- <input type="radio" name="input[settSSL]" value="force" <?=$mod->common_settingAdminSettSSLChecked['force']?> <?=$mod->common_settingAdminSettSSLDisabled?> />
- Always Force SSL
- </label>
- </div>
-
- <div class="radio">
- <label>
- <input type="radio" name="input[settSSL]" value="neither" <?=$mod->common_settingAdminSettSSLChecked['neither']?> <?=$mod->common_settingAdminSettSSLDisabled?> />
- Neither
- </label>
- </div>
-
- <div class="radio">
- <label>
- <input type="radio" name="input[settSSL]" value="forbid" <?=$mod->common_settingAdminSettSSLChecked['forbid']?> <?=$mod->common_settingAdminSettSSLDisabled?> />
- Always Forbid SSL
- </label>
- </div>
- </div>
-
- <label>Access</label>
- <div class="checkbox">
- <label>
- <input type="checkbox" name="input[allowPublicSignup]" value="1" <?=$mod->common_settingAdminAllowPublicSignupChecked?> /> Allow anyone to create an account
- </label>
- </div>
-
- <button type="submit" class="btn btn-success pull-right">Save</button>
- </form>
-
- <p>&nbsp;</p>
- </div>
-
- <div class="tab-pane fade" id="settUsersTab">
- <p>&nbsp;</p>
-
- <div class="panel-group" id="common-setting-allusers">
- <div class="panel panel-default">
- <div class="panel-heading">
- <h4 class="panel-title">
- <a href="#common-setting-allusers-add-collapse" data-toggle="collapse" data-parent="#common-setting-allusers" aria-expanded="false">
- <span class="glyphicon glyphicon-plus"></span> Add New User
- </a>
- </h4>
- </div>
-
- <div class="panel-collapse collapse" id="common-setting-allusers-add-collapse">
- <div class="panel-body">
- <form method="post" action="<?=$mod->ap()?>">
- <input type="hidden" name="input[action]" value="common-setting-allusers-adduser" />
- <div class="form-group">
- <label>Username</label>
- <input type="text" name="input[username]" class="form-control" required="true" maxlength="50" />
- </div>
-
- <div class="form-group">
- <label>Password</label>
- <input type="password" name="input[password]" class="form-control" />
- </div>
-
- <div class="form-group">
- <label>Confirm Password</label>
- <input type="password" name="input[cPassword]" class="form-control" />
- </div>
-
- <div class="checkbox">
- <label>
- <input type="checkbox" name="input[admin]" value="1" /> Administrator
- </label>
- </div>
-
- <div class="form-group">
- <label>Alias</label>
- <input type="text" name="input[alias]" class="form-control" maxlength="50" />
- </div>
-
- <div class="form-group">
- <label>Email</label>
- <input type="text" name="input[email]" class="form-control" maxlength="50" />
- </div>
-
- <button type="submit" class="btn btn-success pull-right">Add</button>
- </form>
- </div>
- </div>
- </div>
-
- <?php foreach ($mod->common_settingAllUsers as $user) { ?>
- <div class="panel panel-default">
- <div class="panel-heading">
- <h4 class="panel-title">
- <a href="#common-setting-allusers-<?=$user->guid?>-collapse" data-toggle="collapse" data-parent="#common-setting-allusers" aria-expanded="false">
- <span class="<?=$user->getGlyphicon()?>"></span> <?=$user->name?> <?=($user->alias != "" ? "(" . $user->alias . ")" : "")?>
- </a>
- </h4>
- </div>
-
- <div class="panel-collapse collapse" id="common-setting-allusers-<?=$user->guid?>-collapse">
- <div class="panel-body">
- <form method="post" action="<?=$mod->ap()?>" enctype="multipart/form-data">
- <input type="hidden" name="input[action]" value="common-setting-allusers-edituser" />
- <input type="hidden" name="input[guid]" value="<?=$user->guid?>" />
-
- <div class="row">
- <div class="col-md-8">
- <div class="form-group">
- <label>Username</label>
- <input type="text" class="form-control" value="<?=$user->name?>" disabled />
- </div>
-
- <div class="checkbox">
- <label data-toggle="collapse" data-target="#input<?=$user->guid?>PasswdCollapse">
- <input type="checkbox" name="input[setPasswd]" value="1" /> Change Password
- </label>
- </div>
- </div>
-
- <div class="col-md-4 text-center">
- <img src="<?=$user->getHeadImage()?>" alt="<?=$user->getDisplayName()?>" class="img-circle" height="100" />
- <br />
- <br />
- <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#input<?=$user->guid?>ImageCollapse">
- <span class="glyphicon glyphicon-camera"></span> Upload new image
- </button>
- <br />
- <button type="submit" name="input[rmImage]" class="btn btn-danger btn-xs" onclick="return assertConfirm()">
- <span class="glyphicon glyphicon-remove"></span> Remove image
- </button>
- </div>
- </div>
-
- <div class="collapse" id="input<?=$user->guid?>ImageCollapse">
- <div class="form-group">
- <label>User Image</label>
- <input type="file" name="attachment" />
- </div>
- </div>
-
- <div class="collapse" id="input<?=$user->guid?>PasswdCollapse">
- <div class="form-group">
- <label>New Password</label>
- <input type="password" name="input[newPasswd]" class="form-control" />
- </div>
-
- <div class="form-group">
- <label>Confirm Password</label>
- <input type="password" name="input[confPasswd]" class="form-control" />
- </div>
- </div>
-
- <div class="checkbox">
- <label>
- <input type="checkbox" name="input[admin]" value="1" <?=($user->admin ? "checked" : "")?>> Administrator
- </label>
- </div>
-
- <div class="form-group">
- <label>Alias</label>
- <input type="text" name="input[alias]" class="form-control" maxlength="50" value="<?=$user->alias?>" />
- </div>
-
- <div class="form-group">
- <label>Email</label>
- <input type="text" name="input[email]" class="form-control" maxlength="50" value="<?=$user->email?>" />
- </div>
-
- <button type="submit" class="btn btn-success pull-right">Save</button>
- </form>
-
- <p>&nbsp;</p>
- <p>&nbsp;</p>
-
- <form method="post" action="<?=$mod->ap()?>">
- <input type="hidden" name="input[action]" value="common-setting-allusers-deluser" />
- <input type="hidden" name="input[guid]" value="<?=$user->guid?>" />
- <button type="submit" class="btn btn-danger btn-xs pull-right" onclick="return assertConfirm()">
- <span class="glyphicon glyphicon-trash"></span> Delete Account
- </button>
- </form>
- </div>
- </div>
- </div>
- <?php } ?>
- </div>
- </div>
- <?php } ?>
- </div>
- </div>
- </div>
- </div>
-</div>
diff --git a/app/view/common/topp.view.php b/app/view/common/topp.view.php
deleted file mode 100644
index d9e0df0..0000000
--- a/app/view/common/topp.view.php
+++ /dev/null
@@ -1,83 +0,0 @@
-<?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.
- */
-
-?>
-
-<?php include "view/master/topp.view.php"; ?>
-
-<?php if ($mod->getCurrentUser()) { ?>
- <?php include "view/common/setting.modal.view.php"; ?>
- <?php include "view/common/newgroup.modal.view.php"; ?>
-<?php } ?>
-
-<nav class="navbar navbar-inverse navbar-fixed-top">
- <div class="container-fluid">
-
- <div class="navbar-header">
- <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#scrottnav" aria-expanded="false">
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </button>
-
- <a href="<?=$mod->ar()?>/" class="navbar-brand"><span class="glyphicon glyphicon-pencil"></span> Scrott</a>
- </div>
-
- <div class="collapse navbar-collapse" id="scrottnav">
- <?php if (!$mod->getCurrentUser()) { ?>
- <p class="navbar-text navbar-right"><i>Not Logged In&nbsp;</i></p>
- <?php } else { ?>
- <ul class="nav navbar-nav">
- <li><a href="<?=$mod->ap()?>"><span class="glyphicon glyphicon-refresh"></span></a></li>
-
- <li class="dropdown">
- <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
- <?=(isset($mod->obj) ? $mod->obj->name : "<i>Dashboard</i>")?> <span class="caret"></span>
- </a>
-
- <ul class="dropdown-menu">
- <?php foreach ($mod->getCurrentUser()->getGroups() as $group) { ?>
- <li><a href="<?=$mod->ar()?>/<?=$group->guid?>"><?=$group->name?></a></li>
- <?php } ?>
- </ul>
- </li>
-
- <li class="dropdown">
- <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
- <span class="glyphicon glyphicon-plus"></span> <span class="caret"></span>
- </a>
- <ul class="dropdown-menu">
- <li><a href="#" data-toggle="modal" data-target="#newgroupModal">New Group</a></li>
- </ul>
- </li>
- </ul>
-
- <ul class="nav navbar-nav navbar-right">
- <li class="dropdown">
- <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
- <span class="<?=$mod->getCurrentUser()->getGlyphicon()?>"></span> <?=$mod->getCurrentUser()->getDisplayName()?> <span class="caret"></span>
- </a>
- <ul class="dropdown-menu">
- <li><a href="#" data-toggle="modal" data-target="#settingModal">Settings</a></li>
- <li><a href="<?=$mod->ar()?>/logout">Log out</a></li>
- </ul>
- </li>
- </ul>
- <?php } ?>
- </div>
-
- </div>
-</nav>