<!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-netinfo-edit" th:object="${tdPropertyNetinfo}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="row">
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label">设备编号：</label>
                        <div class="col-sm-8">
                            <input name="id" disabled th:field="*{id}" class="form-control" type="text">
                        </div>
                    </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label">网络编号：</label>
                        <div class="col-sm-8">
                            <input name="netId" disabled th:field="*{netId}" class="form-control" type="text">
                        </div>
                    </div>
                </div>
            </div>

            <div class="row">
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label is-required">设备种类：</label>
                        <div class="col-sm-8">
                            <select name="netName" required class="form-control" th:with="type=${@dict.getType('sys_net_type')}">
                                <option value="">---请选择---</option>
                                <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{netName}"></option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label is-required">网络设备品牌：</label>
                        <div class="col-sm-8">
                            <input name="netBrand" required th:field="*{netBrand}" class="form-control" type="text">
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label">IP地址：</label>
                        <div class="col-sm-8">
                            <input name="netIp" th:field="*{netIp}" class="form-control" type="text">
                        </div>
                    </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label is-required">设备型号：</label>
                        <div class="col-sm-8">
                            <input name="netNo" required th:field="*{netNo}" class="form-control" type="text">
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label is-required">序列号：</label>
                        <div class="col-sm-8">
                            <input name="netSn" required th:field="*{netSn}" class="form-control" type="text">
                        </div>
                    </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label is-required">责任人：</label>
                        <div class="col-sm-8">
                            <input name="netManager" required th:field="*{netManager}" class="form-control" type="text">
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label is-required">单位名称：</label>
                        <div class="col-sm-8">
                            <input name="depart" required th:field="*{depart}" class="form-control" type="text">
                        </div>
                    </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label is-required">密级：</label>
                        <div class="col-sm-8">
                            <select name="netMiji" required class="form-control" th:with="type=${@dict.getType('sys_file_miji')}">
                                <option value="">---请选择---</option>
                                <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{netMiji}"></option>
                            </select>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label is-required">涉密网络名称：</label>
                        <div class="col-sm-8">
                            <input name="netsmname" required th:field="*{netsmname}" class="form-control" type="text">
                        </div>
                    </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label is-required">是否属于要害部门部位：</label>
                        <div class="col-sm-8">
                            <div class="radio-box" th:each="dict : ${@dict.getType('sys_yes_no')}">
                                <input type="radio" required th:id="${'isCurcial_' + dict.dictCode}" name="isCurcial" th:value="${dict.dictValue}" th:field="*{isCurcial}">
                                <label th:for="${'isCurcial_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-12">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">备注：</label>
                        <div class="col-sm-10">
                            <textarea name="remark" th:field="*{remark}" class="form-control" type="text"></textarea>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/network/netinfo";
        $("#form-netinfo-edit").validate({
            focusCleanup: true
        });

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