实现设置第一篇文章为项目默认打开的页面

This commit is contained in:
Minho
2018-03-23 10:00:36 +08:00
parent 789a9155d1
commit e56210165f
20 changed files with 151 additions and 106 deletions

View File

@@ -73,11 +73,11 @@
</div>
<div class="list">
<span class="title">创建时间:</span>
<span class="body"> {{dateformat .Model.CreateTime "2006-01-02 15:04:05"}} </span>
<span class="body"> {{date_format .Model.CreateTime "2006-01-02 15:04:05"}} </span>
</div>
<div class="list">
<span class="title">修改时间:</span>
<span class="body"> {{dateformat .Model.CreateTime "2006-01-02 15:04:05"}} </span>
<span class="body"> {{date_format .Model.CreateTime "2006-01-02 15:04:05"}} </span>
</div>
<div class="list">
<span class="title">担任角色:</span>

View File

@@ -142,7 +142,7 @@
<label for="autoRelease">开启导出</label>
<div class="controls">
<div class="switch switch-small" data-on="primary" data-off="info">
<input type="checkbox" id="isDownload" name="is_download"{{if .Model.IsDownload }} checked{{end}} data-size="small">
<input type="checkbox" id="isDownload" name="is_download"{{if .Model.IsDownload }} checked{{end}} data-size="small" placeholder="开启导出">
</div>
</div>
</div>
@@ -150,7 +150,15 @@
<label for="autoRelease">开启分享</label>
<div class="controls">
<div class="switch switch-small" data-on="primary" data-off="info">
<input type="checkbox" id="enableShare" name="enable_share"{{if .Model.IsEnableShare }} checked{{end}} data-size="small">
<input type="checkbox" id="enableShare" name="enable_share"{{if .Model.IsEnableShare }} checked{{end}} data-size="small" placeholder="开启分享">
</div>
</div>
</div>
<div class="form-group">
<label for="autoRelease">设置第一篇文档为默认首页</label>
<div class="controls">
<div class="switch switch-small" data-on="primary" data-off="info">
<input type="checkbox" id="is_use_first_document" name="is_use_first_document"{{if .Model.IsUseFirstDocument }} checked{{end}} data-size="small" placeholder="设置第一篇文档为默认首页">
</div>
</div>
</div>
@@ -317,7 +325,7 @@
}).on("show.bs.modal",function () {
window.modalHtml = $("#upload-logo-panel").find(".modal-body").html();
});
$("#autoRelease,#enableShare,#isDownload").bootstrapSwitch();
$("#autoRelease,#enableShare,#isDownload,#is_use_first_document").bootstrapSwitch();
$('input[name="label"]').tagsinput({
confirmKeys: [13,44],