Add gcdns for edit/add domains

This commit is contained in:
Johannes Zellner
2025-01-29 17:59:46 +01:00
parent d12e8cbe97
commit 5936e00acc
3 changed files with 38 additions and 9 deletions
+5 -4
View File
@@ -51,16 +51,17 @@
</div>
<!-- Google Cloud DNS -->
<div class="form-group" ng-class="{ 'has-error': false }" ng-show="domainConfigure.provider === 'gcdns'">
<label class="control-label">{{ 'domains.domainDialog.gcdnsServiceAccountKey' | tr }}</label>
<FormGroup v-if="domainConfigure.provider === 'gcdns'">
<label for="gcdnsKeyFileInput">{{ 'domains.domainDialog.gcdnsServiceAccountKey' | tr }}</label>
<!-- TODO replace with a pankow input group -->
<div class="input-group">
<input type="file" id="gcdnsKeyFileInput" style="display:none"/>
<input type="text" class="form-control" placeholder="Service Account Key" ng-model="domainConfigure.gcdnsKey.keyFileName" id="gcdnsKeyInput" name="cert" onclick="getElementById('gcdnsKeyFileInput').click();" style="cursor: pointer;" ng-disabled="domainConfigure.busy" ng-required="domainConfigure.provider === 'gcdns'">
<input type="text" class="form-control" placeholder="Service Account Key" v-model="gcdnsKeyFileName" id="gcdnsKeyInput" onclick="getElementById('gcdnsKeyFileInput').click();" style="cursor: pointer;" required>
<span class="input-group-addon">
<i class="fa fa-upload" onclick="getElementById('gcdnsKeyFileInput').click();"></i>
</span>
</div>
</div>
</FormGroup>
<!-- DigitalOcean -->
<div class="form-group" ng-class="{ 'has-error': false }" ng-show="domainConfigure.provider === 'digitalocean'">