jumpserver/webroot/AutoSa/templates/showAssets.html

34 lines
1.2 KiB
HTML

{% extends 'base.html' %}
{% block content %}
<form method="post" action="">
{% if info %}
<p class="alert alert-success">
{{ info }}
</p>
{% endif %}
<table class="table table-striped table-hover table-condensed">
<thead>
<tr>
<th><input onclick="selectAll()" type="checkbox" name="select_all" style="select_all" id="select_all"/></th>
<th>ID</th>
<th>IP</th>
<th>Port</th>
<th>备注</th>
</tr>
</thead>
<tbody>
{% for asset in assets %}
<tr>
<td style="width: 13px"><input type="checkbox" name="selected" value="{{ asset.id }}"></td>
<td style="width: 5px">{{ asset.id }}</td>
<td style="width: 90px">{{ asset.ip }}</td>
<td style="width: 90px">{{ asset.port }}</td>
<td style="width: 90px">{{ asset.comment }}</td>
</tr>
{% endfor %}
</tbody>
</table>
<button class="btn btn-primary">删除</button></td>
</form>
{% endblock %}