Add gen_apikey to template

This commit is contained in:
billz
2024-03-08 10:45:05 +01:00
parent 95ad90063b
commit 282b839f45
3 changed files with 14 additions and 5 deletions

View File

@@ -5,9 +5,14 @@
<div class="row">
<div class="form-group col-md-6" required>
<label for="txtapikey"><?php echo _("API Key"); ?></label>
<input type="text" id="txtapikey" class="form-control" name="txtapikey" value="<?php echo htmlspecialchars($apiKey, ENT_QUOTES); ?>" required />
<div class="invalid-feedback">
<?php echo _("Please provide a valid API key."); ?>
<div class="input-group">
<input type="text" class="form-control" id="txtapikey" name="txtapikey" value="<?php echo htmlspecialchars($apiKey, ENT_QUOTES); ?>" required />
<div class="input-group-append">
<button class="btn btn-outline-secondary" type="button" id="gen_apikey"><i class="fas fa-magic"></i></button>
</div>
<div class="invalid-feedback">
<?php echo _("Please provide a valid API key."); ?>
</div>
</div>
</div>
</div>