mindoc/views/manager/attach_detailed.tpl

99 lines
5.1 KiB
Smarty
Raw Normal View History

2017-06-09 18:14:55 +08:00
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{i18n .Lang "mgr.attachment_mgr"}} - Powered by MinDoc</title>
2017-06-09 18:14:55 +08:00
<!-- Bootstrap -->
<link href="{{cdncss "/static/bootstrap/css/bootstrap.min.css"}}" rel="stylesheet" type="text/css">
<link href="{{cdncss "/static/font-awesome/css/font-awesome.min.css"}}" rel="stylesheet" type="text/css">
<link href="{{cdncss "/static/css/main.css" "version"}}" rel="stylesheet">
2017-06-09 18:14:55 +08:00
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="{{cdnjs "/static/html5shiv/3.7.3/html5shiv.min.js"}}"></script>
<script src="{{cdnjs "/static/respond.js/1.4.2/respond.min.js" }}"></script>
<![endif]-->
</head>
<body>
<div class="manual-reader">
{{template "widgets/header.tpl" .}}
<div class="container manual-body">
<div class="row">
{{template "manager/widgets.tpl" .}}
2017-06-09 18:14:55 +08:00
<div class="page-right">
<div class="m-box">
<div class="box-head">
<strong class="box-title">{{i18n .Lang "mgr.attachment_mgr"}}</strong>
2017-06-09 18:14:55 +08:00
</div>
</div>
<div class="box-body">
<form>
<div class="form-group">
<label>{{i18n .Lang "mgr.file_name"}}</label>
<input type="text" value="{{.Model.FileName}}" class="form-control input-readonly" readonly>
2017-06-09 18:14:55 +08:00
</div>
<div class="form-group">
<label>{{i18n .Lang "mgr.is_exist"}}</label>
2017-06-09 18:14:55 +08:00
{{if .Model.IsExist }}
<input type="text" value="{{i18n .Lang "mgr.exist"}}" class="form-control input-readonly" readonly>
2017-06-09 18:14:55 +08:00
{{else}}
<input type="text" value="{{i18n .Lang "mgr.deleted"}}" class="form-control input-readonly" readonly>
2017-06-09 18:14:55 +08:00
{{end}}
</div>
<div class="form-group">
<label>{{i18n .Lang "mgr.proj_blog_name"}}</label>
<input type="text" value="{{.Model.BookName}}" class="form-control input-readonly" readonly>
2017-06-09 18:14:55 +08:00
</div>
{{if ne .Model.BookId 0}}
2017-06-09 18:14:55 +08:00
<div class="form-group">
<label>{{i18n .Lang "mgr.doc_name"}}</label>
<input type="text" value="{{.Model.DocumentName}}" class="form-control input-readonly" readonly>
2017-06-09 18:14:55 +08:00
</div>
{{end}}
2017-06-09 18:14:55 +08:00
<div class="form-group">
<label>{{i18n .Lang "mgr.file_path"}}</label>
<input type="text" value="{{.Model.FilePath}}" class="form-control input-readonly" readonly>
2017-06-09 18:14:55 +08:00
</div>
<div class="form-group">
<label>{{i18n .Lang "mgr.download_path"}}</label>
<input type="text" value="{{.Model.HttpPath}}" class="form-control input-readonly" readonly>
2017-06-09 18:14:55 +08:00
</div>
<div class="form-group">
<label>{{i18n .Lang "mgr.file_size"}}</label>
<input type="text" value="{{.Model.FileShortSize}}" class="form-control input-readonly" readonly>
2017-06-09 18:14:55 +08:00
</div>
<div class="form-group">
<label>{{i18n .Lang "mgr.upload_time"}}</label>
<input type="text" value="{{date_format .Model.CreateTime "2006-01-02 15:04:05"}}" class="form-control input-readonly" readonly>
2017-06-09 18:14:55 +08:00
</div>
<div class="form-group">
<label>{{i18n .Lang "uc.account"}}</label>
<input type="text" value="{{ .Model.Account }}" class="form-control input-readonly" readonly>
2017-06-09 18:14:55 +08:00
</div>
<div class="form-group">
<a href="{{urlfor "ManagerController.AttachList" }}" class="btn btn-success btn-sm">{{i18n .Lang "common.back"}}</a>
2017-06-09 18:14:55 +08:00
{{if .Model.IsExist }}
<a href="{{.Model.LocalHttpPath}}" class="btn btn-default btn-sm" target="_blank" title="{{i18n .Lang "mgr.download_title"}}">{{i18n .Lang "mgr.download"}}</a>
2017-06-09 18:14:55 +08:00
{{end}}
</div>
</form>
</div>
</div>
</div>
</div>
{{template "widgets/footer.tpl" .}}
</div>
<script src="{{cdnjs "/static/jquery/1.12.4/jquery.min.js"}}"></script>
<script src="{{cdnjs "/static/bootstrap/js/bootstrap.min.js"}}"></script>
<script src="{{cdnjs "/static/vuejs/vue.min.js"}}" type="text/javascript"></script>
<script src="{{cdnjs "/static/js/jquery.form.js"}}" type="text/javascript"></script>
<script src="{{cdnjs "/static/js/main.js"}}" type="text/javascript"></script>
2017-06-09 18:14:55 +08:00
</body>
</html>