修改BUG:个人中心,操作按钮默认应该是不可用,判断为普通用户后可使用

This commit is contained in:
Argo-Lenovo 2017-03-12 17:03:29 +08:00
parent 992cfd743e
commit 2c040dd895
2 changed files with 9 additions and 9 deletions

View File

@ -85,6 +85,6 @@
}
});
$('button[data-admin="True"]').attr('disabled', 'disabled');
$('button[data-admin="False"]').removeAttr('disabled');
$('#kvFileinputModal').appendTo('body');
});

View File

@ -33,7 +33,7 @@
</div>
</form>
<div class="modal-footer">
<button id="btnSaveDisplayName" class="btn btn-default" type="button" data-admin="@LgbPrincipal.IsAdmin(Model.UserName)"><i class="fa fa-save"></i><span>保存</span></button>
<button id="btnSaveDisplayName" class="btn btn-default" type="button" disabled data-admin="@LgbPrincipal.IsAdmin(Model.UserName)"><i class="fa fa-save"></i><span>保存</span></button>
</div>
</div>
</div>
@ -42,22 +42,22 @@
<div class="panel-body">
<form id="passwordDataForm" name="passwordDataForm" class="form-inline" role="form">
<div class="row">
<div class="form-group col-lg4 col-md-4 col-sm-12 col-xs-12">
<label class="control-label" for="currentPassword">当前密码: </label>
<input type="password" class="form-control" id="currentPassword" name="currentPassword" placeholder="登陆密码" maxlength="50" />
<div class="form-group col-md-4 col-xs-12">
<label class="control-label" for="currentPassword">密码: </label>
<input type="password" class="form-control" id="currentPassword" name="currentPassword" placeholder="密码" maxlength="50" />
</div>
<div class="form-group col-lg-4 col-md-4 col-sm-6 col-xs-12">
<label class="control-label" for="newPassword">新密码: </label>
<div class="form-group col-md-4 col-sm-6 col-xs-12">
<label class="control-label" for="newPassword">新密码: </label>
<input type="password" class="form-control" id="newPassword" name="newPassword" placeholder="新密码" maxlength="50" />
</div>
<div class="form-group col-lg-4 col-md-4 col-sm-6 col-xs-12">
<div class="form-group col-md-4 col-sm-6 col-xs-12">
<label class="control-label" for="confirmPassword">确认密码: </label>
<input type="password" class="form-control" id="confirmPassword" name="confirmPassword" placeholder="与新密码一致" maxlength="50" />
</div>
</div>
</form>
<div class="modal-footer">
<button id="btnSavePassword" class="btn btn-default" type="button" data-admin="@LgbPrincipal.IsAdmin(Model.UserName)"><i class="fa fa-save"></i><span>保存</span></button>
<button id="btnSavePassword" class="btn btn-default" type="button" disabled data-admin="@LgbPrincipal.IsAdmin(Model.UserName)"><i class="fa fa-save"></i><span>保存</span></button>
</div>
</div>
</div>