<!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-planinfo-add">
            <div class="form-group">
                <label class="col-sm-3 control-label">设备基台：</label>
                <div class="col-sm-8">
                    <select name="deviceid" id="deviceid" class="form-control ">
                        <option value="">--请选择设备基台--</option>
                        <option name="cbdeviceInfo" th:each="deviceid:${cbdeviceInfo}" th:value="${deviceid.deviceId}" th:text="${deviceid.deviceName}" th:disabled="${deviceid.status == '1'}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">计划班次：</label>
                <div class="col-sm-8">
                    <select name="planShiftId" id="planShiftId" class="form-control ">
                        <option value="">--请选择计划班次--</option>
                        <option name="cbshitfInfo" th:each="planShiftId:${cbshitfInfo}" th:value="${planShiftId.shiftid}" th:text="${planShiftId.shiftname}" th:disabled="${planShiftId.status == '1'}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <input name="remark" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "baseinfo/planinfo"
        $("#form-planinfo-add").validate({
            focusCleanup: true
        });

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