mirror of https://github.com/CIRCL/AIL-framework
chg: [ail sync ui] copy to clipboard ail_uuid, ail server key
parent
1412e1afef
commit
a1768e50da
|
@ -31,16 +31,23 @@
|
||||||
<div class="col-12 col-lg-10" id="core_content">
|
<div class="col-12 col-lg-10" id="core_content">
|
||||||
|
|
||||||
<div class="d-flex justify-content-center my-4">
|
<div class="d-flex justify-content-center my-4">
|
||||||
<div class="card border-secondary" style="max-width: 40rem;">
|
<div class="input-group mb-2 mr-sm-2" style="max-width: 30rem;">
|
||||||
<div class="card-header bg-inf">
|
<div class="input-group-prepend">
|
||||||
<h5 class="card-title">AIL UUID:</h5>
|
<div class="input-group-text bg-dark text-white">
|
||||||
|
<b>AIL UUID</b>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body text-dark">
|
</div>
|
||||||
<div class="">
|
<div class="form-control">
|
||||||
{{ ail_uuid }}
|
{{ ail_uuid }}
|
||||||
|
<input id="ail_uuid" name="ail_uuid" type="text" value="{{ ail_uuid }}" hidden>
|
||||||
|
</div>
|
||||||
|
<div class="input-group-append">
|
||||||
|
<button type="button" class="btn btn-secondary" onclick="copy_ail_uuid()">
|
||||||
|
<i class="fas fa-clipboard"></i>
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
@ -97,6 +104,11 @@ $(document).ready(function(){
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function copy_ail_uuid() {
|
||||||
|
ail_uuid = $('#ail_uuid').val();
|
||||||
|
navigator.clipboard.writeText(ail_uuid);
|
||||||
|
}
|
||||||
|
|
||||||
function toggle_sidebar(){
|
function toggle_sidebar(){
|
||||||
if($('#nav_menu').is(':visible')){
|
if($('#nav_menu').is(':visible')){
|
||||||
$('#nav_menu').hide();
|
$('#nav_menu').hide();
|
||||||
|
|
|
@ -74,6 +74,10 @@
|
||||||
<td class="text-right"><b>Api Key</b></td>
|
<td class="text-right"><b>Api Key</b></td>
|
||||||
<td>
|
<td>
|
||||||
{{server_metadata['api_key']}}
|
{{server_metadata['api_key']}}
|
||||||
|
<input id="api_key" name="api_key" type="text" value="{{ server_metadata['api_key'] }}" hidden>
|
||||||
|
<button type="button" class="btn btn-secondary px-2 py-0" onclick="copy_api_key()">
|
||||||
|
<i class="fas fa-clipboard"></i>
|
||||||
|
</button>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -220,6 +224,10 @@ $(document).ready(function(){
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function copy_api_key() {
|
||||||
|
api_key = $('#api_key').val();
|
||||||
|
navigator.clipboard.writeText(api_key);
|
||||||
|
}
|
||||||
|
|
||||||
function toggle_sidebar(){
|
function toggle_sidebar(){
|
||||||
if($('#nav_menu').is(':visible')){
|
if($('#nav_menu').is(':visible')){
|
||||||
|
|
Loading…
Reference in New Issue