<!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, user-scalable=no">

    <title>SEO管理 - {{.SITE_NAME}}</title>

    <<link href="//apps.bdimg.com/libs/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet">
    <link href="//cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">

    <link href="/static/css/main.css" rel="stylesheet">
{{/*<script src="/static/html5shiv/3.7.3/html5shiv.min.js"></script>*/}}
    <script src="//apps.bdimg.com/libs/html5shiv/3.7/html5shiv.min.js"></script>
{{/*<script src="/static/respond.js/1.4.2/respond.min.js"></script>*/}}
    <script src="//apps.bdimg.com/libs/respond.js/1.4.2/respond.js"></script>

    <link rel="stylesheet" href="/static/css/toast.css">
</head>
<body>
<div class="manual-reader">
    {{template "widgets/header.html" .}}
    <div class="container manual-body">
        <div class="row">
            <div class="page-left">
                {{template "manager/menu.html" .}}
            </div>
            <div class="page-right">
                <div class="m-box">
                    <div class="box-head">
                        <strong class="box-title">SEO管理</strong>
                        <a href="{{urlfor "ManagerController.Sitemap"}}" class="ajax-get pull-right btn btn-success">更新站点地图</a>
                    </div>
                </div>
                <div class="box-body" id="bookList">
                    <table class="table table-hover table-striped">
                        <caption>说明：默认值是程序根据页面自动获取的值
                            <ul>
                                <li>{sitename}:站点名称，见配置管理</li>
                                <li>{title}:默认标题</li>
                                <li>{keywords}:默认关键字</li>
                                <li>{description}:默认摘要</li>
                            </ul>
                        </caption>
                        <thead>
                        <tr>
                            <th>页面</th>
                            <th>标题</th>
                            <th>关键字</th>
                            <th>摘要</th>
                        </tr>
                        </thead>
                        <tbody>
                            {{range .Lists}}
                                <tr>
                                    <td>
                                        <strong>{{.Page}}</strong>
                                        <div class="help-block">{{.Statement}}</div>
                                    </td>
                                    <td>
                                        <textarea name="title" rows="3" class="form-control change-update" data-method="post" data-url="{{urlfor "ManagerController.Seo"}}?id={{.Id}}">{{.Title}}</textarea>
                                    </td>
                                    <td>
                                        <textarea name="keywords" rows="3" class="form-control change-update" data-method="post" data-url="{{urlfor "ManagerController.Seo"}}?id={{.Id}}">{{.Keywords}}</textarea>
                                    </td>
                                    <td>
                                        <textarea name="description" rows="3" class="form-control change-update" data-method="post" data-url="{{urlfor "ManagerController.Seo"}}?id={{.Id}}">{{.Description}}</textarea>
                                    </td>
                                </tr>
                            {{end}}
                        </tbody>
                    </table>

                    <nav class="pagination-container">
                        {{.PageHtml}}
                    </nav>
                </div>
            </div>
        </div>
    </div>
    <!-- {{template "widgets/footer.html" .}} -->
</div>

<div class="modal fade" id="addCategoryModal" tabindex="-1" role="dialog" aria-labelledby="addCategoryModalLabel">
    <div class="modal-dialog" role="document">
        <form method="post" autocomplete="off" class="form-horizontal" action="{{urlfor "ManagerController.CreateCategory"}}" id="addCategoryModalForm">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">添加项目分类</h4>
            </div>
            <div class="modal-body">
                <div class="form-group">
                    <label class="col-sm-12">分类名称<span class="error-message">*</span></label>
                    <div class="col-sm-12">
                        <textarea name="cates" id="cates" rows="5" class="form-control" placeholder="多个分类名称，请用换行分隔"></textarea>
                    </div>
                </div>
                <div class="clearfix"></div>
            </div>
            <div class="modal-footer">
                <span id="form-error-message"></span>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                <button type="submit" class="btn btn-success" data-loading-text="保存中..." id="btnCreateCategory">保存</button>
            </div>
        </div>
        </form>
    </div>
</div><!--END Modal-->



{{/*<script src="/static/jquery/1.12.4/jquery.min.js" type="text/javascript"></script>*/}}
<script src="//apps.bdimg.com/libs/jquery/1.11.3/jquery.min.js" type="text/javascript"></script>
{{/*<script src="/static/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>*/}}
<script src="//apps.bdimg.com/libs/bootstrap/3.3.4/js/bootstrap.min.js" type="text/javascript"></script>
<script src="{{$.StaticDomain}}/static/js/toast.script.js"></script>
<script src="/static/js/main.js" type="text/javascript"></script>
</body>
</html>