drought_backup/users/templates/user/year_range_list.html

46 lines
1.6 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 'year-range-add' %}" 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">用户</div>
<div class="col-md-4">年限</div>
<div class="col-md-4">操作</div>
</div>
</div>
{% for year in yearrange %}
<div class="list-group-item">
<div class="row">
<div class="col-md-4">{{ year.user.username }}</div>
<div class="col-md-4">{{ year.start_year }}-{{ year.end_year }}</div>
<div class="col-md-4">
<a href="{% url 'year-range-update' year.id %}"
class="btn btn-default btn-xs">修改</a>
</div>
</div>
</div>
{% empty %}
<div class="list-group-item" style="text-align: center">暂无数据.</div>
{% endfor %}
</div>
</div>
</div>
{% endblock %}