Show selection box for dns provider

This commit is contained in:
Johannes
2016-10-25 14:51:57 +02:00
parent ae402f7afb
commit 048f3e0614
2 changed files with 12 additions and 0 deletions

View File

@@ -14,6 +14,12 @@
<input type="text" class="form-control" ng-model="dnsCredentials.customDomain" id="customDomainId" name="customDomainId" ng-disabled="dnsCredentials.busy" ng-minlength="4" ng-maxlength="128" placeholder="example.com" required autofocus>
</div>
<div class="form-group" ng-show="dnsConfig.provider !== 'caas'">
<label class="control-label">DNS API Provider</label>
<select class="form-control" ng-model="dnsCredentials.provider" ng-options="a.value as a.name for a in dnsProvider" ng-change="updateFilter()">
</select>
</div>
<!-- Route53 -->
<div class="form-group" ng-class="{ 'has-error': false }" ng-show="dnsCredentials.provider === 'route53'">
<label class="control-label" for="dnsCredentialsAccessKeyId">Access Key Id</label>

View File

@@ -6,6 +6,12 @@ angular.module('Application').controller('CertsController', ['$scope', '$locatio
$scope.config = Client.getConfig();
$scope.dnsConfig = null;
$scope.dnsProvider = [
{ name: 'Manual/Wildcard', value: 'noop' },
{ name: 'AWS Route53', value: 'route53' },
{ name: 'Digital Ocean', value: 'digitalocean' }
];
$scope.defaultCert = {
error: null,
success: false,