jumpserver/templates/juser/user_detail.html

82 lines
3.8 KiB
HTML
Raw Normal View History

2015-01-22 15:57:18 +00:00
{% load mytags %}
<html>
<head>
{% include 'link_css.html' %}
<style type="text/css">
body
{
background: #FFFFFF;
}
</style>
</head>
<body>
<div class="row">
<div class="contact-box">
<h2 class="text-center">{{ user.name }} 用户详情</h2>
<div class="ibox-content">
<table class="table table-striped table-bordered table-hover " id="editable" >
<thead>
<tr>
2015-04-01 14:54:10 +00:00
<td class="text-center" width="120">ID</td>
<td class="text-center">用户名</td>
<td class="text-center">姓名</td>
<td class="text-center">角色</td>
<td class="text-center">部门</td>
<td class="text-center">Email</td>
<td class="text-center">激活</td>
{# <td class="text-center">添加时间</td>#}
{# <td class="text-center">最后登录</td>#}
2015-01-22 15:57:18 +00:00
</tr>
</thead>
<tbody>
<tr class="gradeX">
2015-04-01 14:54:10 +00:00
2015-01-22 15:57:18 +00:00
<td class="text-center">{{ user.id }}</td>
<td class="text-center">{{ user.username }}</td>
<td class="text-center">{{ user.name }}</td>
2015-04-01 14:54:10 +00:00
<td class="text-center">{{ user.id | get_role }}</td>
<td class="text-center">{{ user.dept.name }}</td>
2015-01-22 15:57:18 +00:00
<td class="text-center">{{ user.email }}</td>
<td class="text-center">{{ user.is_active|bool2str }}</td>
2015-04-01 14:54:10 +00:00
{# <td class="text-center">{{ user.date_joined }}</td>#}
{# <td class="text-center">{{ user.last_login }}</td>#}
2015-01-22 15:57:18 +00:00
</tr>
2015-04-01 14:54:10 +00:00
<tr>
<td class="text-center">添加日期: </td>
<td colspan="2" class="text-center">{{ user.date_joined }}</td>
<td class="text-center">最后登录: </td>
<td colspan="3" class="text-center">{{ user.last_login }}</td>
2015-01-22 15:57:18 +00:00
</tr>
2015-04-01 14:54:10 +00:00
<tr>
<td colspan="1" class="text-center">用户组:</td>
<td colspan="6" class="text-center">
{% for group in user.group.all %}
<b>{{ group.name }}</b>
{% endfor %}
</td>
2015-01-22 15:57:18 +00:00
</tr>
2015-04-01 14:54:10 +00:00
<tr>
<td colspan="1" class="text-center">授权主机组:</td>
<td colspan="6" class="text-center">
{% for group in user|get_user_asset_group %}
<b>{{ group.name }}</b>
2015-03-06 16:12:38 +00:00
{% endfor %}
</td>
</tr>
2015-04-01 14:54:10 +00:00
{# #}
{# <tr class="gradeX">#}
{# <td class="text-center">授权主机组</td>#}
{# <td class="text-center">#}
{# {% for asset_group in asset_group_permed %}#}
{# {{ asset_group.name }}#}
{# {% endfor %}#}
{# </td>#}
{# </tr>#}
2015-01-22 15:57:18 +00:00
</table>
</div>
</div>
</body>
</html>