Users - Edit: Minor visual adjustment to API Key Generate and View buttons.
This commit is contained in:
parent
21ca2c4761
commit
8ffbcd09f3
|
|
@ -1077,6 +1077,7 @@
|
||||||
echo button::create(['type'=>'button',
|
echo button::create(['type'=>'button',
|
||||||
'label'=>$text['button-generate'],
|
'label'=>$text['button-generate'],
|
||||||
'icon'=>'key',
|
'icon'=>'key',
|
||||||
|
'style'=>'margin-top: 1px; margin-bottom: 1px;',
|
||||||
'onclick'=>"document.getElementById('api_key').value = '".generate_password(32,3)."';
|
'onclick'=>"document.getElementById('api_key').value = '".generate_password(32,3)."';
|
||||||
document.getElementById('frm').submit();"]);
|
document.getElementById('frm').submit();"]);
|
||||||
}
|
}
|
||||||
|
|
@ -1086,6 +1087,7 @@
|
||||||
'label'=>$text['button-view'],
|
'label'=>$text['button-view'],
|
||||||
'id'=>'button-api_key_view',
|
'id'=>'button-api_key_view',
|
||||||
'icon'=>'key',
|
'icon'=>'key',
|
||||||
|
'style'=>'margin-top: 1px; margin-bottom: 1px;',
|
||||||
'onclick'=>"document.getElementById ('button-api_key_view').style.display = 'none';
|
'onclick'=>"document.getElementById ('button-api_key_view').style.display = 'none';
|
||||||
document.getElementById('api_key').style.display = 'inline';
|
document.getElementById('api_key').style.display = 'inline';
|
||||||
document.getElementById('button-api_key_hide').style.display = 'inline';
|
document.getElementById('button-api_key_hide').style.display = 'inline';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue