summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2016-04-04 23:35:23 -0400
committerMalf Furious <m@lfurio.us>2016-05-01 01:30:04 -0400
commit0ad5c4d29ca5d4109a7fe33cdfc9b8e6b01ace6b (patch)
tree6e00bf7723534b78a4ecef7787bfc9faa88f6139 /app
parent679ab64e465f610ae70aff8a1b491191863f7033 (diff)
downloadscrott-0ad5c4d29ca5d4109a7fe33cdfc9b8e6b01ace6b.tar.gz
scrott-0ad5c4d29ca5d4109a7fe33cdfc9b8e6b01ace6b.zip
Add view markup for showing user head images to the all users collapse panes
Diffstat (limited to 'app')
-rw-r--r--app/view/common/setting.modal.view.php38
1 files changed, 31 insertions, 7 deletions
diff --git a/app/view/common/setting.modal.view.php b/app/view/common/setting.modal.view.php
index 2415e18..19bcf5c 100644
--- a/app/view/common/setting.modal.view.php
+++ b/app/view/common/setting.modal.view.php
@@ -223,15 +223,39 @@
<input type="hidden" name="input[action]" value="common-setting-allusers-edituser" />
<input type="hidden" name="input[guid]" value="<?=$user->guid?>" />
- <div class="form-group">
- <label>Username</label>
- <input type="text" class="form-control" value="<?=$user->name?>" disabled />
+ <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="button" class="btn btn-danger btn-xs">
+ <span class="glyphicon glyphicon-remove"></span> Remove image
+ </button>
+ </div>
</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 class="collapse" id="input<?=$user->guid?>ImageCollapse">
+ <div class="form-group">
+ <label>User Image</label>
+ <input type="file" name="inputf[image]" />
+ </div>
</div>
<div class="collapse" id="input<?=$user->guid?>PasswdCollapse">