<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增展示指标')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-v-add">
            <div class="form-group">    
                <label class="col-sm-3 control-label">名称：</label>
                <div class="col-sm-8">
                    <input name="name" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">计算公式：</label>
                <div class="col-sm-8">
                    <input name="formula" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
            <label class="col-sm-3 control-label">展示公式：</label>
            <div class="col-sm-8">
                <input name="formula0" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">    
        <label class="col-sm-3 control-label">单位：</label>
        <div class="col-sm-8">
            <input name="unit" class="form-control" type="text">
        </div>
    </div>
    <div class="form-group">    
    <label class="col-sm-3 control-label">其他指标：</label>
    <div class="col-sm-8">
        <input name="others" class="form-control" type="text">
    </div>
</div>
    <div class="form-group">    
    <label class="col-sm-3 control-label">年度指标：</label>
    <div class="col-sm-8">
    <label class="radio-box">
    <input type="radio" checked="" value="0"  name="year">否</label>
<label class="radio-box">
    <input type="radio" value="1"  name="year">是</label>
    </div>
</div>
            <div class="form-group">
                <label class="col-sm-3 control-label">说明：</label>
                <div class="col-sm-8">
                    <textarea name="illustration" class="form-control"></textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <textarea name="remark" class="form-control"></textarea>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "index/v"
        $("#form-v-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-v-add').serialize());
            }
        }
    </script>
</body>
</html>