2018-08-10 16:05:24 +08:00
|
|
|
|
@model Bootstrap.Admin.Models.ThemeModel
|
2016-11-02 00:59:58 +08:00
|
|
|
|
@{
|
2016-11-16 17:43:15 +08:00
|
|
|
|
ViewBag.Title = "网站设置";
|
2016-11-02 00:59:58 +08:00
|
|
|
|
Layout = "~/Views/Shared/_Admin.cshtml";
|
|
|
|
|
}
|
|
|
|
|
@section Javascript {
|
2018-08-02 17:59:49 +08:00
|
|
|
|
<environment include="Development">
|
|
|
|
|
<script src="~/js/jquery.validate.js"></script>
|
|
|
|
|
<script src="~/js/messages_zh.js"></script>
|
|
|
|
|
</environment>
|
|
|
|
|
<environment exclude="Development">
|
|
|
|
|
<script src="~/js/jquery.validate.min.js"></script>
|
|
|
|
|
<script src="~/js/messages_zh.min.js"></script>
|
|
|
|
|
</environment>
|
2018-06-07 00:45:47 +08:00
|
|
|
|
<script src="~/js/longbow.dataentity.js"></script>
|
2018-06-07 12:49:59 +08:00
|
|
|
|
<script src="~/js/longbow.validate.js"></script>
|
2018-08-15 15:27:12 +08:00
|
|
|
|
<script src="~/js/settings.js"></script>
|
2016-11-04 16:06:40 +08:00
|
|
|
|
}
|
2018-08-02 17:59:49 +08:00
|
|
|
|
<div class="card">
|
|
|
|
|
<div class="card-header">系统名称设置</div>
|
|
|
|
|
<div class="card-body" data-toggle="LgbValidate" data-valid-button="#sysSave">
|
2018-08-02 19:19:03 +08:00
|
|
|
|
<div class="form-group">
|
|
|
|
|
<div class="input-group">
|
|
|
|
|
<input type="text" class="form-control" id="sysName" placeholder="请输入网站标题,50字以内" value="@Model.Title" maxlength="50" data-valid="true" />
|
|
|
|
|
<div class="input-group-append">
|
|
|
|
|
<button class="btn btn-secondary" type="button" data-method="title">保存</button>
|
|
|
|
|
</div>
|
2018-08-02 17:59:49 +08:00
|
|
|
|
</div>
|
2018-06-07 12:49:59 +08:00
|
|
|
|
</div>
|
2016-11-02 00:59:58 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2018-08-02 17:59:49 +08:00
|
|
|
|
<div class="card">
|
|
|
|
|
<div class="card-header">页脚设置</div>
|
|
|
|
|
<div class="card-body" data-toggle="LgbValidate" data-valid-button="#footSave">
|
2018-08-02 19:19:03 +08:00
|
|
|
|
<div class="form-group">
|
|
|
|
|
<div class="input-group">
|
|
|
|
|
<input type="text" class="form-control" id="sysFoot" placeholder="请输入网站页脚,50字以内" value="@Model.Footer" maxlength="50" data-valid="true" />
|
|
|
|
|
<div class="input-group-append">
|
|
|
|
|
<button class="btn btn-secondary" type="button" data-method="footer">保存</button>
|
|
|
|
|
</div>
|
2018-08-02 17:59:49 +08:00
|
|
|
|
</div>
|
2018-06-07 12:49:59 +08:00
|
|
|
|
</div>
|
2016-11-02 00:59:58 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2018-08-02 17:59:49 +08:00
|
|
|
|
<div class="card">
|
|
|
|
|
<div class="card-header">网站样式</div>
|
|
|
|
|
<div class="card-body">
|
2018-08-10 17:40:06 +08:00
|
|
|
|
<div class="form-group text-right">
|
|
|
|
|
<div class="btn-group" role="group">
|
|
|
|
|
<div class="btn-group" role="group">
|
2018-08-10 16:05:24 +08:00
|
|
|
|
<button id="dictCssDefine" class="btn btn-success dropdown-select dropdown-toggle" data-toggle="dropdown" data-default-val="" value="@Model.Theme">默认样式</button>
|
2018-08-10 21:51:21 +08:00
|
|
|
|
<div class="dropdown-menu">
|
|
|
|
|
<a href="#" data-val="">默认样式</a>
|
2018-08-10 16:05:24 +08:00
|
|
|
|
@foreach (var css in Model.Themes)
|
|
|
|
|
{
|
2018-09-07 16:11:18 +08:00
|
|
|
|
<a href="#" data-val="@css.Code">@css.Name</a>
|
2018-08-10 16:05:24 +08:00
|
|
|
|
}
|
2018-08-10 21:51:21 +08:00
|
|
|
|
</div>
|
2016-12-09 20:13:22 +08:00
|
|
|
|
</div>
|
2018-08-02 19:19:03 +08:00
|
|
|
|
<button class="btn btn-secondary" type="button" data-method="css">保存</button>
|
2016-12-09 20:13:22 +08:00
|
|
|
|
</div>
|
2018-08-10 17:40:06 +08:00
|
|
|
|
</div>
|
2016-12-09 20:13:22 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2018-08-02 17:59:49 +08:00
|
|
|
|
<div class="card">
|
2018-08-06 16:04:03 +08:00
|
|
|
|
<div class="card-header">
|
|
|
|
|
<div class="d-flex align-items-center">
|
|
|
|
|
<span class="flex-fill">网站缓存</span>
|
|
|
|
|
<a data-method="clear" href="#" class="fa fa-times-circle-o" data-admin="@User.IsInRole("Administrators")" title="全部清除" data-toggle="tooltip" data-placement="left"></a>
|
|
|
|
|
<a data-method="refresh" href="#" class="fa fa-refresh ml-3" title="点击刷新" data-toggle="tooltip"></a>
|
2016-11-04 16:06:40 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2018-08-06 16:04:03 +08:00
|
|
|
|
<div class="card-body" id="sortable">
|
|
|
|
|
</div>
|
2016-11-10 00:47:23 +08:00
|
|
|
|
</div>
|