...
|
...
|
@@ -36,20 +36,22 @@ |
|
|
<h4 class="modal-title" id="myModalLabel"></h4>
|
|
|
</div>
|
|
|
<div class="modal-body">
|
|
|
<form class="form-horizontal">
|
|
|
<input type="hidden" name="editGroupId"/>
|
|
|
<div class="control-group">
|
|
|
<label class="control-label" style="float: left;">机组名称 : </label>
|
|
|
|
|
|
<div class="controls">
|
|
|
<input type="text" name="editGroupName"/>
|
|
|
<form id="hostGroupForm" class="form-horizontal">
|
|
|
<div class="form-group" >
|
|
|
<label class="col-sm-2 control-label"> <span style="color:red">*</span>机组名称:</label>
|
|
|
<div class="col-sm-8">
|
|
|
<input type="text" class="form-control" id="editGroupName" name="editGroupName" placeholder="输入机组名称" maxlength="30" size="40"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group" >
|
|
|
<label class="col-sm-2 control-label"> </label>
|
|
|
<div class="col-sm-8" id="messageAlert"></div>
|
|
|
</div>
|
|
|
<input type="hidden" name="editGroupId"/>
|
|
|
</form>
|
|
|
</div>
|
|
|
<div class="modal-footer">
|
|
|
<button type="button" class="btn btn-danger" data-dismiss="modal">关闭
|
|
|
</button>
|
|
|
<button type="button" class="btn btn-danger" data-dismiss="modal">关闭</button>
|
|
|
<button type="button" class="btn btn-success" value="Validate" onclick="saveHostGroup()">提交</button>
|
|
|
</div>
|
|
|
</div>
|
...
|
...
|
@@ -121,7 +123,10 @@ |
|
|
var id = $("input[name='editGroupId']").val();
|
|
|
var groupName = $("input[name='editGroupName']").val();
|
|
|
if (groupName == null || groupName == "") {
|
|
|
layer.alert("机组名称不能为空", {icon: 2});
|
|
|
$("#hostGroupForm #messageAlert").alerts({
|
|
|
content : "请输入机组名称!",
|
|
|
type : "danger"
|
|
|
});
|
|
|
return;
|
|
|
}
|
|
|
var param = {
|
...
|
...
|
|