drought_backup/users/templates/user/group_list.html

47 lines
1.9 KiB
HTML

{% extends 'dashboard/base.html' %}
{% load static %}
{% load bootstrap3 %}
{% block breadcrumb %}{% endblock %}
{% block content %}
<div class="ibox">
<div class="ibox-title">
<h5>数据组管理</h5>
<div class="ibox-tools">
<a href="{% url 'group-create' %}" class="btn btn-primary btn-xs">添加数据组</a>
</div>
</div>
<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-4">id</div>
<div class="col-md-4">组名</div>
<div class="col-md-4">操作</div>
</div>
</div>
{% for group in group %}
<div class="list-group-item">
<div class="row">
<div class="col-md-4">{{ group.id }}</div>
<div class="col-md-4">{{ group.name }}</div>
<div class="col-md-4">
<a href="{% url 'group-update' group.id %}"
class="btn btn-default btn-xs">修改</a>
<a href="{% url 'group-delete' group.id %}"
class="btn btn-danger btn-xs">删除</a>
</div>
</div>
</div>
{% empty %}
<div class="list-group-item" style="text-align: center">暂无数据.</div>
{% endfor %}
</div>
</div>
</div>
{% endblock %}