<!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-strategycondition-edit" th:object="${tStrategyCondition}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">策略编号：</label>
                <div class="col-sm-8">
                    <input name="strategyId" th:field="*{strategyId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">条件1：</label>
                <div class="col-sm-8">
                    <input name="conditionParams" th:field="*{conditionParams}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">条件类型1：</label>
                <div class="col-sm-8">
                    <select name="conditionType" 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">目标条件1：</label>
                <div class="col-sm-8">
                    <input name="targetCondition" th:field="*{targetCondition}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">条件2：</label>
                <div class="col-sm-8">
                    <input name="conditionParams2" th:field="*{conditionParams2}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">条件类型2：</label>
                <div class="col-sm-8">
                    <input name="conditionType2" th:field="*{conditionType2}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">目标条件2：</label>
                <div class="col-sm-8">
                    <input name="targetCondition2" th:field="*{targetCondition2}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">条件3：</label>
                <div class="col-sm-8">
                    <input name="conditionParams3" th:field="*{conditionParams3}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">条件类型3：</label>
                <div class="col-sm-8">
                    <input name="conditionType3" th:field="*{conditionType3}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">目标条件3：</label>
                <div class="col-sm-8">
                    <input name="targetCondition3" th:field="*{targetCondition3}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "zhny/strategycondition";
        $("#form-strategycondition-edit").validate({
            focusCleanup: true
        });

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