56 lines
2.6 KiB
HTML
56 lines
2.6 KiB
HTML
{% extends 'dashboard/base.html' %}
|
|
{% load bootstrap3 %}
|
|
|
|
{% block page_head %}用户详情{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="ibox">
|
|
<div class="ibox-title">
|
|
<h5>用户信息详情</h5>
|
|
<div class="ibox-tools">
|
|
<a href="{% url 'user-create' %}" class="btn btn-primary btn-xs">添加用户</a>
|
|
</div>
|
|
</div>
|
|
<div class="ibox-content">
|
|
|
|
<div class="row m-b-sm m-t-sm">
|
|
<div class="col-md-12" style="margin-top: 20px;">
|
|
<div class="list-group" style="margin-bottom: 0">
|
|
<div class="list-group-item disabled">
|
|
<div class="row">
|
|
<div class="col-md-3">用户名</div>
|
|
<div class="col-md-2">电子邮件地址</div>
|
|
<div class="col-md-2">名字</div>
|
|
<div class="col-md-2">姓氏</div>
|
|
<div class="col-md-1">是否为管理员</div>
|
|
<div class="col-md-1">是否活跃</div>
|
|
<div class="col-md-1">是否允许登录</div>
|
|
</div>
|
|
</div>
|
|
{% for user in user %}
|
|
<div class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-3">{{ user.username }}</div>
|
|
<div class="col-md-2">{{ user.email }}</div>
|
|
<div class="col-md-2">{{ user.first_name }}</div>
|
|
<div class="col-md-2">{{ user.last_name }}</div>
|
|
<div class="col-md-1">{{ user.is_superuser }}</div>
|
|
<div class="col-md-1">{{ user.is_active }}</div>
|
|
<div class="col-md-1">{{ user.is_staff }}</div>
|
|
</div>
|
|
</div>
|
|
{% empty %}
|
|
<div class="list-group-item" style="text-align: center">暂无数据.</div>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
{% if is_paginated %}
|
|
<div class="col-md-12">
|
|
{% bootstrap_pagination page_obj size='small' extra=request.GET.urlencode %}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock %} |