<!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-strategytarget-edit" th:object="${tStrategyTarget}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">生效条件ID：</label>
                <div class="col-sm-8">
                    <input name="conditionId" th:field="*{conditionId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">目标类型：</label>
                <div class="col-sm-8">
                    <select name="targetType" class="form-control m-b">
                        <option value="">所有</option>
                    </select>
                    <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="lightingNum" th:field="*{lightingNum}" 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="ktwd" th:field="*{ktwd}" 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="ktfs" th:field="*{ktfs}" 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="dxzs" th:field="*{dxzs}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "zhny/strategytarget";
        $("#form-strategytarget-edit").validate({
            focusCleanup: true
        });

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