mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-04-05 19:53:51 +08:00
feat: 项目配置新增是否开启打印功能
This commit is contained in:
parent
6792c825ea
commit
f3846cc431
@ -318,6 +318,7 @@ next = next
|
||||
no = no
|
||||
edit_title = Edit Blog
|
||||
private_blog_tips = Private blog, please enter password to access
|
||||
print_text = Enable Printing
|
||||
|
||||
[doc]
|
||||
modify_doc = Modify Document
|
||||
|
@ -318,6 +318,7 @@ next = 下一篇
|
||||
no = 无
|
||||
edit_title = 编辑文章
|
||||
private_blog_tips = 加密文章,请输入密码访问
|
||||
print_text = 开启打印
|
||||
|
||||
[doc]
|
||||
modify_doc = 修改文档
|
||||
|
@ -128,6 +128,15 @@
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
<div class="form-group">
|
||||
<label for="autoRelease">{{i18n $.Lang "blog.print_text"}}</label>
|
||||
<div class="controls">
|
||||
<div class="switch switch-small" data-on="primary" data-off="info">
|
||||
<input type="checkbox" id="autoSave" name="print_state"{{if .Model.PrintState }} checked{{end}} data-size="small" placeholder="{{i18n $.Lang "blog.print_text"}}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="autoRelease">{{i18n $.Lang "blog.auto_publish"}}</label>
|
||||
<div class="controls">
|
||||
|
@ -88,7 +88,9 @@
|
||||
</div>
|
||||
{{end}}
|
||||
{{end}}
|
||||
{{if .Model.PrintState}}
|
||||
<a href="javascript:window.print();" id="printSinglePage" class="btn btn-default" style="margin-right: 10px;"><i class="fa fa-print"></i> {{i18n .Lang "doc.print"}}</a>
|
||||
{{end}}
|
||||
<div class="dropdown pull-right" style="margin-right: 10px;">
|
||||
{{if eq .Model.PrivatelyOwned 0}}
|
||||
{{if .Model.IsEnableShare}}
|
||||
|
Loading…
Reference in New Issue
Block a user