User Edit: Add button to load an auto-generated API Key (UUID) into the input field.
This commit is contained in:
parent
615aae2e65
commit
9566dce374
|
|
@ -347,6 +347,11 @@
|
|||
$text['button-add_member']['pt-pt'] = "Adicionar Membro";
|
||||
$text['button-add_member']['fr-fr'] = "Ajouter un Membre";
|
||||
|
||||
$text['button-generate']['en-us'] = "Generate";
|
||||
$text['button-generate']['es-cl'] = "Generar";
|
||||
$text['button-generate']['pt-pt'] = "Geração";
|
||||
$text['button-generate']['fr-fr'] = "Générer";
|
||||
|
||||
$text['confirm-delete']['en-us'] = "Do you really want to delete this?";
|
||||
$text['confirm-delete']['es-cl'] = "¿Realmente desea eliminar esto?";
|
||||
$text['confirm-delete']['pt-pt'] = "Tem a certeza que pretende remover isto?";
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue