feat: 个人中心未授权功能不显示相关card

This commit is contained in:
Argo Zhang 2019-08-24 12:55:37 +08:00
parent 06f2cdd983
commit 5d4215d144
1 changed files with 10 additions and 10 deletions

View File

@ -30,7 +30,7 @@
<script src="~/lib/longbow/longbow.validate.js" asp-append-version="true"></script>
<script src="~/js/profiles.js" asp-append-version="true"></script>
}
<div class="card">
<div class="card" asp-auth="saveDisplayName">
<div class="card-header">基本资料</div>
<div class="card-body" data-toggle="LgbValidate" data-valid-button="#btnSaveDisplayName">
<div class="alert alert-danger" role="alert" asp-condition="@Model.IsDemo">
@ -48,12 +48,12 @@
</div>
</div>
</form>
<div class="modal-footer" asp-auth="saveDisplayName" asp-condition="!@Model.IsDemo">
<div class="modal-footer" asp-condition="!@Model.IsDemo">
<button id="btnSaveDisplayName" data-method="user" class="btn btn-secondary" type="button"><i class="fa fa-save"></i><span>保存</span></button>
</div>
</div>
</div>
<div class="card">
<div class="card" asp-auth="savePassword">
<div class="card-header">修改密码</div>
<div class="card-body" data-toggle="LgbValidate" data-valid-button="#btnSavePassword">
<div class="alert alert-danger" role="alert" asp-condition="@Model.IsDemo">
@ -77,12 +77,12 @@
</div>
</div>
</form>
<div class="modal-footer" asp-auth="savePassword" asp-condition="!@Model.IsDemo">
<div class="modal-footer" asp-condition="!@Model.IsDemo">
<button id="btnSavePassword" data-method="password" class="btn btn-secondary" type="button"><i class="fa fa-save"></i><span>保存</span></button>
</div>
</div>
</div>
<div class="card">
<div class="card" asp-auth="saveApp">
<div class="card-header">默认应用</div>
<div class="card-body">
<div class="form-group">
@ -96,12 +96,12 @@
</div>
</div>
</div>
<div class="modal-footer" asp-auth="saveApp">
<div class="modal-footer">
<button id="btnSaveApp" data-method="app" class="btn btn-secondary" type="button"><i class="fa fa-save"></i><span>保存</span></button>
</div>
</div>
</div>
<div class="card">
<div class="card" asp-auth="saveTheme">
<div class="card-header">网站样式</div>
<div class="card-body">
<div class="alert alert-info" role="alert">
@ -119,15 +119,15 @@
</div>
</div>
</div>
<div class="modal-footer" asp-auth="saveTheme">
<div class="modal-footer">
<button id="btnSaveCss" data-method="profileCss" class="btn btn-secondary" type="button"><i class="fa fa-save"></i><span>保存</span></button>
</div>
</div>
</div>
<div class="card">
<div class="card" asp-auth="saveIcon">
<div class="card-header">修改头像</div>
<div class="card-body">
<form enctype="multipart/form-data" asp-auth="saveIcon">
<form enctype="multipart/form-data">
<div class="form-group">
<input id="fileIcon" type="file" data-init="@Model.Size" data-file="@Model.FileName">
</div>