Skip to content

Commit

Permalink
fix branch paging
Browse files Browse the repository at this point in the history
  • Loading branch information
guohongze committed May 10, 2019
1 parent bc26776 commit 7e7b2c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions templates/branches/branch_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

<!-- Main content -->
<section class="content">
<form action="" method="post" id="region_form">
<form action="" method="post" id="branch_form">
{% csrf_token %}
<div class="box">
<div class="box-header">
Expand All @@ -37,11 +37,11 @@

<!-- /.box-header -->
<div class="box-body">
<table class="table table-striped table-bordered" id="regionform">
<table class="table table-striped table-bordered" id="branchform">
<thead>
<tr>
<th>
<input id="checkall" type="checkbox" class="i-checks" name="checkall" value="checkall" data-editable='false' onclick="check_all('region_form')">
<input id="checkall" type="checkbox" class="i-checks" name="checkall" value="checkall" data-editable='false' onclick="check_all('branch_form')">
</th>
<th>分支名称</th>
<th>分支地址</th>
Expand All @@ -56,8 +56,8 @@
<td><input type="checkbox" id="id" class="i-checks" value="{{ branch.id }}" name="id" /></td>
<td><a href="#"><li style="list-style-type:none" onclick="return popWin(this.value)" value="{{ branch.id }}">{{ branch.name }}</li></a> </td>
<td>{{ branch.address }} </td>
<td>{{ branch.owner.phone }} </td>
<td>{{ branch.owner.name }} </td>
<td>{{ branch.owner.phone }} </td>
<td>
<a id="branchedit" style="display: none; float:left; margin: auto;" href="{% url "branch_edit" branch.id %}"><span class="btn btn-sm btn-info">编辑</span></a>
<a id="branchdel" style="display: none; float:left; margin: auto;" href="{% url "branch_del"%}?id={{ branch.id }}" onclick="return confirm('删除分支?')"><span class="btn btn-sm btn-danger ">删除</span></a>
Expand All @@ -77,7 +77,7 @@
</div>
<script>
$(function () {
$('#regionform').DataTable({
$('#branchform').DataTable({
"paging": true,
"lengthChange": true,
"searching": true,
Expand Down
2 changes: 1 addition & 1 deletion templates/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="pull-right hidden-xs">
</div>
<!-- Default to the left bar -->
<div>AdminSet v0.55.3 &nbsp;&nbsp;
<div>AdminSet v0.55.4 &nbsp;&nbsp;
<a href="http:https://docs.adminset.cn" target="_blank">用户手册</a>
</div>
</footer>

0 comments on commit 7e7b2c6

Please sign in to comment.