mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-02-06 16:09:20 +00:00
User Edit: Add button to load an auto-generated API Key (UUID) into the input field.
This commit is contained in:
@@ -663,7 +663,8 @@ else {
|
||||
echo " <tr>";
|
||||
echo " <td class='vncell'>".$text['label-api_key'].":</td>";
|
||||
echo " <td class='vtable'>\n";
|
||||
echo " <input type=\"text\" class='formfld' name=\"api_key\" value=\"".$api_key."\" >\n";
|
||||
echo " <input type=\"text\" class='formfld' name=\"api_key\" id='api_key' value=\"".$api_key."\" >";
|
||||
echo " <input type='button' class='btn' value='".$text['button-generate']."' onclick=\"getElementById('api_key').value='".uuid()."';\">";
|
||||
if (strlen($text['description-api_key']) > 0) {
|
||||
echo " <br />".$text['description-api_key']."<br />\n";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user