74 lines
2.5 KiB
HTML
74 lines
2.5 KiB
HTML
|
|
<!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-server-edit" th:object="${server}">
|
|||
|
|
<input id="serverId" name="serverId" th:field="*{serverId}" type="hidden">
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-3 control-label">服务器品牌:</label>
|
|||
|
|
<div class="col-sm-8">
|
|||
|
|
<input id="serverBrand" name="serverBrand" th:field="*{serverBrand}" 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="serverType" name="serverType" th:field="*{serverType}" class="form-control" type="text">
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-3 control-label">CPU主频:</label>
|
|||
|
|
<div class="col-sm-8">
|
|||
|
|
<input id="cpuFreq" name="cpuFreq" th:field="*{cpuFreq}" class="form-control" type="text">
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-3 control-label">CPU数量:</label>
|
|||
|
|
<div class="col-sm-8">
|
|||
|
|
<input id="cpuNum" name="cpuNum" th:field="*{cpuNum}" class="form-control" type="text">
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-3 control-label">IPMI端口:</label>
|
|||
|
|
<div class="col-sm-8">
|
|||
|
|
<input id="ipmiPort" name="ipmiPort" th:field="*{ipmiPort}" 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="powerNum" name="powerNum" th:field="*{powerNum}" class="form-control" type="text">
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-3 control-label">服务器raid卡:</label>
|
|||
|
|
<div class="col-sm-8">
|
|||
|
|
<input id="raidCard" name="raidCard" th:field="*{raidCard}" class="form-control" type="text">
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</form>
|
|||
|
|
</div>
|
|||
|
|
<div th:include="include::footer"></div>
|
|||
|
|
<script type="text/javascript">
|
|||
|
|
var prefix = ctx + "template/server";
|
|||
|
|
$("#form-server-edit").validate({
|
|||
|
|
rules:{
|
|||
|
|
xxxx:{
|
|||
|
|
required:true,
|
|||
|
|
},
|
|||
|
|
},
|
|||
|
|
focusCleanup: true
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
function submitHandler() {
|
|||
|
|
if ($.validate.form()) {
|
|||
|
|
$.operate.save(prefix + "/edit", $('#form-server-edit').serialize());
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
</script>
|
|||
|
|
</body>
|
|||
|
|
</html>
|