summaryrefslogtreecommitdiffstats
path: root/app/view/common
diff options
context:
space:
mode:
Diffstat (limited to 'app/view/common')
-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">