gandi: get token type in setup view

This commit is contained in:
Girish Ramakrishnan
2025-01-01 15:07:32 +01:00
parent d3b82d68e7
commit a7f083dbd1
3 changed files with 12 additions and 0 deletions

View File

@@ -146,6 +146,13 @@
</div>
<!-- Gandi -->
<div class="form-group" ng-class="{ 'has-error': false }" ng-show="dnsCredentials.provider === 'gandi'">
<label class="control-label">Token Type</label>
<select class="form-control" ng-model="dnsCredentials.gandiTokenType">
<option value="ApiKey">API Key (Deprecated)</option>
<option value="PAT">Personal Access Token (PAT)</option>
</select>
</div>
<div class="form-group" ng-class="{ 'has-error': dnsCredentialsForm.gandiApiKey.$dirty && dnsCredentialsForm.gandiApiKey.$invalid }" ng-show="dnsCredentials.provider === 'gandi'">
<label class="control-label">Gandi API Key</label>
<input type="text" class="form-control" ng-model="dnsCredentials.gandiApiKey" name="gandiApiKey" placeholder="API Key" ng-required="dnsCredentials.provider === 'gandi'" ng-disabled="dnsCredentials.busy">