jumpserver/webroot/AutoSa/templates/perms.html

35 lines
1.3 KiB
HTML

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