<!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-energystoragestatus-add">
            <div class="form-group">    
                <label class="col-sm-3 control-label">数据时间：</label>
                <div class="col-sm-8">
                    <input name="dataTime" 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="faultState" 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="ssCdl" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">实时状态：</label>
                <div class="col-sm-8">
                    <div class="radio-box">
                        <input type="radio" name="ssStatus" value="">
                        <label th:for="ssStatus" th:text="未知"></label>
                    </div>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">今日发电：</label>
                <div class="col-sm-8">
                    <input name="jrFd" 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="jrfd" 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="dcwd" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">SOH充电量：</label>
                <div class="col-sm-8">
                    <input name="sohCdl" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "zhny/energystoragestatus"
        $("#form-energystoragestatus-add").validate({
            focusCleanup: true
        });

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