mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Showing origin in adminpanel also
This commit is contained in:
@@ -34,6 +34,7 @@ $(document).on("click", "#refresh_all", function(e){
|
||||
to_add.find(".api_token_limit").val(response[i].limit);
|
||||
to_add.attr("id", response[i]._id);
|
||||
to_add.find(".api_token_name").text(response[i].name);
|
||||
to_add.find(".api_token_origin").text(response[i].origin);
|
||||
to_add.find(".api_token_usage").text(response[i].usage);
|
||||
to_add.find(".update_api_token").attr("id", response[i]._id + "-limit");
|
||||
to_add.find(".delete_api_token").attr("id", response[i]._id + "-delete");
|
||||
@@ -196,6 +197,7 @@ function loaded() {
|
||||
to_add.attr("id", response[i]._id);
|
||||
to_add.find(".api_token_name").text(response[i].name);
|
||||
to_add.find(".api_token_usage").text(response[i].usage);
|
||||
to_add.find(".api_token_origin").text(response[i].origin);
|
||||
to_add.find(".update_api_token").attr("id", response[i]._id + "-limit");
|
||||
to_add.find(".delete_api_token").attr("id", response[i]._id + "-delete");
|
||||
to_add.find(".delete_api_token").attr("data-id", response[i]._id);
|
||||
|
||||
@@ -119,6 +119,9 @@
|
||||
Name
|
||||
</div>
|
||||
<div class="col s3">
|
||||
Origin
|
||||
</div>
|
||||
<div class="col s1">
|
||||
Usage
|
||||
</div>
|
||||
<div class="col s1">
|
||||
@@ -128,14 +131,16 @@
|
||||
<div class="row api_token_container" id="api_token_list">
|
||||
<div class="col s3 api_token_name truncate">
|
||||
</div>
|
||||
<div class="col s3 api_token_usage">
|
||||
<div class="col s3 api_token_origin truncate">
|
||||
</div>
|
||||
<div class="col s1 api_token_usage">
|
||||
</div>
|
||||
<input class="api_token_limit col s1" type="number" />
|
||||
<div class="col s1 api_token_activated">
|
||||
<i class="material-icons check hide">check</i>
|
||||
<i class="material-icons uncheck hide">close</i>
|
||||
</div>
|
||||
<a href="#" class="btn waves-effect green col s2 update_api_token">UPDATE</a>
|
||||
<a href="#" class="btn waves-effect green col s1 update_api_token"><i class="material-icons check hide">check</i></a>
|
||||
<a href="#" class="btn waves-effect red col s1 delete_api_token">X</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user