72 lines
2.8 KiB
HTML
Executable File
72 lines
2.8 KiB
HTML
Executable File
<!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-assetsCabinet-edit" th:object="${assetsCabinet}">
|
||
<input id="cabinetId" name="cabinetId" th:field="*{cabinetId}" type="hidden">
|
||
<div class="form-group">
|
||
<label class="col-sm-3 control-label">所属机房:</label>
|
||
<div class="col-sm-8">
|
||
<input id="machineRoomId" name="machineRoomId" th:field="*{machineRoom.machineRoomId}"
|
||
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 id="cabinetName" name="cabinetName" th:field="*{cabinetName}" 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 id="cabinetArea" name="cabinetArea" th:field="*{cabinetArea}" class="form-control" type="text">
|
||
</div>
|
||
</div>
|
||
<div class="form-group">
|
||
<label class="col-sm-3 control-label">机柜可用U数:</label>
|
||
<div class="col-sm-8">
|
||
<input id="cabinetAvailU" name="cabinetAvailU" th:field="*{cabinetAvailU}" 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 id="cabinetAvailElec" name="cabinetAvailElec" th:field="*{cabinetAvailElec}" 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 id="remark" name="remark" th:field="*{remark}" class="form-control" type="text">
|
||
</div>
|
||
</div>
|
||
</form>
|
||
</div>
|
||
<div th:include="include::footer"></div>
|
||
<script type="text/javascript" th:inline="javascript">
|
||
var prefix = ctx + "assets/assetsCabinet";
|
||
$("#form-assetsCabinet-edit").validate({
|
||
rules: {
|
||
xxxx: {
|
||
required: true,
|
||
},
|
||
},
|
||
focusCleanup: true
|
||
});
|
||
|
||
function submitHandler() {
|
||
if ($.validate.form()) {
|
||
$.operate.save(prefix + "/edit", $('#form-assetsCabinet-edit').serialize());
|
||
}
|
||
}
|
||
</script>
|
||
</body>
|
||
</html>
|