{% load i18n %}
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta content="IE=edge" http-equiv="X-UA-Compatible">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
    <title>{% block title %}{% endblock %}</title>
    <!-- css -->
    <link href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <link href="{{ STATIC_URL }}vender/jquery-easyui-1.5.1/themes/metro/easyui.css" rel="stylesheet">
    <link href="{{ STATIC_URL }}vender/select2/css/select2.min.css" rel="stylesheet">
    <link href="{{ STATIC_URL }}vender/select2/css/select2-reset.css" rel="stylesheet">
    <link href="{{ STATIC_URL }}manage/css/base.css" rel="stylesheet">
    {% block css %}{% endblock %}
</head>
<body>
<!-- 页面加载中动画 -->
<div id="page-loading">
    <img class="loading" alt="" src="{{ STATIC_URL }}manage/images/page-loading.svg">
</div>
<!-- 网络请求加载动画 -->
<div class="ajax-loading">
    <div class="loading-bg">
        <img class="loading" alt="" src="{{ STATIC_URL }}manage/images/loading.svg">
    </div>
</div>
<!-- 自动消失的提示 -->
<div class="m-pop" id="m-pop">
    <div class="pop-msg"></div>
</div>
<div class="m-pop" id="m-pop-error">
    <div class="pop-msg error"></div>
</div>
{% block content %}{% endblock %}

<!-- js -->
<script src="{{ STATIC_URL }}vender/jquery/jquery-1.12.4.min.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}vender/jquery/jquery.form.js"></script>
<script src="{{ STATIC_URL }}vender/jquery-easyui-1.5.1/jquery.easyui.min.js"></script>
<script src="{{ STATIC_URL }}vender/jquery-easyui-1.5.1/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}vender/select2/js/select2.min.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}vender/select2/js/i18n/zh-CN.js"></script>
<script src="{{ STATIC_URL }}manage/js/easyui.js"></script>
<script src="{{ STATIC_URL }}manage/js/validate.js"></script>
<script src="{{ STATIC_URL }}manage/js/utils.js"></script>
<script src="{{ STATIC_URL }}manage/js/table.js"></script>
<script>
    window.onload = function () {
        setTimeout(function () {
            document.getElementById("page-loading").style.display = "none";
        }, 800);
    }
    $(function () {
        $(".content").css("min-height", $(window).height() - 20 + "px");
        $(window).resize(function () {
            $(".content").css("min-height", $(window).height() - 20 + "px");
        });

        $("select:not('.rawSelect')").select2({
            minimumResultsForSearch: -1,
            language: {
                noResults: function (term) {
                    return "无相关记录";
                }
            }
        });
        $("select.hasSearch").select2({
            language: {
                noResults: function (term) {
                    return "无相关记录";
                }
            }
        });
    });
</script>
{% block javascript %}{% endblock %}
</body>
</html>