<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title>登录设置-大司空云计价</title>
    <link rel="stylesheet" href="/lib/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="/web/building_saas/css/main.css">
    <link rel="stylesheet" href="/lib/font-awesome/font-awesome.min.css">
    <link rel="shortcut icon" href="/web/building_saas/css/favicon.ico">
    <link rel="icon" type="image/gif" href="/web/building_saas/css/animated_favicon1.gif">
</head>

<body>
    <div class="header">
        <%include ../../common/html/header.html %>
    </div>
    <div class="main">
        <div class="poj-manage container-fluid">
            <div class="row">
                <div class="col-lg-2">
                    <!--<div class="poj-cate mt-3">-->
                    <div class="mt-3">
                        <ul class="nav nav-pills flex-column">
                            <li class="nav-item">
                                <a class="nav-link" href="/user/info">企业资料</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" href="/user/safe">账号安全</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" href="/user/buy">产品激活</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link active" href="/user/preferences">登录设置</a>
                            </li>
                        </ul>
                    </div>
                </div>
                <div class="col-lg-10">
                    <div class="col-lg-4">
                        <legend class="my-3">登录设置</legend>
                        <form method="post" action="/user/save-preferences">
                            <div class="form-group">
                                <label class="form-control-label">登录时选择费用定额</label>
                                <div class="form-control">
                                    <div class="form-check form-check-inline">
                                      <input name="login_ask" type="radio" class="form-check-input" value="1"
                                        <% if(preferenceSetting.login_ask === 1) { %>checked="checked" <% } %>>
                                      <label class="form-check-label">每次询问</label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                      <input name="login_ask" type="radio" class="form-check-input" value="0"
                                        <% if(preferenceSetting.login_ask === 0) { %>checked="checked" <% } %>>
                                      <span class="form-check-label">指定费用定额</span>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="form-control-label">指定费用定额</label>
                                <select class="form-control" name="select_version">
                                    <option value="">请选择费用定额</option>
                                    <% if (compilationList.length > 0) {%>
                                    <% compilationList.forEach(function(compilation) { %>
                                    <option value="<%= compilation._id %>" <% if(preferenceSetting.select_version === compilation._id.toString()) { %>selected="selected" <% } %>><%= compilation.name %></option>
                                    <% }) %>
                                    <% } %>
                                </select>
                            </div>
                            <div class="form-group mt-3">
                                <button class="btn btn-primary" type="submit">确认</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- JS. -->
    <script src="/web/building_saas/js/global.js"></script>
</body>
<script type="text/javascript">
    autoFlashHeight();
</script>

</html>
