102 lines
3.8 KiB
HTML
102 lines
3.8 KiB
HTML
{% extends "./base.html" %}
|
|
{% load static %}
|
|
{% block headother%}
|
|
<!-- DataTables -->
|
|
<link rel="stylesheet" href="{% static 'groups/bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css' %}">
|
|
|
|
{% endblock %}
|
|
|
|
|
|
{% block title %}公司员工列表{% endblock %}
|
|
|
|
{% block pagehead %}
|
|
<section class="content-header">
|
|
<h1>
|
|
公司列表
|
|
<small>companys list</small>
|
|
</h1>
|
|
<ol class="breadcrumb">
|
|
<li><a href="{% url 'groups_index' %}"><i class="fa fa-dashboard"></i> 主页</a></li>
|
|
<li class="active">公司员工列表</li>
|
|
</ol>
|
|
</section>
|
|
{% endblock %}
|
|
{% block content %}
|
|
<!-- Main content -->
|
|
<section class="content">
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
<div class="box">
|
|
<div class="box-header">
|
|
<h3 class="box-title">公司员工列表</h3>
|
|
</div>
|
|
<!-- /.box-header -->
|
|
<div class="box-body">
|
|
<table id="example1" class="table table-bordered table-striped">
|
|
<thead>
|
|
<tr role="row">
|
|
<th class="sorting_asc" tabindex="0" aria-controls="example1" rowspan="1" colspan="1" style="width: 164.933px;" aria-sort="ascending"
|
|
aria-label="Rendering engine: activate to sort column descending">员工ID</th>
|
|
<th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1" style="width: 204.15px;"
|
|
aria-label="Browser: activate to sort column ascending">员工名称</th>
|
|
<th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1" style="width: 179.933px;"
|
|
aria-label="Platform(s): activate to sort column ascending">员工账号</th>
|
|
<th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1" style="width: 140.467px;"
|
|
aria-label="Engine version: activate to sort column ascending">员工工号</th>
|
|
<th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1" style="width: 99.1833px;"
|
|
aria-label="CSS grade: activate to sort column ascending">操作</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for user in users %}
|
|
<tr role="row" class="even">
|
|
<td class="sorting_1">{{user.userid}}</td>
|
|
<td>{{user.name}}</td>
|
|
<td>{{user.username}}</td>
|
|
<td>{{user.empid}}</td>
|
|
<td><a href="{% url 'groups_userdetail' user.userid %}">修改</a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- /.box-body -->
|
|
</div>
|
|
<!-- /.box -->
|
|
</div>
|
|
<!-- /.col -->
|
|
</div>
|
|
<!-- /.row -->
|
|
</section>
|
|
<!-- /.content -->
|
|
{% endblock %}
|
|
|
|
|
|
{% block endother%}
|
|
<!-- DataTables -->
|
|
<script src="{% static 'groups/bower_components/datatables.net/js/jquery.dataTables.min.js' %}"></script>
|
|
<script src="{% static 'groups/bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js' %}"></script>
|
|
<!-- SlimScroll -->
|
|
<script src="{% static 'groups/bower_components/jquery-slimscroll/jquery.slimscroll.min.js' %}"></script>
|
|
<!-- FastClick -->
|
|
<script src="{% static 'groups/bower_components/fastclick/lib/fastclick.js' %}"></script>
|
|
|
|
|
|
<script>
|
|
$(function () {
|
|
$('#example1').DataTable()
|
|
$('#example2').DataTable({
|
|
'paging' : true,
|
|
'lengthChange': false,
|
|
'searching' : false,
|
|
'ordering' : true,
|
|
'info' : true,
|
|
'autoWidth' : false
|
|
})
|
|
})
|
|
</script>
|
|
{% endblock %}
|
|
|
|
|