2015-01-07 10:35:09 +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">
|
|
|
|
<div class="ibox float-e-margins">
|
|
|
|
<div class="ibox-title">
|
|
|
|
<h5> 主机详细信息列表 </h5>
|
|
|
|
<div class="ibox-tools">
|
|
|
|
<a class="collapse-link">
|
|
|
|
<i class="fa fa-chevron-up"></i>
|
|
|
|
</a>
|
|
|
|
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
|
|
|
|
<i class="fa fa-wrench"></i>
|
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu dropdown-user">
|
|
|
|
<li><a href="#">未启用 1</a>
|
|
|
|
</li>
|
|
|
|
<li><a href="#">未启用 2</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<a class="close-link">
|
|
|
|
<i class="fa fa-times"></i>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="ibox-content">
|
|
|
|
<div class="">
|
|
|
|
<a onclick="fnClickAddRow();" href="javascript:void(0);" class="btn btn-primary "> 添加 </a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<table class="table table-striped table-bordered table-hover " id="editable" >
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th> IP地址 </th>
|
|
|
|
<th> 端口号 </th>
|
|
|
|
<th> 登录方式 </th>
|
|
|
|
<th> 所属IDC </th>
|
|
|
|
<th> 所属业务组 </th>
|
|
|
|
<th> 添加时间 </th>
|
|
|
|
<th> 备注 </th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for post in contacts.object_list %}
|
|
|
|
<tr class="gradeX">
|
2015-01-14 08:39:57 +00:00
|
|
|
<td> <a class="iframe" href="/jasset/{{ post.ip }}/">{{ post.ip }}</a></td>
|
2015-01-07 10:35:09 +00:00
|
|
|
<td> {{ post.port }} </td>
|
2015-01-14 08:39:57 +00:00
|
|
|
<td> {{ post.get_login_type}} </td>
|
2015-01-07 10:35:09 +00:00
|
|
|
<td class="center"> {{ post.idc.name }} </td>
|
|
|
|
<td class="center">
|
2015-01-11 11:27:21 +00:00
|
|
|
{% for group in post.bis_group.all %}
|
2015-01-07 10:35:09 +00:00
|
|
|
{{ group }}
|
|
|
|
{% endfor %}
|
|
|
|
</td>
|
|
|
|
<td class="center"> {{ post.date_added }} </td>
|
|
|
|
<td class="center"> {{ post.comment }} </td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<ul class="pagination">
|
|
|
|
{% if contacts.has_previous %}
|
|
|
|
<li><a href="?page={{ contacts.previous_page_number }}">«</a></li>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% for page in p.page_range %}
|
|
|
|
{% ifequal offset1 page %}
|
|
|
|
<li class="active"><a href="?page={{ page }}" title="第{{ page }}页">{{ page }}</a></li>
|
|
|
|
{% else %}
|
|
|
|
<li><a href="?page={{ page }}" title="第{{ page }}页">{{ page }}</a></li>
|
|
|
|
{% endifequal %}
|
|
|
|
{% endfor %}
|
|
|
|
{% if contacts.has_next %}
|
|
|
|
<li><a href="?page={{ contacts.next_page_number }}">»</a></li>
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2015-01-14 08:39:57 +00:00
|
|
|
<script>
|
|
|
|
$(document).ready(function(){
|
|
|
|
$(".iframe").colorbox({iframe:true, width:"70%", height:"70%"});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2015-01-07 10:35:09 +00:00
|
|
|
{% endblock %}
|