refactor: 移除 customModal Section
This commit is contained in:
parent
c617cde4c3
commit
64f1ddbf39
|
@ -57,12 +57,10 @@
|
|||
</form>
|
||||
</div>
|
||||
}
|
||||
@section customModal {
|
||||
@await Html.PartialAsync("RoleConfig")
|
||||
@await Html.PartialAsync("UserConfig")
|
||||
}
|
||||
@section cardbody {
|
||||
<div class="alert alert-info" role="alert" asp-condition="@Model.IsDemo">
|
||||
<span>部门与组织结构中的带有层次关系的部门不同,用于资源权限的分配与管理 <a href="https://gitee.com/LongbowEnterprise/BootstrapAdmin/wikis/%E6%95%B0%E6%8D%AE%E6%9D%83%E9%99%90?sort_id=1680495" target="_blank">参考文档</a></span>
|
||||
</div>
|
||||
}
|
||||
@await Html.PartialAsync("RoleConfig")
|
||||
@await Html.PartialAsync("UserConfig")
|
||||
|
|
|
@ -180,27 +180,25 @@
|
|||
</form>
|
||||
</div>
|
||||
}
|
||||
@section customModal {
|
||||
@await Html.PartialAsync("RoleConfig")
|
||||
<div id="dialogIcon" class="modal-content icon-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="myIconModalLabel">请选择图标</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="loadIconView"><i class="fa fa-spinner fa-pulse"></i><span>正在加载图标...请稍等</span></div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<span>被选择的图标</span><i class="fa fa-fa" id="pickIcon"></i>
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">
|
||||
<i class="fa fa-times"></i>
|
||||
<span>关闭</span>
|
||||
</button>
|
||||
<button type="button" class="btn btn-primary" id="btnSubmitIcon">
|
||||
<i class="fa fa-save"></i>
|
||||
<span>确定</span>
|
||||
</button>
|
||||
</div>
|
||||
<div id="dialogIcon" class="modal-content icon-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="myIconModalLabel">请选择图标</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
</div>
|
||||
@await Html.PartialAsync("NavigatorConfig")
|
||||
}
|
||||
<div class="modal-body">
|
||||
<div class="loadIconView"><i class="fa fa-spinner fa-pulse"></i><span>正在加载图标...请稍等</span></div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<span>被选择的图标</span><i class="fa fa-fa" id="pickIcon"></i>
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">
|
||||
<i class="fa fa-times"></i>
|
||||
<span>关闭</span>
|
||||
</button>
|
||||
<button type="button" class="btn btn-primary" id="btnSubmitIcon">
|
||||
<i class="fa fa-save"></i>
|
||||
<span>确定</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@await Html.PartialAsync("RoleConfig")
|
||||
@await Html.PartialAsync("NavigatorConfig")
|
||||
|
|
|
@ -81,9 +81,7 @@
|
|||
</form>
|
||||
</div>
|
||||
}
|
||||
@section customModal{
|
||||
@await Html.PartialAsync("UserConfig")
|
||||
@await Html.PartialAsync("GroupConfig")
|
||||
@await Html.PartialAsync("NavigatorConfig")
|
||||
@await Html.PartialAsync("AppConfig")
|
||||
}
|
||||
@await Html.PartialAsync("UserConfig")
|
||||
@await Html.PartialAsync("GroupConfig")
|
||||
@await Html.PartialAsync("NavigatorConfig")
|
||||
@await Html.PartialAsync("AppConfig")
|
||||
|
|
|
@ -69,45 +69,43 @@
|
|||
</form>
|
||||
</div>
|
||||
}
|
||||
@section customModal {
|
||||
@await Html.PartialAsync("RoleConfig")
|
||||
@await Html.PartialAsync("GroupConfig")
|
||||
<div class="modal fade" id="dialogReset" tabindex="-1" role="dialog" data-backdrop="static" aria-labelledby="myResetModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog modal-dialog-centered modal-lg" role="document">
|
||||
<div class="modal-content" data-toggle="LgbValidate" data-valid-button="#btnReset" data-valid-modal="#dialogReset">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="myResetModalLabel">重置密码窗口</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form class="form-inline">
|
||||
<div class="form-row" id="resetForm">
|
||||
<div class="form-group col-sm-6">
|
||||
<label class="control-label" for="password">登录密码</label>
|
||||
<input type="password" class="form-control" id="resetPassword" placeholder="不可为空,16字以内" maxlength="16" data-valid="true" />
|
||||
</div>
|
||||
<div class="form-group col-sm-6">
|
||||
<label class="control-label" for="confirm">确认密码</label>
|
||||
<input type="password" class="form-control" id="resetConfirm" placeholder="与登录密码一致" maxlength="16" equalTo="#resetPassword" data-valid="true" />
|
||||
</div>
|
||||
<div class="form-group col-sm-12">
|
||||
<label class="control-label" for="resetReason">重置原因</label>
|
||||
<textarea class="form-control flex-sm-fill" id="resetReason" rows="3" readonly="readonly" maxlength="200"></textarea>
|
||||
</div>
|
||||
@await Html.PartialAsync("RoleConfig")
|
||||
@await Html.PartialAsync("GroupConfig")
|
||||
<div class="modal fade" id="dialogReset" tabindex="-1" role="dialog" data-backdrop="static" aria-labelledby="myResetModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog modal-dialog-centered modal-lg" role="document">
|
||||
<div class="modal-content" data-toggle="LgbValidate" data-valid-button="#btnReset" data-valid-modal="#dialogReset">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="myResetModalLabel">重置密码窗口</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form class="form-inline">
|
||||
<div class="form-row" id="resetForm">
|
||||
<div class="form-group col-sm-6">
|
||||
<label class="control-label" for="password">登录密码</label>
|
||||
<input type="password" class="form-control" id="resetPassword" placeholder="不可为空,16字以内" maxlength="16" data-valid="true" />
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">
|
||||
<i class="fa fa-times"></i>
|
||||
<span>关闭</span>
|
||||
</button>
|
||||
<button type="button" class="btn btn-primary" id="btnReset">
|
||||
<i class="fa fa-save"></i>
|
||||
<span>保存</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="form-group col-sm-6">
|
||||
<label class="control-label" for="confirm">确认密码</label>
|
||||
<input type="password" class="form-control" id="resetConfirm" placeholder="与登录密码一致" maxlength="16" equalTo="#resetPassword" data-valid="true" />
|
||||
</div>
|
||||
<div class="form-group col-sm-12">
|
||||
<label class="control-label" for="resetReason">重置原因</label>
|
||||
<textarea class="form-control flex-sm-fill" id="resetReason" rows="3" readonly="readonly" maxlength="200"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">
|
||||
<i class="fa fa-times"></i>
|
||||
<span>关闭</span>
|
||||
</button>
|
||||
<button type="button" class="btn btn-primary" id="btnReset">
|
||||
<i class="fa fa-save"></i>
|
||||
<span>保存</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
|
|
@ -67,7 +67,6 @@
|
|||
@RenderSection("tableButtons", false)
|
||||
</div>
|
||||
</div>
|
||||
@await RenderSectionAsync("body", false)
|
||||
<div class="modal fade" id="dialogNew" tabindex="-1" role="dialog" data-backdrop="static" aria-labelledby="myModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog modal-dialog-centered modal-lg" role="document">
|
||||
<div class="modal-content" data-toggle="LgbValidate" data-valid-button="#btnSubmit" data-valid-modal="#dialogNew">
|
||||
|
@ -102,4 +101,4 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@RenderSection("customModal", false)
|
||||
@RenderBody()
|
||||
|
|
Loading…
Reference in New Issue