mirror of
https://github.com/unraid/webgui.git
synced 2025-12-31 22:50:25 -06:00
- Wrapped the Install Key button in a span element to improve layout consistency. - This change continues the effort to enhance visual structure across the plugin.
35 lines
1.0 KiB
Plaintext
35 lines
1.0 KiB
Plaintext
Menu="Registration"
|
|
Title="Install Key"
|
|
Tag="flag"
|
|
Cond="($var['regTy']!='Pro' || $var['regTy']!='Lifetime')"
|
|
---
|
|
<?PHP
|
|
/* Copyright 2005-2023, Lime Technology
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License version 2,
|
|
* as published by the Free Software Foundation.
|
|
*
|
|
* The above copyright notice and this permission notice shall be included in
|
|
* all copies or substantial portions of the Software.
|
|
*/
|
|
?>
|
|
<script>
|
|
function installKey(file) {
|
|
file = file.trim();
|
|
if (file) openPlugin('install_key '+encodeURIComponent(file), "_(Install Key)_");
|
|
}
|
|
</script>
|
|
|
|
<form markdown="1">
|
|
<span class="info">_(To install a registration key, paste the key file URL in the box below and click **Install Key**)_.</span>
|
|
|
|
_(Key file URL)_:
|
|
: <input type="text" name="file" id="key_file" maxlength="1024" value="">
|
|
|
|
|
|
: <span class="inline-block">
|
|
<input type="button" value="_(Install Key)_" onclick="installKey(this.form.file.value.trim())">
|
|
</span>
|
|
</form>
|