[Update] 修改 API Key 页面显示布局

pull/3258/head
BaiJiangJie 2019-09-23 19:43:39 +08:00
parent afdf0062eb
commit 0ed08c2f4c
1 changed files with 9 additions and 6 deletions

View File

@ -14,10 +14,13 @@
} }
</style> </style>
<div class="alert alert-info help-message"> <div class="alert alert-info help-message" style="margin-left: 0px; margin-right: 0px;">
{% trans 'Using api key sign api header, every requests header difference'%}, <a href="https://tools.ietf.org/html/draft-cavage-http-signatures-08">{% trans 'docs' %} </a> {% trans 'Using api key sign api header, every requests header difference'%}, <a href="https://tools.ietf.org/html/draft-cavage-http-signatures-08">{% trans 'docs' %} </a>
</div> </div>
<table class="table table-striped table-bordered table-hover " id="access_key_list_table" style="padding-top: 10px"> <div class="uc pull-left m-r-0 m-t-10">
<button class="btn btn-primary btn-sm" id="create-btn" href="#"> {% trans "Create" %} </button>
</div>
<table class="table table-striped table-bordered table-hover " id="access_key_list_table">
<thead> <thead>
<tr> <tr>
<th class="text-center"> <th class="text-center">
@ -34,9 +37,9 @@
</tbody> </tbody>
</table> </table>
<div id="uc" hidden> {#<div id="uc" hidden>#}
<button class="btn btn-primary btn-sm" id="create-btn" href="#"> {% trans "Create" %} </button> {# <button class="btn btn-primary btn-sm" id="create-btn" href="#"> {% trans "Create" %} </button>#}
</div> {#</div>#}
<script> <script>
var table = null; var table = null;
@ -85,7 +88,7 @@ function initAccessKeyTable() {
{data: "date_created"}, {data: "date_created"},
{data: "id", orderable: false} {data: "id", orderable: false}
], ],
uc_html: $('#uc').html() {#uc_html: $('#uc').html()#}
}; };
table = jumpserver.initServerSideDataTable(options); table = jumpserver.initServerSideDataTable(options);
} }