修改BUG:更改Settings页面

This commit is contained in:
Argo-MacBookPro 2018-08-02 19:19:03 +08:00
parent 3db3a296bd
commit c4da68cf48
7 changed files with 34 additions and 32 deletions

View File

@ -22,10 +22,12 @@
<div class="card">
<div class="card-header">系统名称设置</div>
<div class="card-body" data-toggle="LgbValidate" data-valid-button="#sysSave">
<div class="input-group form-group col-xs-12">
<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 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>
</div>
</div>
</div>
@ -33,10 +35,12 @@
<div class="card">
<div class="card-header">页脚设置</div>
<div class="card-body" data-toggle="LgbValidate" data-valid-button="#footSave">
<div class="input-group form-group col-xs-12">
<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 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>
</div>
</div>
</div>
@ -45,19 +49,17 @@
<div class="card-header">网站样式</div>
<div class="card-body">
<form id="CssDataForm" class="form-inline">
<div class="form-row">
<div class="form-group col-xs-12">
<div class="dropdown lgbDropdown">
<a id="dictCssDefine" class="btn btn-success dropdown-toggle" data-toggle="dropdown" data-default-val="">
<span>默认样式</span>
<span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu" id="cssContainer">
<li><a href="#" data-val="">默认样式</a></li>
</ul>
</div>
<button class="btn btn-secondary" type="button" data-method="css">保存</button>
<div class="form-group">
<div class="dropdown lgbDropdown">
<button id="dictCssDefine" class="btn btn-success dropdown-toggle" data-toggle="dropdown" data-default-val="">
<span>默认样式</span>
<span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu" id="cssContainer">
<li><a href="#" data-val="">默认样式</a></li>
</ul>
</div>
<button class="btn btn-secondary" type="button" data-method="css">保存</button>
</div>
</form>
</div>

View File

@ -11,7 +11,7 @@
<ul class="notify-row">
<!-- tasks start -->
<li class="dropdown">
<a data-toggle="dropdown" class="dropdown-toggle" href="#">
<a data-toggle="dropdown" href="#">
<i class="fa fa-tasks"></i>
<span id="msgHeaderTaskBadge" class="badge bg-success"></span>
</a>
@ -28,7 +28,7 @@
<!-- tasks end -->
<!-- message dropdown start-->
<li class="dropdown">
<a data-toggle="dropdown" class="dropdown-toggle" href="#">
<a data-toggle="dropdown" href="#">
<i class="fa fa-envelope"></i>
<span id="msgHeaderMsgBadge" class="badge bg-important"></span>
</a>
@ -45,7 +45,7 @@
<!-- message dropdown end -->
<!-- users dropdown start-->
<li class="dropdown">
<a data-toggle="dropdown" class="dropdown-toggle" href="#">
<a data-toggle="dropdown" href="#">
<i class="fa fa-user-plus"></i>
<span id="msgHeaderUserBadge" class="badge bg-user"></span>
</a>
@ -62,7 +62,7 @@
<!-- users dropdown end -->
<!-- apps dropdown start-->
<li class="dropdown">
<a data-toggle="dropdown" class="dropdown-toggle" href="#">
<a data-toggle="dropdown" href="#">
<i class="fa fa-bug"></i>
<span id="msgHeaderAppBadge" class="badge bg-warning"></span>
</a>
@ -79,7 +79,7 @@
<!-- apps dropdown end -->
<!-- db dropdown start-->
<li class="dropdown">
<a data-toggle="dropdown" class="dropdown-toggle" href="#">
<a data-toggle="dropdown" href="#">
<i class="fa fa-database"></i>
<span id="msgHeaderDbBadge" class="badge bg-db"></span>
</a>

View File

@ -55,7 +55,7 @@
.modal-dialog .modal-body, .card-body {
padding-bottom: 0;
padding: 15px 15px 0 15px;
}
.modal-dialog .modal-body .form-inline .form-group input[type="text"], .modal-dialog .modal-body .form-inline .form-group input[type="password"] {

View File

@ -32,12 +32,12 @@ a, a:hover, a:focus {
.dropdown-menu {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.176);
padding: 0;
margin-top: 1rem;
font-size: 0.875rem;
}
.dropdown-menu > li > a {
padding: 6px 20px;
display: block;
}
.dropdown-menu .divider {
@ -101,6 +101,7 @@ a, a:hover, a:focus {
.header > .dropdown .dropdown-menu {
width: 268px;
margin-top: 10px;
}
.header > .dropdown .dropdown-menu li {
@ -248,7 +249,7 @@ a, a:hover, a:focus {
.notify-row > li > a .badge {
position: absolute;
top: -14px;
left: 38px;
left: 24px;
z-index: 1;
opacity: 0.8;
}

View File

@ -1,4 +1,3 @@
$(function () {
$('#navbar').attr('data-toggle', "dropdown").addClass('dropdown-toggle');
$('#breadNav').hide();
});

View File

@ -421,7 +421,7 @@
var op = typeof options === 'object' && options;
if (/val/.test(options)) {
if (arguments.length === 1)
return $this.first().children('a').val();
return $this.first().children('button').attr("data-val");
else {
$this.first().children(':first').children(':first').text($this.find('[data-val="' + arguments[1] + '"]').text());
}
@ -431,7 +431,7 @@
$(this).on('click', '.dropdown-menu a', { $parent: $(this) }, function (event) {
event.preventDefault();
var $op = $(this);
event.data.$parent.children('a').val($op.attr('data-val')).children(':first').text($op.text());
event.data.$parent.children('button').attr('data-val', $op.attr('data-val')).children(':first').text($op.text());
});
});
}

View File

@ -36,7 +36,7 @@
});
break;
case 'css':
var cssDefine = $('#dictCssDefine').val();
var cssDefine = $('#dictCssDefine').attr("data-val");
$.bc({
url: Settings.url, data: { name: '使用样式', code: cssDefine, category: '当前样式' }, title: '网站样式',
callback: function (result) {