summaryrefslogtreecommitdiffstats
path: root/app/view
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2016-05-22 16:59:43 -0400
committerMalf Furious <m@lfurio.us>2016-05-22 16:59:43 -0400
commitabd11313d0a9f2b28d7b709fcbd98befd95db15c (patch)
tree152db15fb227134a48fa54d4696f0069bf651d62 /app/view
parentd431ef2954455ad38454d27f5be866061794b4bf (diff)
parent2d1e4242a87b54578e24546dabe1525a014da24e (diff)
downloadscrott-abd11313d0a9f2b28d7b709fcbd98befd95db15c.tar.gz
scrott-abd11313d0a9f2b28d7b709fcbd98befd95db15c.zip
Merge branch 'feature/user-removal' into dev
Diffstat (limited to '')
-rw-r--r--app/view/common/setting.modal.view.php16
-rw-r--r--app/view/deleteacct/default.view.php37
2 files changed, 53 insertions, 0 deletions
diff --git a/app/view/common/setting.modal.view.php b/app/view/common/setting.modal.view.php
index e43f723..60b0ba5 100644
--- a/app/view/common/setting.modal.view.php
+++ b/app/view/common/setting.modal.view.php
@@ -108,6 +108,11 @@
</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) { ?>
@@ -288,6 +293,17 @@
<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>
diff --git a/app/view/deleteacct/default.view.php b/app/view/deleteacct/default.view.php
new file mode 100644
index 0000000..de32202
--- /dev/null
+++ b/app/view/deleteacct/default.view.php
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+
+<html lang="en">
+ <head>
+ <?php include "view/common/head.view.php"; ?>
+ <title>Scrott - Delete user account</title>
+ </head>
+
+ <body>
+ <?php include "view/common/topp.view.php"; ?>
+
+ <div class="container">
+ <div class="panel panel-danger">
+ <div class="panel-heading">Warning: Deleting your user account!</div>
+
+ <div class="panel-body text-center">
+ <form method="post" action="<?=$mod->ap()?>">
+ <input type="hidden" name="input[action]" value="delete" />
+ <h1>Are you sure?!</h1>
+ <h4>Please confirm you want to delete your Scrott account. Type your current password in the box below and click the confirm button</h4>
+
+ <div class="form-group">
+ <label>Password</label>
+ <input type="password" name="input[password]" class="form-control" autofocus />
+ </div>
+
+ <button type="submit" class="btn btn-danger btn-lg">
+ <span class="glyphicon glyphicon-trash"></span> Confirm Delete Account
+ </button>
+ </form>
+ </div>
+ </div>
+ </div>
+
+ <?php include "view/common/foot.view.php"; ?>
+ </body>
+</html>