2015-01-11 11:27:21 +00:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
{% block content %}
|
|
|
|
{% include 'nav_cat_bar.html' %}
|
|
|
|
<div class="wrapper wrapper-content animated fadeInRight">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-10">
|
2015-01-26 15:32:52 +00:00
|
|
|
<div class="panel-options">
|
|
|
|
<ul class="nav nav-tabs">
|
|
|
|
<li class="active"><a data-toggle="tab" href="#tab-1" class="text-center"><i class="fa fa-laptop"></i> 添加主机组 </a></li>
|
|
|
|
<li><a href="/jasset/idc_add" class="text-center"><i class="fa fa-bar-chart-o"></i> 添加IDC </a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
2015-01-11 11:27:21 +00:00
|
|
|
<div class="ibox float-e-margins">
|
|
|
|
<div id="ibox-content" class="ibox-title">
|
2015-01-26 15:32:52 +00:00
|
|
|
<h5> 填写主机组基本信息 </h5>
|
2015-01-11 11:27:21 +00:00
|
|
|
</div>
|
|
|
|
<div class="ibox-content">
|
|
|
|
{% if emg %}
|
|
|
|
<div class="alert alert-warning text-center">{{ emg }}</div>
|
|
|
|
{% endif %}
|
2015-01-19 02:09:16 +00:00
|
|
|
{% if smg %}
|
|
|
|
<div class="alert alert-success text-center">{{ smg }}</div>
|
|
|
|
{% endif %}
|
|
|
|
<form id="assetForm" method="post" class="form-horizontal">
|
2015-01-26 15:32:52 +00:00
|
|
|
<div class="form-group"><label class="col-sm-2 control-label"> 主机组名 </label>
|
2015-01-19 02:09:16 +00:00
|
|
|
<div class="col-sm-8"><input type="text" value="{{ j_group }}" placeholder="网站" name="j_group" class="form-control"></div>
|
2015-01-11 11:27:21 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="hr-line-dashed"></div>
|
|
|
|
<div class="form-group"><label class="col-sm-2 control-label"> 备注 </label>
|
2015-01-19 02:09:16 +00:00
|
|
|
<div class="col-sm-8"><input type="text" value="{{ j_comment }}" placeholder=包括web组所有主机 name="j_comment" class="form-control"></div>
|
2015-01-11 11:27:21 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="hr-line-dashed"></div>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-sm-4 col-sm-offset-5">
|
|
|
|
<button class="btn btn-white" type="submit"> 重置 </button>
|
|
|
|
<button class="btn btn-primary" type="submit"> 提交 </button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script>
|
2015-01-19 02:09:16 +00:00
|
|
|
$('#assetForm').validator({
|
|
|
|
timely: 2,
|
|
|
|
theme: "yellow_right_effect",
|
|
|
|
fields: {
|
|
|
|
"j_group": {
|
|
|
|
rule: "required",
|
|
|
|
tip: "输入业务组名",
|
|
|
|
ok: "",
|
|
|
|
msg: {required: "业务组名必须填写!"},
|
|
|
|
data: {'data-ok':"业务组名可以使用"}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
valid: function(form) {
|
|
|
|
form.submit();
|
2015-01-11 11:27:21 +00:00
|
|
|
}
|
2015-01-19 02:09:16 +00:00
|
|
|
});
|
2015-01-11 11:27:21 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
{% endblock %}
|